/* Kalory Culinary & Nutrition Journal, Quick Answer Summaries, E-E-A-T & Legal Pages */

.bmain {
  padding-top: 28px;
}

/* ==========================================================================
   1. Blog Index Masthead & Editorial Lead + Grid
   ========================================================================== */
.bindex {
  padding: 16px 0 84px;
}

.bindex h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.bindex .sub {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.55;
}

.bindex__bar {
  margin-top: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--porcelain);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}

.bindex__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.cards {
  margin-top: 26px;
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards > .card.is-lead:not([hidden]) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .cards > .card.is-lead:not([hidden]) .card__img {
    height: 100%;
    aspect-ratio: auto;
  }
  .cards > .card.is-lead:not([hidden]) .card__t {
    font-size: 27px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), border-color 0.2s;
}
.card[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: var(--olive);
    box-shadow: 0 18px 36px -22px rgb(20 33 25 / 0.24);
  }
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}

.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__tags {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive);
}

.card__t {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}

.card__d {
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card small {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   2. Single Article, Comparison Guide & Editorial Policy Layout
   ========================================================================== */
.post {
  width: min(100% - 2 * var(--gutter), 740px);
  margin-inline: auto;
  padding: 8px 0 84px;
  font-size: 17.5px;
  line-height: 1.68;
}

.locale-hint {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--olive-soft);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.locale-hint a {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 600;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.post__head { margin-top: 16px; }

.post__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post__chips span {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.post h1 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* E-E-A-T Top Byline Row (.byline-row) */
.byline-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.byline-row__mono {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.byline-row__text a {
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.byline-row__text a:hover {
  color: var(--olive);
  text-decoration-color: var(--olive);
}

.byline-row__policy {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 620;
  color: var(--olive);
  transition: border-color 0.18s, background-color 0.18s;
}
.byline-row__policy:hover {
  border-color: var(--olive);
  background: var(--olive-soft);
  color: var(--ink);
}

.post__lead {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.56;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Cronometer-Style Top Quick Answer Summary Box (1px full border, warm olive-porcelain) */
.quick-answer {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--olive-soft) 52%, var(--porcelain)) 0%,
    var(--porcelain) 100%
  );
  border: 1px solid color-mix(in srgb, var(--olive) 26%, var(--line-strong));
  box-shadow: 0 10px 26px -22px rgb(20 33 25 / 0.24);
}

.quick-answer__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.quick-answer__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  flex: none;
}

.quick-answer__text {
  margin-top: 8px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 68ch;
  text-wrap: pretty;
}

.post__hero {
  margin-top: 24px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
}

.post__hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post__credit {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}
.post__credit a { text-decoration: underline; }

.toc {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
}

.toc p {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
}

.toc ol {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 5px;
  font-size: 15.5px;
  line-height: 1.45;
}
.toc a:hover {
  color: var(--olive);
  text-decoration: underline;
}

.post__body {
  margin-top: 28px;
}
.post__body > * + * { margin-top: 18px; }

.post__body h2 {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(23px, 3.6vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--top-offset) + 20px);
}

.post__body h3 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
}

.post__body p,
.post__body li {
  color: var(--ink-2);
  max-width: 68ch;
  text-wrap: pretty;
}

.post__body ul,
.post__body ol {
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
}
.post__body li::marker { color: var(--olive); font-weight: 600; }

/* Nutrition & Comparison Table Box */
.data-box {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.data-box h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
}

.nutri-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 10px;
}
.nutri-table th,
.nutri-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.nutri-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nutri-table tr:last-child td { border-bottom: 0; }

/* Practical Tip Callout (full 1px border, zero side stripe) */
.note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--olive-soft);
  border: 1px solid var(--line-strong);
}
.note__k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
}
.note p + p, .note__k + * { margin-top: 6px; }

.post-foods {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.post-foods h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
}

/* Inline App Callout */
.blog-cta {
  margin-top: 38px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--apricot-soft) 0%, var(--porcelain) 100%);
  border: 1px solid var(--line-strong);
}
.blog-cta__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgb(20 33 25 / 0.12);
}
.blog-cta__text p {
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--ink-2);
}
.blog-cta__text p:first-child {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.blog-cta .store-badge {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (min-width: 620px) {
  .blog-cta { grid-template-columns: auto 1fr auto; }
  .blog-cta .store-badge { grid-column: auto; }
}

/* E-E-A-T Author & Verification Card (.author-box) */
.author-box {
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.author-box__mono {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: none;
}

.author-box__body > * + * {
  margin-top: 6px;
}

.author-box__name {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.author-box__name a:hover {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-box__role {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
}

.author-box__bio {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 64ch;
}

.author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-box__link:hover {
  color: var(--ink);
}

/* Sources & Related */
.sources {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.sources h2 {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sources ul {
  margin-top: 10px;
  padding-inline-start: 18px;
  display: grid;
  gap: 6px;
}
.sources a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.related h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
}
.related__grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
@media (min-width: 680px) {
  .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.related__card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.related__card:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
}
.related__card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive);
}
.related__card b {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
