:root {
  --bg: #ffffff;
  --soft: #f8fafc;
  --navy: #0f172a;
  --ink: #1e293b;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.box { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Minimal Crisp White Topbar */
.tr-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.tr-bar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 16px;
}
.tr-logo { display: flex; align-items: center; gap: 10px; }
.tr-mark {
  width: 30px; height: 30px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; border-radius: 6px;
}
.tr-logo strong { font-size: 1.06rem; color: var(--navy); letter-spacing: -0.02em; }
.tr-nav { display: flex; gap: 22px; font-size: 0.88rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.tr-nav a:hover { color: var(--blue); }

/* Featured Editorial Banner */
.tr-banner { padding: 34px 0 26px; border-bottom: 1px solid var(--line); background: var(--soft); }
.tr-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tr-pill {
  display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; letter-spacing: 0.06em;
}
.tr-banner h1 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); color: var(--navy); margin: 0 0 12px; line-height: 1.25; letter-spacing: -0.025em; }
.tr-banner p { color: var(--muted); margin: 0 0 18px; font-size: 0.96rem; }
.tr-feature-img { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tr-feature-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Filter Tab Strip */
.tab-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 14px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; border-radius: 6px; font-family: inherit;
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tr-search { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; min-width: 220px; }

/* 2-Column Wide Cards */
.wide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 44px; }
.wide-card {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wide-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06); }
.wide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wide-body { padding: 18px 20px; }
.wide-cat { font-size: 0.74rem; font-weight: 700; color: var(--blue); margin-bottom: 5px; display: block; }
.wide-body h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.wide-body p { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.wide-foot { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; }

/* 2-Column Recipe Detail (Sticky Left Ratio Box + Right Steps) */
.detail-wrap { padding: 28px 0 56px; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.ratio-aside {
  position: sticky; top: 76px; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 20px;
}
.ratio-aside h2 { font-size: 1rem; margin: 0 0 8px; color: var(--navy); }
.cup-btns { display: flex; gap: 6px; margin: 10px 0 14px; }
.cup-btn {
  flex: 1; padding: 7px 0; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  cursor: pointer; font-weight: 700; font-size: 0.84rem; color: var(--muted); font-family: inherit;
}
.cup-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.ratio-list { list-style: none; padding: 0; margin: 0; }
.ratio-list li {
  display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem;
}
.ratio-list li:last-child { border-bottom: none; }
.ratio-amt { font-weight: 700; color: var(--blue); }

.detail-main { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px; }
.ftc-line {
  font-size: 0.84rem; font-weight: 600; color: var(--navy); background: var(--blue-soft);
  border: 1px solid #bfdbfe; border-left: 4px solid var(--blue);
  border-radius: 6px; padding: 10px 14px; margin: 0 0 18px; line-height: 1.5;
}
.disclaimer-box {
  font-size: 0.81rem; color: var(--muted); background: var(--soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 14px; margin-top: 22px; line-height: 1.55;
}
.sticky-cp-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%);
  width: min(680px, calc(100% - 24px)); background: var(--navy); color: #fff;
  border: 1px solid #1e293b; border-radius: 8px; padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28); z-index: 60; transition: transform 0.25s ease;
}
.sticky-cp-bar.show { transform: translate(-50%, 0); }
.sticky-cp-text strong { display: block; font-size: 0.88rem; color: #fff; }
.sticky-cp-text span { display: block; font-size: 0.72rem; color: #cbd5e1; }
.sticky-cp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-cp-link {
  background: var(--blue); color: #fff; padding: 7px 14px; border-radius: 5px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.sticky-cp-close {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #cbd5e1;
  width: 28px; height: 28px; border-radius: 5px; cursor: pointer; font-size: 0.85rem;
}
.detail-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; margin-bottom: 18px; }
.detail-main h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--navy); }
.tr-tbl-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
th { background: var(--soft); color: var(--navy); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
td:first-child { font-weight: 700; color: var(--navy); }
tr:last-child td { border-bottom: none; }
.tr-cp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.tr-cp {
  border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: var(--soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.tr-cp:hover { border-color: var(--blue); }
.tr-cp strong { font-size: 0.92rem; color: var(--navy); display: block; margin-bottom: 3px; }
.tr-cp span { font-size: 0.8rem; color: var(--muted); }
.tr-cp-btn {
  display: inline-block; width: fit-content; padding: 7px 14px; border-radius: 5px;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 600;
}
.tr-cp:hover .tr-cp-btn { background: var(--blue); }
.tr-faq details { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; }
.tr-faq summary { font-weight: 700; cursor: pointer; font-size: 0.92rem; color: var(--navy); }
.tr-faq p { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); }

.tr-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 0 40px; font-size: 0.84rem; color: var(--muted); }
.tr-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tr-footer a { margin-right: 14px; color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .tr-banner-grid, .wide-grid, .detail-grid, .tr-cp-grid { grid-template-columns: 1fr; }
  .ratio-aside { position: static; }
  .detail-main { padding: 20px 18px; }
}

/* Subpage Hero & Hub Card Thumbnails */
.sub-hero-img {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 18px;
  border: 1px solid var(--line, #e2e8f0);
}
.hub-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid var(--line, #e2e8f0);
}
