/*
Theme Name: ItemFlare GeneratePress Child
Theme URI: https://itemflare.com
Description: Child theme for ItemFlare.com — category pages (hero, search, cards) and single posts (navigation, more research, comments) on top of GeneratePress.
Author: Asaduzzaman Nayem
Template: generatepress
Version: 3.0
*/

/* ==========================================================================
   "Template: generatepress" above must match the parent theme's folder
   name inside /wp-content/themes/ (it is "generatepress" by default).
   ========================================================================== */

/* -------------------- Design tokens -------------------- */
:root {
  /* Single-post palette */
  --if-navy: #05457f;
  --if-orange: #e8622a;
  --if-orange-dark: #cf5220;
  --if-ink: #1d2733;
  --if-slate: #5e6b7a;
  --if-soft: #f4f7fb;
  --if-line: #e2e8f0;

  /* Logo orange (category hero button + card chips) */
  --if-logo-orange: #fc4000;
  --if-search-btn: #fc5003;
  --if-link: #cf5220;
  --if-logo-orange-dark: #d8480c;

  /* Layout */
  --if-wrap: 1200px;    /* max width of the post body + category grid */
  --if-side-w: 330px;   /* sidebar width on desktop */

  /* Fonts (Merriweather / Open Sans must already be loaded on the site) */
  --if-font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
  --if-font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==========================================================================
   FULL WIDTH — switch off GeneratePress' reserved sidebar space.
   Our templates draw their own layout.
   ========================================================================== */
body.category #primary,
body.archive #primary,
body.single #primary,
body.category .content-area,
body.archive .content-area,
body.single .content-area,
body.category #main,
body.archive #main,
body.single #main {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.category #right-sidebar,
body.archive #right-sidebar,
body.single #right-sidebar,
body.category #left-sidebar,
body.archive #left-sidebar,
body.single #left-sidebar,
body.category #secondary,
body.archive #secondary,
body.single #secondary {
  display: none !important;
  width: 0 !important;
}

body.category .site-content,
body.archive .site-content,
body.single .site-content,
body.category .site-content .grid-container,
body.archive .site-content .grid-container,
body.single .site-content .grid-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* The full-bleed hero is 100vw wide: stop it from creating a sideways scrollbar. */
body.category,
body.archive {
  overflow-x: hidden;
}

/* ==========================================================================
   CATEGORY PAGE — HERO
   ========================================================================== */
.category-hero-banner {
  /* Left side dark (readable title), right side almost clear (product visible) */
  --if-hero-overlay: linear-gradient(90deg, rgba(4, 22, 44, 0.88) 0%, rgba(4, 22, 44, 0.72) 32%, rgba(4, 22, 44, 0.26) 62%, rgba(4, 22, 44, 0) 100%);

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: block;
  clear: both;
  overflow: hidden;
  background-color: #0a2540;
  background-image: var(--if-hero-overlay), var(--if-hero-img, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

/* No image anywhere: branded navy gradient instead of a flat colour */
.category-hero-banner--noimg {
  background-image: linear-gradient(135deg, #0b5ba8 0%, #05457f 45%, #031f38 100%);
}

.category-hero-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}

/* Breadcrumb (above the title) */
.if-crumbs {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.if-crumbs nav,
.if-crumbs p {
  display: block;
  margin: 0;
  color: inherit;
}

.if-crumbs a {
  color: #fff;
  text-decoration: none;
}

.if-crumbs a:hover,
.if-crumbs a:focus-visible {
  text-decoration: underline;
}

.if-crumbs .separator {
  margin: 0 6px;
  opacity: 0.7;
}

.category-hero-banner-title {
  max-width: 760px;
  margin: 0 0 30px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.category-hero-banner-desc {
  max-width: 600px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* Search bar: big white field, compact logo-orange button */
.category-hero-banner-search {
  display: flex;
  width: 100%;
  max-width: 640px;
  margin: 0 0 20px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.category-hero-banner .category-hero-banner-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: var(--if-ink);
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
  line-height: 1.2;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.category-hero-banner .category-hero-banner-search-input:focus {
  box-shadow: inset 0 0 0 2px rgba(5, 69, 127, 0.35);
}

.category-hero-banner .category-hero-banner-search-btn {
  flex: 0 0 auto;
  min-height: 56px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--if-search-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-hero-banner .category-hero-banner-search-btn:hover,
.category-hero-banner .category-hero-banner-search-btn:focus-visible {
  background: var(--if-logo-orange-dark);
  color: #fff;
}

/* Popular Searches: small chips, always 4, one line each (hero height never grows) */
.category-popular-searches {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 980px;
}

.category-popular-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.category-popular-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.category-popular-chip {
  display: block;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease;
}

.category-popular-chip:hover,
.category-popular-chip:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Phones: lighter even layer so text stays readable over the whole photo */
@media (max-width: 767px) {
  .category-hero-banner {
    --if-hero-overlay: linear-gradient(180deg, rgba(4, 22, 44, 0.8) 0%, rgba(4, 22, 44, 0.62) 45%, rgba(4, 22, 44, 0.84) 100%);
    background-position: center;
  }

  .category-hero-banner-inner {
    padding: 26px 16px 30px;
  }

  .category-hero-banner-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .category-popular-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   CATEGORY PAGE — CARDS (4 per row on desktop, 1 per row on phones)
   ========================================================================== */
.category-archive-wrap {
  position: relative;
  display: block;
  clear: both;
  box-sizing: border-box;
  max-width: var(--if-wrap);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .category-archive-wrap { padding: 24px 16px 48px; }
  .category-grid { grid-template-columns: 1fr; gap: 18px; }
}

.category-card,
.category-card:hover,
.category-card:focus {
  color: #fff;
  text-decoration: none;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #0a2540; /* shown only if a post has no image at all */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(4, 22, 44, 0.28);
}

@media (max-width: 599px) {
  .category-card { aspect-ratio: 4 / 5; }
}

.category-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* !important: WordPress/GeneratePress give images height:auto, which left the bottom of the card empty */
.category-card-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.06);
}

/* Navy-tinted shade so the white text is readable on any photo */
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 22, 44, 0.94) 0%, rgba(4, 22, 44, 0.62) 38%, rgba(4, 22, 44, 0.08) 72%, rgba(4, 22, 44, 0) 100%);
}

.category-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
}

.category-card-title {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.category-card-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--if-logo-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.category-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.category-card-clock-icon {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card-img img { transition: none; }
  .category-card:hover,
  .category-card:focus-visible { transform: none; }
  .category-card:hover .category-card-img img { transform: none; }
}

/* Empty category */
.category-empty { grid-column: 1 / -1; color: var(--if-ink); }
.category-empty ul { margin: 12px 0 0 20px; }
.category-empty a { color: var(--if-link); font-weight: 700; }

/* Pagination */
.category-pagination {
  margin-top: 40px;
  text-align: center;
}

.category-pagination .page-numbers {
  display: inline-block;
  margin: 0 3px 6px;
  padding: 8px 14px;
  border: 1px solid var(--if-line);
  border-radius: 6px;
  color: var(--if-ink);
  text-decoration: none;
}

.category-pagination .page-numbers.current {
  background: var(--if-navy);
  border-color: var(--if-navy);
  color: #fff;
}

/* ==========================================================================
   SINGLE POST — LAYOUT
   ========================================================================== */
.if-body {
  box-sizing: border-box;
  max-width: var(--if-wrap);
  margin: 0 auto;
  padding: 16px 16px 24px;
  font-family: var(--if-font-body);
  color: var(--if-ink);
}

.if-main,
.if-side {
  min-width: 0; /* lets long words/tables shrink instead of pushing the page sideways */
}

@media (min-width: 960px) {
  .if-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--if-side-w);
    column-gap: 40px;
    align-items: start;
    padding: 36px 20px 64px;
  }

  .if-side {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  body.admin-bar .if-side {
    top: 52px;
    max-height: calc(100vh - 72px);
  }
}

/* Show/hide helpers (960px = the switch between mobile and desktop layout) */
.if-only-desktop { display: none !important; }

@media (min-width: 960px) {
  .if-only-desktop { display: block !important; }
  .if-only-mobile { display: none !important; }
}

/* Post content safety: nothing may push the page wider than the screen */
.if-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.if-content img { max-width: 100%; height: auto; }
.if-content iframe,
.if-content video,
.if-content embed,
.if-content object { max-width: 100%; }
.if-content pre { max-width: 100%; overflow-x: auto; }
.if-content h2,
.if-content h3 { scroll-margin-top: 90px; }


/* ==========================================================================
   SIDEBAR BOXES (Navigation, More Research, Experts' Advice)
   ========================================================================== */
.if-box {
  margin: 0 0 20px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 12px;
}

.if-main > .if-box { margin-top: 32px; }

.if-box__title {
  margin: 0 0 14px;
  font-family: var(--if-font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--if-ink);
}

.if-box__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--if-orange);
}

/* ==========================================================================
   FEATURE 1 — NAVIGATION (TABLE OF CONTENTS)
   ========================================================================== */
.if-toc__list,
.if-toc__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-toc__item { margin: 0; padding: 0; }

.if-toc__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
}

.if-toc__link {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--if-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.if-toc__link:hover,
.if-toc__link:focus-visible { color: var(--if-navy); text-decoration: underline; }

.if-toc__link.is-active { color: var(--if-orange-dark); }

/* "+" / "-" button drawn with two pseudo-element bars */
.if-toc__toggle {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #e8eef6;
  color: var(--if-navy);
  cursor: pointer;
}

.if-toc__toggle::before,
.if-toc__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.if-toc__toggle::before { width: 12px; height: 2px; }
.if-toc__toggle::after  { width: 2px; height: 12px; }

.if-toc__toggle[aria-expanded="true"]::after { display: none; }

.if-toc__toggle:hover { background: #dbe5f1; }
.if-toc__toggle:focus-visible { outline: 2px solid var(--if-navy); outline-offset: 2px; }

/* Sub-items: hidden until the <li> gets .is-open */
.if-toc__sub { display: none; margin: 0 0 6px; }
.if-toc__item.is-open > .if-toc__sub { display: block; }

.if-toc__subitem { margin: 0; padding: 0; }

.if-toc__link--sub {
  position: relative;
  display: block;
  padding: 5px 0 5px 16px;
  color: var(--if-slate);
  font-size: 14px;
  font-weight: 400;
}

.if-toc__link--sub::before {
  content: "\203A"; /* › */
  position: absolute;
  left: 2px;
  top: 5px;
  color: var(--if-slate);
}

.if-toc__link--sub.is-active { color: var(--if-navy); font-weight: 600; }

/* Desktop box vs. mobile accordion */
.if-toc--desktop { display: none !important; }

@media (min-width: 960px) {
  .if-toc--desktop { display: block !important; }
  .if-toc--mobile { display: none !important; }
}

.if-toc--mobile {
  margin: 20px 0;
  background: var(--if-soft);
  border: 1px solid var(--if-line);
  border-radius: 10px;
}

.if-toc--mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--if-navy);
  font-family: var(--if-font-head);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.if-toc--mobile summary::-webkit-details-marker { display: none; }

.if-toc--mobile summary::after {
  content: "+";
  margin-left: 12px;
  color: var(--if-orange);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.if-toc--mobile[open] summary::after { content: "\2013"; } /* – */

.if-toc--mobile .if-toc__list { padding: 0 16px 14px; }

/* ==========================================================================
   FEATURE 2 — MORE RESEARCH
   ========================================================================== */
.if-more__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: if-more;
}

.if-more__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px dotted #b9c6d6;
  counter-increment: if-more;
}

.if-more__item:last-child { border-bottom: 0; }

.if-more__item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--if-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.if-more__item a:hover .if-more__title,
.if-more__item a:focus-visible .if-more__title { text-decoration: underline; }

/* Big, thin, light grey-blue number */
.if-more__item a::before {
  content: counter(if-more);
  flex: 0 0 34px;
  color: #b8c7d9;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

/* First item: thumbnail + accent title + "Latest | Oct 2026"; no number */
.if-more__item.is-first a { align-items: flex-start; }
.if-more__item.is-first a::before { content: none; }

.if-more__thumb {
  flex: 0 0 84px;
  display: block;
  width: 84px;
  height: 84px;
  max-width: none;
  border-radius: 8px;
  object-fit: cover;
}

.if-more__text { min-width: 0; }

.if-more__item.is-first .if-more__title { color: var(--if-orange-dark); }

.if-more__meta {
  display: block;
  margin-top: 6px;
  color: var(--if-slate);
  font-size: 12px;
  font-weight: 400;
}

.if-more__title { overflow-wrap: anywhere; }

/* Experts' Advice (optional card) */
.if-experts__list { margin: 0; padding: 0 0 0 20px; }
.if-experts__item { margin: 0 0 8px; padding-left: 4px; font-size: 15px; line-height: 1.45; }
.if-experts__item a { color: var(--if-navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.if-experts__item a:hover { text-decoration: underline; }

/* ==========================================================================
   FEATURE 3 — COMMENTS
   ========================================================================== */
.if-comments {
  min-width: 0;
  margin-top: 40px;
  font-family: var(--if-font-body);
}

.if-comments .comments-title {
  margin: 0 0 20px;
  font-family: var(--if-font-head);
  font-size: 22px;
  line-height: 1.3;
  color: var(--if-ink);
}

/* Existing comments */
.if-comments .comment-list,
.if-comments .comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-comments .comment-list { margin-bottom: 32px; }
.if-comments .comment-list .children { padding-left: 18px; }

@media (min-width: 640px) {
  .if-comments .comment-list .children { padding-left: 36px; }
}

.if-comments .comment-body {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid var(--if-line);
}

.if-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--if-ink);
}

.if-comments .comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.if-comments .comment-author .says { display: none; }

.if-comments .comment-metadata {
  margin: 4px 0 10px 54px;
  font-size: 13px;
  color: var(--if-slate);
}

.if-comments .comment-metadata a { color: inherit; text-decoration: none; }

.if-comments .comment-content {
  margin-left: 54px;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.if-comments .comment-content p { margin: 0 0 12px; }
.if-comments .comment-content img { max-width: 100%; height: auto; }

.if-comments .reply { margin: 4px 0 0 54px; font-size: 14px; }
.if-comments .reply a { color: var(--if-navy); font-weight: 600; text-decoration: none; }
.if-comments .reply a:hover { text-decoration: underline; }

.if-comments .no-comments { color: var(--if-slate); }

/* The form card */
.if-comments .comment-respond {
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}

@media (min-width: 640px) {
  .if-comments .comment-respond { padding: 28px; }
}

.if-comments .comment-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--if-font-head);
  font-size: 20px;
  line-height: 1.3;
  color: var(--if-ink);
}

.if-comments .comment-reply-title small { font-family: var(--if-font-body); font-size: 14px; }

/* Form = CSS grid: 1 column on phones, 2 columns from 640px */
.if-comments .comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.if-comments .comment-form > * { margin: 0; min-width: 0; }

@media (min-width: 640px) {
  .if-comments .comment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* notice, comment box, "logged in as", submit: full width */
  .if-comments .comment-form > * { grid-column: 1 / -1; }

  /* Name + Email sit side by side */
  .if-comments .comment-form .comment-form-author,
  .if-comments .comment-form .comment-form-email { grid-column: auto; }
}

.if-comments .if-comment-note,
.if-comments .logged-in-as {
  font-size: 14px;
  line-height: 1.5;
  color: var(--if-slate);
}

.if-comments .comment-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--if-ink);
}

.if-comments .required { color: var(--if-orange); }

.if-comments .comment-form input[type="text"],
.if-comments .comment-form input[type="email"],
.if-comments .comment-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: var(--if-ink);
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zoom */
  line-height: 1.4;
  box-shadow: none;
}

.if-comments .comment-form textarea { min-height: 140px; resize: vertical; }

.if-comments .comment-form input[type="text"]:focus,
.if-comments .comment-form input[type="email"]:focus,
.if-comments .comment-form textarea:focus {
  outline: 0;
  border-color: var(--if-navy);
  box-shadow: 0 0 0 3px rgba(5, 69, 127, 0.18);
}

.if-comments .comment-form .form-submit { margin: 0; }

.if-comments .comment-form .form-submit .submit,
.if-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: var(--if-orange);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease;
}

.if-comments .comment-form .form-submit .submit:hover,
.if-comments .comment-form .form-submit .submit:focus-visible,
.if-btn:hover,
.if-btn:focus-visible {
  background: var(--if-orange-dark);
  color: #fff;
}

@media (min-width: 640px) {
  .if-comments .comment-form .form-submit .submit,
  .if-btn { display: inline-block; width: auto; }
}

/* ==========================================================================
   v3 — SINGLE POST CONTENT
   ========================================================================== */


/* All headings inside the article: black, Merriweather */
.if-content h2,
.if-content h3,
.if-content h4,
.if-content h5,
.if-content h6 {
  color: #000 !important;
  font-family: var(--if-font-head);
}

/* First element: no blank gap above it */
.if-content > :first-child,
.if-disclosure-wrap > :first-child { margin-top: 0; }

/* Links inside the article: orange, bold, underline on hover */
.if-content a:not(.wp-block-button__link):not(.if-pbox__btn):not(.if-card__btn) {
  color: var(--if-link);
  font-weight: 700;
  text-decoration: none;
}

.if-content a:not(.wp-block-button__link):not(.if-pbox__btn):not(.if-card__btn):hover,
.if-content a:not(.wp-block-button__link):not(.if-pbox__btn):not(.if-card__btn):focus-visible {
  color: var(--if-link);
  text-decoration: underline;
}

/* ---------- Disclosure box (first short element): light grey, slightly floating ---------- */
.if-disclosure-wrap { margin: 0 0 18px; }

.if-disclosure-wrap > * {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e6e8ec !important;
  border-left: 3px solid var(--if-orange) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.09) !important;
  color: #3c4654 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.if-disclosure-wrap > * p { margin: 0; }

/* ---------- Tables ---------- */
.if-table-wrap {
  position: relative;
  margin: 28px 0;
  border: 1px solid var(--if-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.if-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.if-content .if-table-wrap figure,
.if-content .if-table-wrap .wp-block-table { margin: 0; }

.if-content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  font-size: 15px;
  line-height: 1.5;
}

.if-content table th,
.if-content table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--if-line);
  vertical-align: top;
  text-align: left;
  color: var(--if-ink);
}

.if-content table thead th,
.if-content table tr:first-child th {
  background: #f1f4f8;
  color: #000;
  font-weight: 700;
  border-bottom: 2px solid #d6dde7;
}

.if-content table tr:last-child td { border-bottom: 0; }
.if-content table td:first-child,
.if-content table th:first-child { font-weight: 700; }

/* Bold text in the other columns = small orange pill */
.if-content table td:not(:first-child) strong,
.if-content table td:not(:first-child) b {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(232, 98, 42, 0.12);
  color: var(--if-orange-dark);
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .if-content table { min-width: 580px; font-size: 14px; }

  /* First column stays in view while swiping */
  .if-content table th:first-child,
  .if-content table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 112px;
    background: #fff;
  }

  .if-content table thead th:first-child,
  .if-content table tr:first-child th:first-child { background: #f1f4f8; }

  .if-table-wrap.is-scrolled table td:first-child,
  .if-table-wrap.is-scrolled table th:first-child { box-shadow: 4px 0 8px -4px rgba(16, 24, 40, 0.25); }

  /* Right-edge shadow = "more to swipe" hint */
  .if-table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 26px;
    background: linear-gradient(to left, rgba(16, 24, 40, 0.16), rgba(16, 24, 40, 0));
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .if-table-wrap.is-end::after { opacity: 0; }
}

/* ---------- Callout (block "Styles" panel -> Callout) ---------- */
.is-style-if-callout {
  position: relative;
  box-sizing: border-box;
  margin: 28px 0;
  padding: 24px 28px;
  background: #f1f2f4;
  border: 0;
  border-radius: 2px;
  color: var(--if-ink);
  font-style: normal;
  font-weight: 700;
}

.is-style-if-callout p,
.is-style-if-callout cite { font-weight: 700; font-style: normal; }
.is-style-if-callout > :first-child { margin-top: 0; }
.is-style-if-callout > :last-child { margin-bottom: 0; }

.is-style-if-callout::before,
.is-style-if-callout::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.is-style-if-callout::before {
  top: 10px;
  right: 10px;
  border-top: 3px solid var(--if-orange);
  border-right: 3px solid var(--if-orange);
}

.is-style-if-callout::after {
  bottom: 10px;
  left: 10px;
  border-bottom: 3px solid var(--if-orange);
  border-left: 3px solid var(--if-orange);
}

/* ---------- Product cards (pattern "Product cards (3 in a row)") ---------- */
.if-content .wp-block-columns.if-products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.if-products > .wp-block-column {
  flex: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 10px;
}

.if-products .wp-block-image { margin: 0 0 10px; }

.if-products .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.if-content .if-products .if-pc-title {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  min-height: 2.7em;
  color: var(--if-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.if-products .wp-block-buttons { margin: auto 0 0; }
.if-products .wp-block-button { width: 100%; }

.if-content .if-products .wp-block-button__link {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  background: var(--if-orange);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.if-content .if-products .wp-block-button__link:hover,
.if-content .if-products .wp-block-button__link:focus-visible {
  background: var(--if-orange-dark);
  color: #fff;
  text-decoration: none;
}

/* Phones: swipe sideways, next card peeks in */
@media (max-width: 599px) {
  .if-content .wp-block-columns.if-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .if-products > .wp-block-column {
    flex: 0 0 68% !important;
    scroll-snap-align: start;
  }
}

/* ---------- External-link hover card (title + site logo) ---------- */
.if-linkcard {
  position: absolute;
  z-index: 99999;
  display: none;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 250px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.16);
  color: var(--if-ink);
  font-family: var(--if-font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
}

.if-linkcard.is-on { display: flex; }

.if-linkcard img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
}

.if-linkcard span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   v3 — RELATED ARTICLES
   ========================================================================== */
.if-related {
  position: relative;
  box-sizing: border-box;
  margin: 48px 0 32px;
  padding: 36px 22px 24px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-family: var(--if-font-body);
}

.if-content + .if-related { margin-top: 48px; }

.if-related .if-related__label {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 0 16px;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--if-ink);
  font-family: var(--if-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.if-related__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
}

.if-related__card,
.if-related__card:hover {
  display: block;
  color: var(--if-ink);
  text-decoration: none;
}

.if-related__img {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--if-soft);
  aspect-ratio: 4 / 3;
}

.if-related__img img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.if-related__card:hover .if-related__img img { transform: scale(1.04); }

.if-related__title {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--if-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.if-related__card:hover .if-related__title,
.if-related__card:focus-visible .if-related__title { text-decoration: underline; }

.if-related__dots { display: none; }

/* Phones: one card at a time, swipe sideways */
@media (max-width: 767px) {
  .if-related { padding: 32px 14px 16px; }

  .if-related__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .if-related__track::-webkit-scrollbar { display: none; }

  .if-related__card {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 2px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .if-related__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
  }

  .if-related__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfd8e3;
    cursor: pointer;
  }

  .if-related__dot.is-active { background: var(--if-orange); }
}

/* ==========================================================================
   v3 — MOBILE SPACING (comments -> footer, above the disclosure box)
   ========================================================================== */
@media (max-width: 959px) {
  body.single .site-content { padding-bottom: 0 !important; }
  body.single .site-footer,
  body.single .site-footer .site-info { margin-top: 0 !important; }
  .if-comments { margin-bottom: 0; }
  .if-comments .comment-respond { margin-bottom: 0; }
  .if-comments .comment-respond > :last-child,
  .if-comments .comment-form > :last-child { margin-bottom: 0; }
  .if-comments .comment-form .form-submit { margin-bottom: 0; }
  .if-body { padding-bottom: 12px; }
}

/* ==========================================================================
   v4 — SHORTCODE BLOCKS: Product Box [if_product] + Product Cards [if_cards]
   ========================================================================== */
.if-content .if-pbox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  box-sizing: border-box;
  margin: 32px 0;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 10px;
}

.if-pbox__img { text-align: center; }
.if-pbox__img a { display: block; }

.if-content .if-pbox__img img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain;
}

/* Score ribbon, top right */
.if-pbox__score {
  position: absolute;
  top: -1px;
  right: 20px;
  box-sizing: border-box;
  width: 56px;
  padding: 12px 0 20px;
  background: var(--if-orange-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.if-pbox__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 64px; /* keeps text clear of the ribbon */
}

.if-pbox__rank {
  flex: 0 0 auto;
  color: var(--if-orange-dark);
  font-family: var(--if-font-head);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.if-pbox__titles { min-width: 0; }

.if-pbox__label {
  display: block;
  color: var(--if-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.if-pbox__name {
  display: block;
  margin-top: 2px;
  color: var(--if-orange-dark);
  font-family: var(--if-font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.if-content .if-pbox__btn,
.if-content .if-card__btn {
  display: inline-block;
  box-sizing: border-box;
  background: var(--if-orange);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.if-content .if-pbox__btn {
  min-width: 250px;
  margin: 22px 0 0;
  padding: 15px 28px;
  border-radius: 6px;
  font-size: 16px;
}

.if-content .if-pbox__btn:hover,
.if-content .if-pbox__btn:focus-visible,
.if-content .if-card__btn:hover,
.if-content .if-card__btn:focus-visible {
  background: var(--if-orange-dark);
  color: #fff;
  text-decoration: none;
}

.if-pbox__ftitle {
  margin: 24px 0 10px;
  color: var(--if-orange-dark);
  font-family: var(--if-font-head);
  font-size: 19px;
  font-weight: 700;
}

.if-content .if-pbox__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-pbox__features li {
  position: relative;
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
}

.if-pbox__features li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--if-orange-dark);
}

.if-pbox__features strong { display: block; color: var(--if-ink); }
.if-pbox__features span { display: block; color: #3c4654; }

.if-content .if-pbox__more {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Phones: image on top, text below */
@media (max-width: 767px) {
  .if-content .if-pbox {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 16px 20px;
  }

  .if-content .if-pbox__img img { max-width: 240px; max-height: 220px; }
  .if-pbox__score { right: 12px; width: 46px; font-size: 18px; padding: 10px 0 17px; }
  .if-pbox__rank { font-size: 48px; }
  .if-pbox__name { font-size: 19px; }
  .if-pbox__head { padding-right: 52px; }
  .if-content .if-pbox__btn { display: block; width: 100%; min-width: 0; }
  .if-content .if-pbox__features { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Product cards: 3 in a row; phones swipe sideways ---- */
.if-content .if-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.if-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  padding: 16px 16px 0;
  background: #fff;
  border: 1px solid var(--if-line);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.if-card:hover,
.if-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.if-card__img { margin: 0 0 14px; }
.if-card__img a { display: block; }

.if-content .if-card__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.if-card__title {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  height: 2.7em;
  color: #1b2a4a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.if-content .if-card__btn {
  display: block;
  width: 100%;
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 16px;
}

/* thin divider line above the button, like House & Beyond */
.if-card { padding-bottom: 16px; }
.if-content .if-card__btn { position: relative; margin-top: auto; }
.if-card__title + .if-card__btn { margin-top: 16px; }
.if-content .if-card__btn::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -16px;
  right: -16px;
  border-top: 1px solid var(--if-line);
  pointer-events: none;
}

@media (max-width: 599px) {
  .if-content .if-cards {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .if-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   v5 — POST HEADER (House & Beyond style): no empty gaps
   Desktop: breadcrumb / title / meta on the left, framed image on the right.
   Phones : breadcrumb, title, image, meta.
   ========================================================================== */
.if-ph {
  width: 100%;
  background: #f4f7fb;
  font-family: var(--if-font-body);
  color: var(--if-ink);
}

.if-ph__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "crumbs" "title" "img" "meta";
  box-sizing: border-box;
  max-width: var(--if-wrap);
  margin: 0 auto;
  padding: 18px 16px 30px;
}

.if-ph__crumbs { grid-area: crumbs; font-size: 15px; line-height: 1.5; }
.if-ph__crumbs nav,
.if-ph__crumbs p { margin: 0; color: var(--if-ink); }
.if-ph__crumbs a { color: var(--if-ink); text-decoration: none; }
.if-ph__crumbs a:hover { text-decoration: underline; }
.if-ph__crumbs .separator { margin: 0 4px; }

.if-ph .if-ph__title {
  grid-area: title;
  margin: 22px 0 0;
  color: #000;
  font-family: var(--if-font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: break-word;
}

.if-ph__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.if-ph__name {
  font-weight: 700;
  border-bottom: 2px dotted currentColor;
}

.if-ph__sep { width: 1px; height: 24px; background: #c5cdd8; }
.if-ph__upd strong { font-weight: 700; }

.if-ph__rev { display: inline-flex; align-items: center; gap: 6px; }

.if-ph__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3a2418;
}

/* Framed image: navy block up-left, thin orange outline down-right */
.if-ph__img {
  grid-area: img;
  position: relative;
  margin: 26px 14px 24px 14px;
}

.if-ph__img::before,
.if-ph__img::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.if-ph__img::before {
  top: -14px;
  left: -12px;
  right: 12px;
  bottom: 14px;
  background: #032f56;
  border-radius: 4px;
}

.if-ph__img::after {
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid #e0623a;
  border-radius: 4px;
}

.if-ph__img img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
}

@media (min-width: 960px) {
  .if-ph__grid {
    max-width: 1320px;
    grid-template-columns: minmax(0, 1fr) 560px;
    grid-template-areas:
      "crumbs img"
      "title  img"
      "meta   img"
      ".      img";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 36px;
    padding: 40px 20px 40px;
  }

  .if-ph__crumbs { font-size: 17px; }

  .if-ph .if-ph__title {
    margin: 70px 0 0;
    font-size: 42px;
    line-height: 1.22;
    text-align: left;
  }

  .if-ph__meta { justify-content: flex-start; margin-top: 22px; font-size: 16px; gap: 6px 12px; }

  .if-ph__img { margin: 40px 44px 0 44px; }
  .if-ph__img::before { top: -40px; left: -48px; right: 48px; bottom: 40px; }
  .if-ph__img::after { top: -18px; left: 40px; right: -40px; bottom: 18px; }
}

/* Body starts right under the header band: no extra blank space */
.if-ph + .if-body { padding-top: 22px; }

/* ==========================================================================
   v6 — tidy tables, More Research like House & Beyond, stronger callout
   ========================================================================== */

/* ---- Tables: compact rows (beats other plugin/theme padding) ---- */
.if-content table th,
.if-content table td {
  padding: 9px 16px !important;
  line-height: 1.45 !important;
}

/* 3 columns or fewer: narrow + centred on desktop, never a huge empty column */
@media (min-width: 768px) {
  .if-table-wrap.is-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .if-table-wrap.is-narrow table td:first-child,
  .if-table-wrap.is-narrow table th:first-child { width: 34%; }
}

/* ---- Sidebar boxes: soft blue border + glow ---- */
.if-box {
  border: 1px solid #b9c6d8;
  border-radius: 8px;
  box-shadow: 0 4px 22px rgba(90, 125, 185, 0.16);
}

/* ---- More Research: exactly the House & Beyond look ---- */
.if-more {
  padding: 26px 22px 12px;
}

.if-more .if-box__title {
  margin: 0 0 22px;
  color: #26292e;
  font-size: 23px;
  line-height: 1.3;
  text-align: center;
}

.if-more .if-box__title::after { display: none; }

.if-more__item {
  border-bottom: 0;
  border-top: 1px dashed #b3bdd2;
}

.if-more__item:first-child { border-top: 0; }

.if-more__item a {
  gap: 16px;
  padding: 14px 0;
  color: #26292e;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.if-more__item a:hover,
.if-more__item a:focus-visible { text-decoration: none; }

.if-more__item a::before {
  flex: 0 0 30px;
  color: #aeb5c4;
  font-size: 34px;
  font-weight: 300;
}

.if-more__item.is-first a { padding: 4px 0 18px; align-items: center; gap: 20px; }

.if-more__thumb {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 0;
}

.if-more__item.is-first .if-more__title {
  color: #26292e;
  font-size: 19px;
  line-height: 1.3;
}

.if-more__meta {
  margin-top: 8px;
  color: #a9b0bf;
  font-size: 15px;
}

/* ---- Callout: a clearly "designed" note ---- */
.is-style-if-callout {
  margin: 36px 0;
  padding: 30px 44px;
  background: #f3f4f6;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(16, 24, 40, 0.06);
  color: #1b2330;
  font-size: 19px;
  line-height: 1.6;
}

.is-style-if-callout::before,
.is-style-if-callout::after {
  width: 26px;
  height: 26px;
}

.is-style-if-callout::before {
  top: 14px;
  right: 14px;
  border-top-width: 4px;
  border-right-width: 4px;
}

.is-style-if-callout::after {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 4px;
  border-left-width: 4px;
}

@media (max-width: 599px) {
  .is-style-if-callout { padding: 26px 30px; font-size: 17px; }
}
