/* SEO pages: dish calories, hubs, calculators, roundup. Loaded after site.css. */
.seo { padding-block: 16px 120px; }
.seo h2 { font-size: 26px; line-height: 1.4; margin: 0 0 20px; }
.seo h3 { font-size: 20px; line-height: 1.4; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 15px; }
.seo .muted { margin: 20px 0 0; }

.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }

/* Question and answer header */
.qa { margin-bottom: 48px; }
.qa h1 { font-size: 46px; line-height: 1.3; margin: 0 0 20px; letter-spacing: -0.3px; }
.qa .answer { font-size: 20px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.chip { display: inline-block; background: var(--accent-soft); color: var(--accent-press); border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }

.bignum { display: flex; align-items: center; gap: 20px; background: var(--surface); border-radius: 28px; padding: 28px 32px; box-shadow: var(--lift); margin-top: 36px; }
.bignum b { font-size: 64px; line-height: 1; color: var(--accent); font-weight: 700; }
.bignum span { font-size: 19px; font-weight: 600; line-height: 1.5; }
.bignum small { font-size: 15px; font-weight: 400; color: var(--muted); }
.macros { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.macros li { background: var(--surface); border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; }
.macros span { color: var(--muted); font-size: 14px; }
.macros b { font-size: 22px; }

/* Blocks */
.blk { margin-top: 72px; }
.tbl { overflow-x: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--lift); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: start; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 14px; color: var(--muted); font-weight: 500; background: var(--sunk); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody th { font-weight: 500; }
.tbl tr.per100 { color: var(--ink-2); }
.tbl a { text-decoration: none; font-weight: 500; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { background: var(--surface); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 28px; color: var(--accent); line-height: 1.3; }
.facts span { color: var(--ink-2); font-size: 15px; }

.tips { margin: 0; padding-inline-start: 22px; color: var(--ink-2); }
.tips li { margin-block: 10px; }

.nears { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.near { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 16px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--lift); }
.near span { font-weight: 500; }
.near b { color: var(--accent); white-space: nowrap; }
.near small { font-size: 13px; color: var(--muted); font-weight: 400; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catcard { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--lift); }
.catcard b { font-size: 18px; }
.catcard span { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.catcard small { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: auto; padding-top: 8px; }

.search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-weight: 500; }
.search input { font: inherit; padding: 14px 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); min-height: 54px; }

/* App Store call to action */
.cta { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(160deg, #F7E5DA 0%, #F3D3BF 100%); border-radius: 32px; padding: 36px; margin-top: 72px; }
.cta img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 12px rgba(60,38,20,.15); flex-shrink: 0; }
.cta h2 { font-size: 24px; margin: 0 0 8px; }
.cta p { margin: 0 0 24px; color: var(--ink-2); }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 22px 10px 20px; min-height: 60px; }
.store svg { width: 28px; height: 28px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store small { font-size: 12px; opacity: .8; }
.store b { font-size: 19px; font-weight: 600; direction: ltr; text-align: right; }

/* FAQ */
.faq details { background: var(--surface); border-radius: 20px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; line-height: 1.6; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

.src { margin-top: 56px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.enline { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: left; }

/* Calculators */
.calc { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 24px; }
.calc .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 15px; }
.fld .in { position: relative; display: flex; }
.fld input, .fld select { font: inherit; font-weight: 400; width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.fld .in input { padding-inline-end: 52px; }
.fld .in i { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; }
.fld input:focus, .fld select:focus, .search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.seg legend { font-weight: 500; font-size: 15px; margin-bottom: 8px; padding: 0; }
.seg label { flex: 1; min-width: 120px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc .btn { align-self: flex-start; min-width: 180px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.calc .err { color: #A33B2B; margin: 0; font-size: 15px; }

.result { margin-top: 40px; }
.res-main { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px; }
.res-main .lbl { opacity: .75; font-size: 15px; }
.res-main .big { font-size: 56px; font-weight: 700; line-height: 1.2; margin: 4px 0 8px; }
.res-main .big small { font-size: 20px; font-weight: 400; opacity: .8; margin-inline-start: 8px; }
.res-main p { margin: 0; opacity: .85; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.res-grid div { background: var(--surface); border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; }
.res-grid span { color: var(--muted); font-size: 14px; }
.res-grid b { font-size: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pills a { background: var(--surface); border-radius: 999px; padding: 10px 20px; text-decoration: none; color: var(--ink); font-weight: 500; box-shadow: var(--lift); }

/* Roundup */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.appcard { background: var(--surface); border-radius: 24px; padding: 24px; }
.appcard p { margin: 0; color: var(--ink-2); }
.appcard .muted { margin-top: 12px; font-size: 14px; }

/* Footer with links */
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; margin-bottom: 32px; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links b { color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.foot .copy { width: 100%; }

@media (max-width: 760px) {
  .seo { padding-block: 8px 88px; }
  .qa { margin-bottom: 40px; }
  .qa h1 { font-size: 32px; }
  .qa .answer { font-size: 18px; }
  .seo h2 { font-size: 22px; }
  .bignum { padding: 24px; gap: 16px; }
  .bignum b { font-size: 48px; }
  .blk, .cta { margin-top: 56px; }
  .macros li, .res-grid div { padding: 14px 16px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .nears, .cats, .apps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; padding: 28px 24px; gap: 16px; }
  .tbl th, .tbl td { padding: 12px 14px; font-size: 15px; }
  .calc { padding: 24px 20px; }
  .calc .row { grid-template-columns: 1fr; }
  .calc .btn { align-self: stretch; }
  .res-main { padding: 24px; }
  .res-main .big { font-size: 44px; }
  .foot-links { grid-template-columns: 1fr; gap: 28px; }
  table.dishes th:nth-child(5), table.dishes td:nth-child(5) { display: none; }
}

/* Dish header: sizes with grams */
.sizes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sizes li { background: var(--surface); border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.sizes li.mid { box-shadow: inset 0 0 0 2px var(--accent); }
.sizes span { color: var(--muted); font-size: 14px; }
.sizes b { font-size: 22px; line-height: 1.4; }
.sizes b small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.3; }
.sizes i { font-style: normal; color: var(--ink-2); font-size: 14px; }
.macro-line { margin: 20px 0 0; color: var(--ink-2); }
.qa .macros { margin-top: 12px; }

/* Verdict list on comparison pages */
.verdicts { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.verdicts div { background: var(--surface); border-radius: 20px; padding: 18px 24px; box-shadow: var(--lift); }
.verdicts dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.verdicts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.6; }
.blk.first { margin-top: 0; }
.apptbl td, .apptbl th { white-space: nowrap; }

/* English pages */
body.ltr { font-family: "Readex Pro", -apple-system, "Helvetica Neue", Arial, sans-serif; }
body.ltr .tbl th, body.ltr .tbl td { text-align: left; }
body.ltr .enline { text-align: left; }

@media (max-width: 760px) {
  .sizes { gap: 8px; }
  .sizes li { padding: 12px 14px; }
  .sizes b { font-size: 18px; }
  .verdicts div { padding: 16px 18px; }
}
.cta + .muted { margin-top: 40px; }
@media (max-width: 760px) {
  .apptbl td, .apptbl th { white-space: normal; padding: 12px 10px; font-size: 14px; }
}
