/* ==========================================================================
   Tip article (js/screens/tip.js) — Figma 72:14306 … 72:14703
   ========================================================================== */
.screen-tip { --tip-tint: #f9f6e7; background: var(--bg); }

/* ---------- Hero (Section N Header, 393×356 incl. status bar) ---------- */
.tip-hero {
  position: relative; overflow: hidden; flex-shrink: 0;
  height: calc(var(--safe-top) + 302px);
  background: var(--neutral-light);
}
.tip-hero img { position: absolute; max-width: none; object-fit: cover; transform: none; }

/* ---------- Article ---------- */
.tip-article {
  display: flex; flex-direction: column; gap: 40px;
  padding: 40px 16px 40px;
  color: var(--caviar);
}

/* Title block (Figma "Title N") */
.tip-title-block { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tip-title-top { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.tip-sticker {
  display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 8px;
  background: var(--tomato); color: #fff;
  font: 700 12px/normal var(--font-sans); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
}
.tip-title { width: 100%; text-align: center; font: 700 36px/40px var(--font-serif); color: #232323; }
.tip-meta { display: flex; align-items: center; gap: 8px; }
.tip-meta > .read-time { font: 400 14px/normal var(--font-sans); color: var(--neutral-dark); white-space: nowrap; }
.tip-rule { display: block; width: 120px; height: 1px; margin-bottom: -1px; background: var(--tomato); } /* 0-height line in Figma */
.tip-lead { max-width: 347px; text-align: center; font: 400 18px/29.25px var(--font-sans); }
.tip-lead.wide { max-width: 361px; }
.tip-lead b { font-weight: 700; }

/* Body */
.tip-hr { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid var(--neutral-light-shade); }
.tip-group { display: flex; flex-direction: column; }
.tip-p { font: 400 16px/26px var(--font-sans); color: var(--caviar); }
.tip-p b { font-weight: 700; }
.tip-link { color: var(--tomato); cursor: pointer; }
.tip-ps { display: flex; flex-direction: column; gap: 16px; }
.tip-ps.loose { gap: 26px; }  /* Figma: paragraphs separated by an empty 26px line */

/* Subhead (24/27 bold), optional numbered counter (Mise Org / Anatomy Counter) */
.tip-h { position: relative; font: 700 24px/27px var(--font-sans); color: var(--caviar); }
.tip-h.has-n { padding-left: 40px; margin: 0 1px; }
.tip-h.narrow { max-width: 322px; }
.tip-n {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--caviar); box-shadow: 0 0 0 .5px #fff inset;
  display: flex; align-items: center; justify-content: center;
  font: 700 16px/20px var(--font-sans); color: #fff;
}
.tip-img { width: 100%; height: 116px; border-radius: 8px; object-fit: cover; }

/* Method card (Primary/Light/Tint) */
.tip-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 8px; background: var(--tip-tint); color: var(--caviar);
}
.tip-box-title { font: 700 18px/29.25px var(--font-sans); }
.tip-bullets { margin: 0; padding: 0 0 0 24px; list-style: disc; font: 400 16px/26px var(--font-sans); }
.tip-bullets li + li { margin-top: 26px; }
.tip-bullets b { font-weight: 700; }

/* Turkey size stats (cook-time) */
.tip-stats { gap: 24px; padding: 20px 16px; }
.tip-stat { display: flex; align-items: flex-start; gap: 16px; }
.tip-stat > img { width: 24px; height: 24px; flex-shrink: 0; }
.tip-stat-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tip-stat-label { font: 700 14px/22.75px var(--font-sans); letter-spacing: 1.4px; text-transform: uppercase; color: #232323; }
.tip-stat-val { font: 400 16px/26px var(--font-sans); }
.tip-stat-list { margin: 0; padding: 0 0 0 24px; list-style: disc; font: 400 16px/26px var(--font-sans); max-width: 283px; }

/* Make-ahead table (Figma "Table 1") */
.tip-table-wrap { border: 1px solid var(--caviar); border-radius: 4px; overflow: hidden; background: #fff; }
.tip-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: var(--caviar); }
.tip-table th, .tip-table td {
  padding: 10px 12px; text-align: left; vertical-align: top;
  border-left: 1px solid var(--caviar);
}
.tip-table td { border-top: 1px solid var(--caviar); padding-top: 9px; font: 400 14px/1.3 var(--font-sans); } /* Figma draws cell borders inside the 10px padding */
.tip-table th { background: var(--tip-tint); font: 700 20px/1.3 var(--font-serif); }
.tip-table th:first-child,
.tip-table tbody tr > td:first-child:nth-last-child(3) { border-left: 0; }

/* ---------- End of article: Up next / Next section ---------- */
.tip-end {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px; border-radius: 8px; background: var(--neutral-light);
}
.tip-end-title { font: 700 16px/26px var(--font-sans); color: var(--caviar); }
.tip-bars { display: flex; gap: 6px; }
.tip-bars i { flex: 1 1 0; height: 4px; background: var(--neutral-light-shade); transition: background .3s; }
.tip-bars i:first-child { border-radius: 100px 0 0 100px; }
.tip-bars i:last-child { border-radius: 0 100px 100px 0; }
.tip-bars i.on { background: var(--success); }
.tip-end .content-card { width: 100%; }
/* Figma Section Content Cards: 8px between text and check (shared card has 16+8). */
.tip-end .ccd-check { margin-left: -8px; }

.tip-sec-card {
  position: relative; display: block; height: 247px; border-radius: 8px; overflow: hidden;
  background: #fff; cursor: pointer; text-align: center;
}
.tip-sec-img { position: absolute; left: 0; right: 0; top: 0; height: 103px; overflow: hidden; }
.tip-sec-img img { position: absolute; width: 467px; height: 279px; left: calc(50% - 248.5px); top: -61px; max-width: none; }
.tip-sec-n {
  position: absolute; left: calc(50% + .5px); top: 86px; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--caviar); box-shadow: 0 0 0 .5px #fff inset;
  display: flex; align-items: center; justify-content: center;
  font: 700 20px/20px var(--font-sans); color: #fff;
}
.tip-sec-title {
  position: absolute; left: 0; right: 0; top: 134px;
  font: 700 32px/36.16px var(--font-serif); color: var(--caviar); white-space: nowrap;
}
.tip-sec-meta {
  position: absolute; left: 0; right: 0; top: 179px;
  display: flex; justify-content: center; gap: 16px; padding-left: 1px;
}
.tip-sec-meta span { display: inline-flex; align-items: center; gap: 4px; font: 400 14px/normal var(--font-sans); color: var(--neutral-dark); white-space: nowrap; }
.tip-sec-meta img { width: 16px; height: 16px; }
.tip-sec-card .tip-bars { position: absolute; left: 16px; right: 16px; top: 219px; }

.tip-btn {
  width: 100%; padding: 11px 40px; border-radius: 30px;
  background: var(--neutral-light); border: 1px solid var(--caviar);
  font: 700 18px/25.2px var(--font-sans); color: var(--caviar);
}
.tip-btn:active { background: #e9e8e6; }

/* Phones wider than the 393px Figma frame: fill the hero instead of using the fixed Figma crop. */
@media (min-width: 394px) {
  html.is-mobile .tip-hero img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
}

/* Classes without Figma crops (e.g. Basic Knife Skills) */
.tip-hero img.cover { left: 0; top: 0; width: 100%; height: 100%; }
.tip-img.contain { height: 180px; object-fit: contain; background: #fff; }
.tip-sec-img img.cover { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
