/* ========================================================
   쿡레시 CookReci — 4-Cut Kitchen Recipe Card & Manuscript Ink System
   (Zero Gradients · Lavender Sketchbook Paper · Deep Aubergine Ink · Royal Violet Theme)
======================================================== */
:root {
  --bg-paper: #f3effb;
  --surface: #fcfaff;
  --surface-sub: #e9e1f8;
  --surface-tint: #f5f0fc;

  --ink: #1e1533;
  --ink-soft: #372659;
  --border-ruled: #d1c5e8;
  --border-strong: #ad9cd1;

  --text-main: #1e1533;
  --text-sub: #4c3d6e;
  --text-muted: #78689c;

  /* Flat Cel-Shaded Broadcast Colors (Zero Gradients) */
  --c-coral: #7c3aed;
  --c-coral-bg: #ede9fe;
  --c-tangerine: #9333ea;
  --c-tangerine-bg: #f3e8ff;
  --c-mint: #5b5bd6;
  --c-mint-bg: #e6e8ff;
  --c-amber: #c026d3;
  --c-amber-bg: #fae8ff;
  --c-indigo: #4f46e5;
  --c-indigo-bg: #e0e7ff;
  --c-rose: #a21caf;
  --c-rose-bg: #fae8ff;

  --shadow-xs: 2px 2px 0 #cfc3e8;
  --shadow-card: 4px 4px 0 #cfc3e8;
  --shadow-card-hover: 6px 6px 0 #b4a3d6;
  --shadow-hero: 6px 6px 0 #cfc3e8;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-paper);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── 원고지 도트 패턴 데스크 배경 (SVG 타일 · 그라데이션 제로) ── */
.cook-paper-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='2' cy='2' r='1.05' fill='%23c8bce3' fill-opacity='0.8'/%3E%3C/svg%3E");
  background-size: 22px 22px;
}

.cook-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================
   Sticky Header & Magazine Index Navigation
======================================================== */
.site-header {
  width: 100%;
  background: rgba(252, 250, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  appearance: none;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.16s ease;
}

.logo:hover .brand-logo-img {
  transform: translateY(-1px);
}

.gnb-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-sub);
  border: 1.8px solid var(--ink);
  padding: 3px;
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.gnb-chip {
  appearance: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-sub);
  white-space: nowrap;
  transition: all 0.14s ease;
}

.gnb-chip:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--text-main);
}

.gnb-chip.active {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--text-main);
  box-shadow: 1.5px 1.5px 0 #cfc3e8;
}

.gnb-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.2px solid var(--ink);
  display: inline-block;
  flex-shrink: 0;
}

.dot-coral,
.sq-coral {
  background: var(--c-coral);
}
.dot-tangerine,
.sq-tangerine {
  background: var(--c-tangerine);
}
.dot-amber,
.sq-amber {
  background: #a855f7;
}
.dot-mint,
.sq-mint {
  background: var(--c-mint);
}
.dot-indigo {
  background: var(--c-indigo);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-trigger-btn {
  appearance: none;
  background: var(--surface);
  color: var(--text-main);
  border: 1.8px solid var(--ink);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.cart-trigger-btn:hover {
  background: #ede9fe;
  transform: translate(-1px, -1px);
}

.cart-badge-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: var(--c-coral);
  color: #fcfaff;
  border: 1.3px solid var(--ink);
  border-radius: 999px;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn {
  background: var(--ink);
  color: #fcfaff;
  border: 2px solid var(--ink);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-btn:hover {
  background: var(--ink-soft);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #b4a3d6;
}

.user-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  border: 1.8px solid var(--ink);
  box-shadow: var(--shadow-xs);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  object-fit: cover;
  background: var(--surface-sub);
}

.user-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 6px;
}

.logout-btn:hover {
  color: var(--c-coral);
}

/* ========================================================
   Main Container & Footer
======================================================== */
.site-main {
  flex: 1;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px 72px;
}

.site-footer {
  background: rgba(252, 250, 255, 0.94);
  border-top: 2.5px solid var(--ink);
  padding: 22px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text-main);
}

/* ========================================================
   Shared Badges & Buttons (MinToon Identical Feel)
======================================================== */
.vol-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fcfaff;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-coral {
  background: var(--c-coral);
}
.tag-tangerine {
  background: var(--c-tangerine);
}
.tag-mint {
  background: var(--c-mint);
}
.tag-amber {
  background: var(--c-amber);
}
.tag-indigo {
  background: var(--c-indigo);
}

.unit-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1.4px solid var(--ink);
  background: var(--surface);
  color: var(--text-sub);
  white-space: nowrap;
}

.cook-btn-primary,
.cook-btn-secondary {
  appearance: none;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cute-ico {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cook-btn-primary:hover .cute-ico,
.cook-btn-secondary:hover .cute-ico,
.cart-trigger-btn:hover .cute-ico,
.random-pick-btn:hover .cute-ico,
.bookmark-star-btn:hover .cute-ico {
  transform: scale(1.15) rotate(-7deg);
}

.cook-btn-secondary.is-saved-btn {
  background: #fef9c3;
}

.cook-btn-primary {
  background: var(--c-coral);
  color: #fcfaff;
  box-shadow: 3px 3px 0 var(--ink);
}

.cook-btn-primary:hover {
  background: #6d28d9;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.cook-btn-secondary {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 3px 3px 0 #cfc3e8;
}

.cook-btn-secondary:hover {
  background: #ede9fe;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #b4a3d6;
}

/* ========================================================
   Split Hero & 4-Cut Kitchen Recipe Board Showcase
======================================================== */
.cook-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 38px;
  padding: 10px 0 38px;
}

.cook-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.cook-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  background: var(--surface);
  border: 1.8px solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.eyebrow-squares {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eyebrow-squares i {
  width: 7.5px;
  height: 7.5px;
  border-radius: 2px;
  border: 1.1px solid var(--ink);
  display: inline-block;
}

.cook-intro-title {
  font-size: clamp(28px, 3.5vw, 43px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
  word-break: keep-all;
}

.cook-highlight {
  color: var(--text-main);
  box-shadow: inset 0 -0.42em 0 #ddd6fe;
  padding: 0 4px;
  border-radius: 3px;
}

.cook-intro-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 530px;
  margin-bottom: 24px;
  word-break: keep-all;
}

.cook-intro-desc b {
  color: var(--text-main);
  font-weight: 800;
}

.cook-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Right 4-Cut Kitchen Board (MinToon Comic Board Twin) */
.cook-hero-showcase {
  position: relative;
  padding: 12px 6px 8px 10px;
  min-width: 0;
}

.comic-board-wrap {
  position: relative;
  width: 100%;
}

.comic-board-back {
  position: absolute;
  inset: 4px -4px -7px 6px;
  background: #dfd4f4;
  border: 2px solid var(--border-strong);
  border-radius: 18px;
  transform: rotate(-2.2deg);
  z-index: 0;
}

.comic-pop-bubble {
  position: absolute;
  top: -16px;
  right: 18px;
  z-index: 5;
  background: #ffffff;
  border: 2.3px solid var(--ink);
  border-radius: 12px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 3px 3px 0 rgba(30, 21, 51, 0.16);
}

.comic-pop-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 16px;
  width: 12px;
  height: 10px;
  background: #ffffff;
  border-right: 2.3px solid var(--ink);
  border-bottom: 2.3px solid var(--ink);
  transform: skewX(-22deg) rotate(36deg);
}

.pop-bang {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.pop-bang.coral {
  color: var(--c-coral);
}
.pop-bang.ink {
  color: var(--ink);
  margin-right: 3px;
}

.comic-pop-bubble b {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.comic-board-main {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 2.6px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-hero);
}

.comic-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-right: 112px;
  gap: 8px;
}

.comic-stamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #ddd6fe;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  border-radius: 5px;
}

.comic-issue-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.comic-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 10px;
}

.board-featured-cut {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 2px solid var(--ink);
  border-radius: 11px;
  overflow: hidden;
  background: #f3e8ff;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  padding: 0;
  min-width: 0;
}

.board-featured-cut:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.board-featured-media {
  position: relative;
  height: 190px;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: #7c3aed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.board-featured-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fcfaff;
  border: 2.2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(30, 21, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.board-featured-subpill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  background: #ddd6fe;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}

.board-vol-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: #fcfaff;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.board-featured-caption {
  padding: 11px 12px;
  width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.board-featured-caption strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.board-featured-caption span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-side-cuts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.board-mini-cut {
  appearance: none;
  width: 100%;
  text-align: left;
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.board-mini-cut:hover {
  transform: translateX(2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.board-mini-cut.cut-coral {
  background: var(--c-coral-bg);
}
.board-mini-cut.cut-amber {
  background: var(--c-amber-bg);
}
.board-mini-cut.cut-indigo {
  background: var(--c-indigo-bg);
}
.board-mini-cut.cut-mint {
  background: var(--c-mint-bg);
}

.mini-cut-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-sub);
}

.mini-cut-top code {
  color: var(--ink);
  font-weight: 800;
}

.board-mini-cut strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-mini-cut p {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================
   Section Header & Filter / Search Control Deck
======================================================== */
.recipes-section {
  scroll-margin-top: 84px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-ruled);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.section-title span {
  box-shadow: inset 0 -0.38em 0 #ddd6fe;
  padding: 0 3px;
}

.section-count-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-xs);
  padding: 5px 11px;
  border-radius: 8px;
}

.filter-deck {
  background: var(--surface);
  border: 2.2px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 82px 0 38px;
  border-radius: 10px;
  border: 1.8px solid var(--ink);
  background: var(--surface-tint);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 3px 3px 0 #cfc3e8;
}

.search-kbd {
  position: absolute;
  right: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--surface);
  border: 1.3px solid var(--border-strong);
  border-radius: 5px;
  padding: 1px 7px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  appearance: none;
  background: var(--ink);
  color: #fcfaff;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.random-pick-btn {
  appearance: none;
  height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1.8px solid var(--ink);
  background: #ddd6fe;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.14s ease;
}

.random-pick-btn:hover {
  transform: translate(-1px, -1px);
}

.filter-group-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 52px;
}

.filter-pill {
  appearance: none;
  background: var(--surface-tint);
  color: var(--text-sub);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.13s ease;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--text-main);
  background: #ffffff;
}

.filter-pill.active {
  background: var(--ink);
  color: #fcfaff;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 #ad9cd1;
}

.filter-pill em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.85;
}

.unit-guide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 11px;
  border-top: 1.5px dashed var(--border-ruled);
  font-size: 12px;
  color: var(--text-sub);
}

.unit-guide-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-chip {
  background: var(--surface-sub);
  border: 1.2px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.unit-chip code {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--c-coral);
}

/* ========================================================
   Recipe Cards Grid (MinToon 4-Cut Series Card Twin)
======================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 336px), 1fr));
  gap: 22px;
}

.work-card {
  background: var(--surface);
  border: 2.2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-hover);
}

.work-issue-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--surface-tint);
  border-bottom: 2px solid var(--ink);
  min-width: 0;
}

.work-line-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-sub);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-star-btn {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.13s ease, color 0.13s ease;
}

.bookmark-star-btn:hover {
  background: #ede9fe;
  color: var(--ink);
}

.bookmark-star-btn.is-saved {
  background: #ddd6fe;
  color: #5b21b6;
}

/* 4-Cut Culinary Poster Stage */
.poster-stage-btn {
  appearance: none;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 12px;
  background: #f3eefc;
  text-align: left;
  display: block;
}

.poster-4cut-grid {
  width: 100%;
  height: 174px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 7px;
}

.poster-cut {
  border: 2px solid var(--ink);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
  min-width: 0;
}

.poster-cut.cut-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fcfaff;
}

.card-theme-coral .cut-main {
  background: var(--c-coral);
}
.card-theme-tangerine .cut-main {
  background: var(--c-tangerine);
}
.card-theme-mint .cut-main {
  background: var(--c-mint);
}
.card-theme-amber .cut-main {
  background: var(--c-amber);
}
.card-theme-indigo .cut-main {
  background: var(--c-indigo);
}

.poster-cut-no {
  position: absolute;
  top: 5px;
  left: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: rgba(252, 250, 255, 0.92);
}

.dish-type-label {
  font-size: 11px;
  font-weight: 800;
  background: rgba(30, 21, 51, 0.24);
  padding: 1px 7px;
  border-radius: 999px;
  color: #fcfaff;
}

.poster-cut.cut-spec {
  background: #ddd6fe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.poster-cut.cut-spec strong {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.poster-cut.cut-spec span {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
  margin-top: 3px;
}

.poster-cut.cut-chef {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-theme-coral .cut-chef {
  background: var(--c-coral-bg);
}
.card-theme-tangerine .cut-chef {
  background: var(--c-tangerine-bg);
}
.card-theme-mint .cut-chef {
  background: var(--c-mint-bg);
}
.card-theme-amber .cut-chef {
  background: var(--c-amber-bg);
}
.card-theme-indigo .cut-chef {
  background: var(--c-indigo-bg);
}

.poster-cut.cut-chef em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
}

.poster-cut.cut-chef b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.poster-cut.cut-quote {
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--c-coral);
  line-height: 1;
  align-self: flex-start;
  flex-shrink: 0;
}

.poster-cut.cut-quote p {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-main);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Info Body */
.work-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.work-title-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  word-break: keep-all;
}

.work-title-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.ing-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  align-content: flex-start;
}

.ing-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--surface-tint);
  border: 1.2px solid var(--border-ruled);
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ing-chip-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  background: #ffffff;
}

.ing-chip.more {
  background: var(--surface-sub);
  color: var(--ink);
  font-family: var(--font-mono);
  padding: 2px 8px;
}

.work-split-actions {
  padding-top: 11px;
  border-top: 1.5px dashed var(--border-ruled);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
}

.work-btn {
  appearance: none;
  height: 38px;
  border-radius: 9px;
  border: 1.8px solid var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.work-btn.btn-detail {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 2px 2px 0 #cfc3e8;
}

.work-btn.btn-detail:hover {
  background: #ede9fe;
  transform: translateY(-1px);
}

.work-btn.btn-detail.in-cart {
  background: var(--c-mint-bg);
  color: #3730a3;
}

.work-btn.btn-open-recipe {
  background: var(--ink);
  color: #fcfaff;
  box-shadow: 2px 2px 0 #ad9cd1;
}

.work-btn.btn-open-recipe:hover {
  background: var(--c-coral);
  transform: translateY(-1px);
}

/* Empty State & Factual Disclaimer Box */
.empty-state-box {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-box p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-sub);
}

.editorial-notice {
  margin-top: 40px;
  background: var(--surface);
  border: 1.8px solid var(--border-strong);
  border-left: 5px solid var(--ink);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--text-sub);
  box-shadow: var(--shadow-xs);
}

.editorial-notice strong {
  color: var(--text-main);
  font-weight: 800;
}

/* ========================================================
   Recipe Detail & Shopping Basket Modals
======================================================== */
.cook-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(30, 21, 51, 0.54);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cook-modal-backdrop.open {
  display: flex;
}

.cook-modal-card {
  background: var(--surface);
  border: 2.6px solid var(--ink);
  border-radius: 22px;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 rgba(30, 21, 51, 0.28);
  display: flex;
  flex-direction: column;
}

#cartModal .cook-modal-card {
  max-width: 820px;
}

.cook-modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface-tint);
  border-bottom: 2px solid var(--ink);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.modal-close-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.8px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--ink);
  color: #fcfaff;
}

.cook-modal-body {
  padding: 26px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Editorial Split Hero Card (cook.minstudio.app Unified Layout in CookReci Violet) */
.editorial-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.94fr);
  gap: 26px;
  align-items: center;
  background: #ffffff;
  border: 1.9px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.editorial-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.editorial-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.editorial-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-coral);
  background: var(--c-coral-bg);
  border: 1.4px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
}

.editorial-sub-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--surface-tint);
  border: 1.3px solid var(--border-ruled);
  border-radius: 999px;
  padding: 4px 10px;
}

.modal-recipe-title {
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.24;
  color: var(--text-main);
  margin: 0;
  word-break: keep-all;
}

.editorial-summary-desc {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.68;
  color: var(--text-sub);
  word-break: keep-all;
  margin: 0;
}

.editorial-spec-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface-tint);
  border: 1.6px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 8px;
}

.editorial-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 8px;
  text-align: center;
}

.editorial-spec-item + .editorial-spec-item {
  border-left: 1.4px solid var(--border-ruled);
}

.editorial-spec-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.editorial-spec-label svg {
  flex-shrink: 0;
}

.editorial-spec-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.editorial-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--surface-tint);
  box-shadow: 4px 4px 0 rgba(30, 21, 51, 0.14);
  cursor: zoom-in;
  padding: 0;
  appearance: none;
  display: block;
}

.editorial-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.editorial-hero-media:hover img {
  transform: scale(1.035);
}

.hero-zoom-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(30, 21, 51, 0.84);
  color: #fcfaff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.modal-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-meta-chips span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-sub);
  background: var(--surface-tint);
  border: 1.4px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 7px;
}

/* Chef Speech Bubble Tip (MinToon .series-speech-bubble Twin) */
.chef-tip-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f6f1ff;
  border: 1.9px solid var(--ink);
  border-left: 5px solid var(--c-coral);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: var(--shadow-xs);
}

.chef-tip-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chef-tip-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: var(--ink);
  color: #fcfaff;
  padding: 2px 7px;
  border-radius: 4px;
}

.chef-tip-bubble p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.62;
  color: var(--text-main);
  word-break: keep-all;
}

.ing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ing-section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ing-section-head h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.ing-servings-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.ing-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 3-Column Macro Thumbnail Ingredient Grid (cook.minstudio.app Unified Style) */
.editorial-ing-card {
  background: #ffffff;
  border: 1.9px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.editorial-ing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 22px;
}

.editorial-ing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-ruled);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.14s ease;
}

.editorial-ing-item:hover {
  background: var(--surface-tint);
}

.editorial-ing-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.ing-macro-thumb-btn {
  appearance: none;
  padding: 0;
  border: 1.6px solid var(--border-strong);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-tint);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ing-macro-thumb-btn:hover {
  transform: scale(1.07);
  border-color: var(--c-coral);
}

.ing-macro-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ing-text-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ing-sub-group {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-ing-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ing-round-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.6px solid var(--border-strong);
  background: var(--surface-tint);
  color: var(--c-coral);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.editorial-ing-item:hover .ing-round-check {
  border-color: var(--c-coral);
}

.editorial-ing-item.checked .ing-round-check {
  background: var(--c-coral);
  border-color: var(--ink);
  color: #fcfaff;
}

.editorial-ing-item.checked .ing-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.editorial-ing-item.checked .ing-macro-thumb-btn {
  opacity: 0.55;
}

.ing-group-card {
  border: 1.8px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.ing-group-title {
  background: var(--surface-sub);
  border-bottom: 1.5px solid var(--border-strong);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.ing-group-title:not(:first-child) {
  border-top: 1.5px solid var(--border-strong);
}

.ing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px dashed var(--border-ruled);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease;
}

.ing-row:last-child {
  border-bottom: none;
}

.ing-row:hover {
  background: var(--surface-tint);
}

.ing-row-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cart-ing-thumb {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.3px solid var(--border-strong);
  flex-shrink: 0;
  background: var(--surface-tint);
}

.ing-check-box {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.6px solid var(--ink);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fcfaff;
  flex-shrink: 0;
}

.ing-row.checked .ing-check-box {
  background: var(--c-coral);
}

.ing-row.checked .ing-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ing-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  word-break: keep-all;
}

.ing-amount {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c-coral);
  text-align: right;
  flex-shrink: 0;
}

.modal-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-source-box {
  border-top: 1.5px dashed var(--border-ruled);
  padding-top: 13px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal-source-box a {
  color: var(--c-indigo);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

/* Shopping Basket Modal Blocks */
.cart-list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-recipe-head {
  background: var(--surface-sub);
  border-bottom: 1.5px solid var(--border-strong);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-recipe-head-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-recipe-head-title button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  text-align: left;
}

.cart-recipe-head-title button:hover {
  text-decoration: underline;
}

.cart-remove-btn {
  appearance: none;
  background: var(--surface);
  color: var(--text-sub);
  border: 1.4px solid var(--ink);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.cart-remove-btn:hover {
  background: var(--c-coral-bg);
  color: var(--c-coral);
}

/* Cooking Steps List in Recipe Detail Modal */
.step-list-card {
  border: 1.8px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px dashed var(--border-ruled);
}

.step-row:last-child {
  border-bottom: none;
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--c-coral-bg);
  color: var(--c-coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.62;
  color: var(--text-main);
  word-break: keep-all;
}

/* Dish Illustration Showcase Frames (Hero Board, Recipe Cards, Detail Modal) */
.board-featured-media.has-photo {
  padding: 0;
  background: var(--surface-tint);
}

.board-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

.board-featured-cut:hover .board-featured-img {
  transform: scale(1.04);
}

.board-featured-media.has-photo .board-vol-pill {
  z-index: 2;
}

.board-featured-media.has-photo .board-featured-subpill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  box-shadow: 2px 2px 0 rgba(30, 21, 51, 0.22);
}

.board-mini-cut.has-thumb {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.mini-cut-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1.8px solid var(--ink);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.mini-cut-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.card-dish-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.card-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

.work-card:hover .card-dish-img {
  transform: scale(1.035);
}

.card-dish-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(30, 21, 51, 0.88);
  color: #fcfaff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.card-dish-chef-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: var(--surface);
  color: var(--ink);
  border: 1.6px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(30, 21, 51, 0.2);
}

.card-spec-strip {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 7px;
  min-height: 66px;
}

.modal-dish-visual {
  position: relative;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-tint);
  box-shadow: var(--shadow-xs);
  cursor: zoom-in;
}

.modal-dish-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* 3-Column Editorial Step-by-Step Cards Grid (cook.minstudio.app Unified Layout) */
.editorial-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.editorial-step-card {
  background: #ffffff;
  border: 1.9px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.editorial-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.editorial-step-photo-btn {
  appearance: none;
  border: none;
  border-bottom: 1.6px solid var(--border-ruled);
  padding: 0;
  background: var(--surface-tint);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}

.editorial-step-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.26s ease;
}

.editorial-step-photo-btn:hover .editorial-step-photo {
  transform: scale(1.045);
}

.step-zoom-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(30, 21, 51, 0.82);
  color: #fcfaff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.editorial-step-body {
  padding: 15px 16px 17px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex: 1;
}

.editorial-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--c-coral);
  color: #fcfaff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 0 rgba(30, 21, 51, 0.2);
}

.editorial-step-body .step-text {
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.64;
  color: var(--text-main);
  word-break: keep-all;
  margin: 0;
}

@media (max-width: 960px) {
  .editorial-hero-split {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 18px;
  }

  .editorial-hero-media {
    order: -1;
  }

  .editorial-ing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .editorial-ing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-ing-card {
    padding: 12px 14px;
  }
}

/* Fullscreen Photo Zoom Lightbox */
.cook-lightbox {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(20, 13, 36, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cook-lightbox.open {
  display: flex;
}

.cook-lightbox-inner {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.cook-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-tint);
  border-bottom: 1.8px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.cook-lightbox-img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  background: #140d24;
}

@media (max-width: 640px) {
  .step-photo-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-photo-frame {
    border-right: none;
    border-bottom: 1.8px solid var(--ink);
  }
}

/* Toast */
.cook-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 320;
  background: var(--ink);
  color: #fcfaff;
  border: 2px solid #fcfaff;
  box-shadow: 4px 4px 0 rgba(30, 21, 51, 0.28);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cook-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   Responsive Design (Tablet & 360px Mobile Safe)
======================================================== */
@media (max-width: 1020px) {
  .hide-md {
    display: none !important;
  }

  .cook-hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .hide-sm {
    display: none !important;
  }

  .header-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .brand-logo-img {
    height: 36px;
  }

  .gnb-strip {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-main {
    padding: 20px 14px 56px;
  }

  .comic-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .comic-board-head {
    padding-right: 0;
  }

  .comic-pop-bubble {
    position: static;
    margin-bottom: 8px;
    align-self: flex-end;
  }

  .comic-pop-bubble::after {
    display: none;
  }

  .cook-modal-body {
    padding: 16px;
  }
}

/* ========================================================
   권리 표시 · AI 재현 이미지 표기 (광고 대비 정리)
======================================================== */
.ai-image-pill {
  font-size: 10.5px;
  letter-spacing: 0;
  opacity: 0.92;
}
.hero-ai-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(252, 250, 255, 0.92);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.quote-mark.point-mark {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.chef-tip-note {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.source-disclaimer {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: keep-all;
}
.editorial-notice {
  word-break: keep-all;
}
.site-footer .footer-inner > span {
  word-break: keep-all;
  line-height: 1.6;
}
