/* Design stage 3: recipe detail, cooking classes, the full menu and the service pages.
   Loaded after ui-unified.css and uses its tokens (--brand, --card-radius, --control-radius). */

/* ---- Recipe detail: hero ---- */
.recipe-view .rv-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 4px 0 24px; }
.recipe-view .rv-hero-photo { margin: 0; position: sticky; top: 16px; }
.recipe-view .rv-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(20, 40, 25, .45); }
.recipe-view .rv-hero-info { display: grid; gap: 14px; align-content: start; }
.recipe-view .rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recipe-view .rv-chip { padding: 4px 11px; border-radius: 999px; background: var(--brand-soft, #e8f1eb); color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.recipe-view .rv-chip.cat { background: #fff1e8; color: #c2481f; }
.recipe-view .rv-hero-info h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.recipe-view .rv-lead { margin: -4px 0 0; color: #59605b; font-size: 15px; line-height: 1.6; }
.recipe-view .rv-hero-rating { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #6b726d; cursor: pointer; }
.recipe-view .rv-hero-rating b { color: var(--ink); font-size: 15px; }
.recipe-view .rv-price-box { padding: 14px 18px; border-radius: 14px; background: #f7f8f5; border: 1px solid var(--line); }
.recipe-view .rv-was { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13px; color: #8a918b; }
.recipe-view .rv-off { color: #e2462a; font-size: 13px; }
.recipe-view .rv-now { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.recipe-view .rv-price { font-size: 30px; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.recipe-view .rv-price.free { color: var(--brand); }
.recipe-view .rv-unit { font-size: 14px; font-weight: 700; color: #59605b; }
.recipe-view .rv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.recipe-view .rv-facts li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; color: #6b726d; }
.recipe-view .rv-facts li svg { width: 20px; height: 20px; color: var(--brand); }
.recipe-view .rv-facts li b { font-size: 14px; color: var(--ink); }
.recipe-view .rv-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft, #e8f1eb); color: var(--brand); font-size: 13.5px; font-weight: 700; }
.recipe-view .rv-state svg { width: 16px; height: 16px; }
.recipe-view .rv-state time, .recipe-view .rv-state b { font-weight: 600; color: #3f5a47; }
.recipe-view .rv-buy-row { display: flex; gap: 8px; margin: 0; }
.recipe-view .rv-main-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 20px; border: 0; border-radius: var(--control-radius); background: var(--brand); color: #fff; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; }
.recipe-view .rv-main-button:hover { background: var(--brand-2); }
.recipe-view .rv-main-button:disabled { opacity: .6; cursor: wait; }
.recipe-view .rv-sub-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--control-radius); background: #fff; color: var(--brand); font: inherit; font-size: 14.5px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.recipe-view .rv-sub-button.in { border-color: var(--line); color: #59605b; }
.recipe-view .rv-balance { margin: -6px 0 0; font-size: 12.5px; color: #6b726d; }
.recipe-view .rv-balance a { color: var(--brand); font-weight: 800; }
.recipe-view .rv-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.recipe-view .rv-tool { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--control-radius); background: #fff; color: #3c4436; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.recipe-view .rv-tool svg { width: 16px; height: 16px; }
.recipe-view .rv-tool:hover { background: #f4f6f1; }
.recipe-view .rv-tool[aria-pressed=true] { border-color: #f1b7a9; background: #fff4f1; color: #e2462a; }
.recipe-view .rv-tool[aria-pressed=true] svg { fill: currentColor; }
.recipe-view .rv-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 12.5px; color: #8a918b; }
.recipe-view .rv-byline svg { width: 14px; height: 14px; }
.recipe-view .rv-byline > span:first-of-type { margin-left: -8px; color: #3c4436; font-weight: 700; }
.recipe-view .rv-about { margin: 0 0 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; }
.recipe-view .rv-about h2 { margin: 0 0 8px; font-size: 16px; }
.recipe-view .rv-about p { margin: 0; font-size: 15px; line-height: 1.8; color: #3c4436; white-space: pre-wrap; }

/* ---- Recipe detail: 비법레시피 card ---- */
.recipe-view .rv-card { margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--card-shadow); }
.recipe-view .rv-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: linear-gradient(120deg, #1f5f3a, #2f7a45); color: #fff; }
.recipe-view .rv-card-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #bfe3c9; }
.recipe-view .rv-card-top h2 { margin: 0; font-size: 20px; }
.recipe-view .rv-card-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.recipe-view .rv-card-facts div { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.recipe-view .rv-card-facts dt { font-size: 11px; color: #cfe8d6; }
.recipe-view .rv-card-facts dd { margin: 0; font-size: 14px; font-weight: 800; }
.recipe-view .rv-block { padding: 22px 26px; border-top: 1px solid var(--line); }
.recipe-view .rv-card-top + .rv-block { border-top: 0; }
.recipe-view .rv-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.recipe-view .rv-block-head h3 { margin: 0; font-size: 17px; }
.recipe-view .rv-block-head h3 small { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--brand); }
.recipe-view .rv-servings { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #f7f8f5; font-size: 12.5px; }
.recipe-view .rv-servings > span { padding: 0 6px 0 8px; font-weight: 700; color: #59605b; }
.recipe-view .rv-servings button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-size: 16px; cursor: pointer; }
.recipe-view .rv-servings input { width: 46px; height: 30px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 800; }
.recipe-view .rv-ingredients { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.recipe-view .rv-ingredients th { padding: 10px 14px; background: #f3f5f1; border-bottom: 1px solid var(--line); font-size: 12.5px; color: #59605b; text-align: center; }
.recipe-view .rv-ingredients th:first-child, .recipe-view .rv-ingredients td:first-child { text-align: left; }
.recipe-view .rv-ingredients td { padding: 11px 14px; border-bottom: 1px solid #eef0ec; text-align: center; }
.recipe-view .rv-ingredients tr:last-child td { border-bottom: 0; }
.recipe-view .rv-ingredients tbody tr:nth-child(even) td { background: #fafbf9; }
.recipe-view .rv-ingredients tr:has(input:checked) td { color: #9aa29c; text-decoration: line-through; }
.recipe-view .rv-ingredients input { width: 18px; height: 18px; accent-color: var(--brand); }
.recipe-view .rv-qty { font-weight: 800; color: var(--ink); }
.recipe-view .rv-hint { margin: 8px 0 0; font-size: 12px; color: #8a918b; }
.recipe-view .rv-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.recipe-view .rv-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.recipe-view .rv-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: #dbe8df; }
.recipe-view .rv-step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.recipe-view .rv-steps h4 { margin: 8px 0 4px; font-size: 15.5px; }
.recipe-view .rv-steps p { margin: 0; font-size: 14.5px; line-height: 1.8; color: #3c4436; }
.recipe-view .rv-tip-box { margin: 0 26px 22px; padding: 16px 18px; border-radius: 14px; background: #fff8e6; border: 1px solid #f3e2b3; }
.recipe-view .rv-tip-box h3 { margin: 0 0 6px; font-size: 14.5px; color: #9a6a00; }
.recipe-view .rv-tip-box h3::before { content: "💡 "; }
.recipe-view .rv-tip-box p { margin: 0; font-size: 14.5px; line-height: 1.8; color: #4a3f22; }
.recipe-view .rv-card-foot { margin: 0; padding: 12px 26px; border-top: 1px solid var(--line); background: #fafbf9; font-size: 12px; color: #8a918b; text-align: center; }
.recipe-view .rv-locked-area { position: relative; min-height: 280px; overflow: hidden; border: 0; }
.recipe-view .rv-locked-preview { padding: 26px; display: grid; gap: 16px; filter: blur(4px); opacity: .5; }
.recipe-view .rv-lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .95)); text-align: center; }
.recipe-view .rv-lock-overlay > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brand-soft, #e8f1eb); color: var(--brand); }
.recipe-view .rv-lock-overlay strong { font-size: 18px; }
.recipe-view .rv-lock-overlay .rv-main-button { flex: none; min-width: 240px; }

/* ---- Recipe detail: rating, notes, banner, related, comments ---- */
.recipe-view .rv-rating { margin: 0 0 24px; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.recipe-view .rv-notes { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: #f7f8f5; }
.recipe-view .rv-notes a { color: var(--brand); font-weight: 700; }
.recipe-view .rv-banner { display: grid; justify-items: start; gap: 4px; max-width: none; margin: 0 0 28px; padding: 22px 26px; border: 0; border-radius: var(--card-radius); background: linear-gradient(120deg, #1f3d2b, #2f7a45); color: #fff; text-decoration: none; }
.recipe-view .rv-banner .rv-banner-eyebrow { font-size: 11px; letter-spacing: .14em; color: #bfe3c9; }
.recipe-view .rv-banner strong { font-size: 19px; }
.recipe-view .rv-banner span { color: #e4f3e8; }
.recipe-view .rv-section-head { align-items: center; margin-bottom: 12px; }
.recipe-view .rv-section-head h2 { font-size: 18px; }
.recipe-view .rv-section-head a { color: var(--brand); font-size: 13px; }
.recipe-view .rv-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.recipe-view .rv-related-grid a { display: flex; }
.recipe-view .rv-related-grid .rc-foot { flex-wrap: wrap; row-gap: 4px; }
.recipe-view .rv-comments { padding: 20px 24px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; }
.recipe-view .rv-comments h2 { font-size: 17px; }
.recipe-view .rv-comments h2 span { color: var(--brand); }
.recipe-view .rv-footer .rv-small-button { min-height: 38px; padding: 0 16px; border-radius: var(--control-radius); }

@media (max-width: 900px) {
  .recipe-view .rv-hero { grid-template-columns: 1fr; gap: 18px; }
  .recipe-view .rv-hero-photo { position: static; }
  .recipe-view .rv-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .recipe-view .rv-hero-photo img { border-radius: 14px; }
  .recipe-view .rv-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-view .rv-buy-row { flex-direction: column; }
  .recipe-view .rv-card-top, .recipe-view .rv-block, .recipe-view .rv-about { padding: 18px; }
  .recipe-view .rv-card-facts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-view .rv-tip-box { margin: 0 18px 18px; }
  .recipe-view .rv-ingredients th, .recipe-view .rv-ingredients td { padding: 10px; }
  .recipe-view .rv-lock-overlay .rv-main-button { min-width: 0; width: 100%; }
}
@media print {
  .recipe-view .rv-tools, .recipe-view .rv-buy-row, .recipe-view .rv-balance, .recipe-view .rv-hero-rating, .recipe-view .rv-rating, .recipe-view .rv-state { display: none !important; }
  .recipe-view .rv-hero-photo { position: static; }
  .recipe-view .rv-card { box-shadow: none; }
}

/* ---- Shared small buttons for these pages ---- */
.cl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--control-radius); background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cl-button:hover { background: var(--brand-2); }
.cl-button.ghost { background: #fff; color: var(--brand); }
.cl-button.ghost:hover { background: var(--brand-soft); }

/* ---- 창업요리교육 list ---- */
.cl-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.cl-points li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; }
.cl-points li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; }
.cl-points b { font-size: 15px; }
.cl-points p { margin: 2px 0 0; font-size: 13px; color: #6b726d; line-height: 1.5; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.cl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--card-shadow); transition: transform .15s, box-shadow .15s; }
.cl-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(20, 40, 25, .45); }
.cl-media { position: relative; }
.cl-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cl-soon { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 30, 24, .78); color: #fff; font-size: 11.5px; font-weight: 800; }
.cl-soon.inline { position: static; background: #fff1e3; color: #b4581a; }
.cl-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cl-meta > span:not(.cl-soon) { padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.cl-body h2 { margin: 2px 0 0; font-size: 19px; }
.cl-body p { margin: 0; font-size: 14px; color: #6b726d; }
.cl-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: #6b726d; }
.cl-foot b { color: var(--brand); }
.cl-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 18px; padding: 20px 22px; border: 1px dashed #c9d9cd; border-radius: var(--card-radius); background: #f7faf6; }
.cl-notice strong { font-size: 16px; }
.cl-notice p { margin: 4px 0 0; font-size: 13.5px; color: #59605b; }
.cl-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 창업요리교육 detail ---- */
.class-detail .breadcrumb a, .service-page .breadcrumb a { color: #59605b; font-size: 13px; font-weight: 700; text-decoration: none; }
.cl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 10px 0 26px; }
.cl-hero figure { margin: 0; }
.cl-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.cl-hero-info { display: grid; gap: 14px; }
.cl-hero-info h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.cl-lead { margin: 0; font-size: 15px; line-height: 1.7; color: #59605b; }
.cl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cl-facts li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; color: #6b726d; }
.cl-facts b { font-size: 15px; color: var(--ink); }
.cl-curriculum { margin: 0 0 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.cl-curriculum h2 { margin: 0 0 14px; font-size: 18px; }
.cl-curriculum ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cl-curriculum li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: #f7f8f5; }
.cl-no { flex: none; min-width: 92px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
.cl-no b { font-size: 18px; }
.cl-curriculum h3 { margin: 0; font-size: 15.5px; }
.cl-more { display: inline-block; color: var(--brand); font-weight: 800; font-size: 14px; text-decoration: none; }

/* ---- 전체메뉴 ---- */
.md-grid { columns: 3; column-gap: 16px; }
.md-grid > .md-group { break-inside: avoid; margin: 0 0 16px; }
.md-group { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.md-group header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.md-group h2 { margin: 0; font-size: 17px; }
.md-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.md-icon svg { width: 20px; height: 20px; }
.md-group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.md-group li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.md-group li a::after { content: "›"; color: #b3b9b4; font-size: 18px; line-height: 1; }
.md-group li a:hover { background: var(--brand-soft); color: var(--brand); }
.md-group li a:hover::after { color: var(--brand); }
.md-group .menu-section { margin: 10px 0 2px; padding: 8px 10px 0; border: 0; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #8a918b; }
.md-group .menu-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.md-chips a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.md-chips a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---- 이용안내 pages ---- */
.service-page .service-content { padding: 0; border: 0; background: none; box-shadow: none; }
.sv-intro { margin: 0 0 16px; font-size: 16px; line-height: 1.8; color: #3c4436; }
.sv-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sv-feature { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--card-shadow); }
.sv-feature b { font-size: 16px; color: var(--brand); }
.sv-feature p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #59605b; }
.sv-feature span { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--brand); }
.sv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-soon { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; text-align: center; }

@media (max-width: 900px) {
  .md-grid { columns: 2; }
  .cl-hero { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .md-grid { columns: 1; }
  .cl-grid, .cl-points, .sv-features { grid-template-columns: 1fr; }
  .cl-notice-actions, .cl-notice-actions .cl-button { width: 100%; }
  .cl-curriculum { padding: 18px; }
  .cl-curriculum li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- 이용방법 ---- */
.guide-page .nt-controls { margin-bottom: 18px; }
.gd-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.gd-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 4px 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.gd-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gd-no { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; }
.gd-step h3 { margin: 2px 0 4px; font-size: 16px; }
.gd-step p { margin: 0; font-size: 14px; line-height: 1.65; color: #59605b; }
.gd-link { justify-self: start; margin-top: 6px; color: var(--brand); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.gd-link:hover { text-decoration: underline; }
.gd-details { margin: 0 0 22px; }
.gd-details-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gd-details-head h2 { margin: 0; font-size: 18px; }
.gd-details-head a { color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) {
  .gd-steps { grid-template-columns: 1fr; }
  .gd-step { padding: 16px; }
}

/* ---- Recipe photo editor (partner center and operator editor) ---- */
.rf-cover, .rf-steps { display: grid; gap: 12px; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.rf-cover legend, .rf-steps legend { padding: 0 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.rf-cover-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.rf-cover-preview { width: 200px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #f3f5f1; }
.rf-cover-actions { display: grid; gap: 8px; justify-items: start; min-width: 0; flex: 1; }
.rf-sample { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; font-weight: 600; color: #59605b; }
.rf-sample select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--control-radius); background: #fff; font: inherit; }
.rf-upload { position: relative; display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; margin: 0 !important; padding: 0 16px; border: 1px dashed var(--brand); border-radius: var(--control-radius); background: var(--brand-soft); color: var(--brand); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.rf-upload:hover { background: #e3efe6; }
.rf-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.rf-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rf-status { font-size: 12.5px; color: #6b726d; }
.rf-status.error { color: #c2381b; font-weight: 700; }
.rf-help { margin: 0; font-size: 12.5px; color: #6b726d; }
.rf-steps ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: rf-step; }
.rf-step { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; counter-increment: rf-step; }
.rf-step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rf-step-no::before { content: counter(rf-step) "단계"; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.rf-step-tools { display: flex; gap: 4px; }
.rf-step-tools button, .rf-photo-remove { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #3c4436; font: inherit; font-size: 12.5px; cursor: pointer; }
.rf-step-tools button:hover, .rf-photo-remove:hover { background: #f1f3ee; }
.rf-step input[data-step-title], .rf-step textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--control-radius); background: #fff; font: inherit; font-size: 14px; }
.rf-step textarea { resize: vertical; }
.rf-step-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rf-step-preview img { display: block; width: 120px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.rf-add { justify-self: start; min-height: 40px; padding: 0 16px; border: 1px solid var(--brand); border-radius: var(--control-radius); background: #fff; color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.rf-add:hover { background: var(--brand-soft); }

/* ---- Step photos on the recipe page ---- */
.recipe-view .rv-step-photo { display: block; margin: 10px 0 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.recipe-view .rv-step-photo img { display: block; width: min(100%, 420px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.rv-zoom { max-width: min(96vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #111; overflow: hidden; }
.rv-zoom::backdrop { background: rgba(10, 14, 12, .78); }
.rv-zoom img { display: block; max-width: min(96vw, 1100px); max-height: 86vh; object-fit: contain; }
.rv-zoom-close { position: absolute; top: 10px; right: 10px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) {
  .rf-cover-preview { width: 100%; }
  .rf-step-preview img { width: 100%; }
}

/* ---- Footer: legally required business information (전자상거래법 제10조) ---- */
.footer .footer-business { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-style: normal; font-size: 12px; line-height: 1.7; color: #8b918a; }
.footer .footer-business span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.footer .footer-business b { font-weight: 500; color: #626a62; }
.footer .footer-business a { color: #626a62; }
@media (max-width: 560px) {
  .footer .footer-business { flex-direction: column; gap: 2px; font-size: 11px; }
}

/* ---- Points top-up: cash receipt request ---- */
.credit-receipt { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border: 1px solid #e3e6de; border-radius: 6px; }
.credit-receipt legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.credit-receipt-options { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.credit-form .credit-receipt-options label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.credit-receipt-number[hidden] { display: none !important; }
.credit-receipt .credit-hint { margin: 0; }

/* ---- Terms of service and privacy policy ---- */
.footer .footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 12px; }
.footer .footer-legal a { color: #4b524b; }
.legal-page h1 { margin: 8px 0 10px; font-size: 26px; }
.legal-page .legal-lead { color: #5f665f; line-height: 1.75; }
.legal-article { margin-top: 26px; }
.legal-article h2 { margin: 0 0 8px; font-size: 16px; }
.legal-article p, .legal-article li { font-size: 14px; line-height: 1.8; color: #3c443c; }
.legal-article ol { margin: 0; padding-left: 22px; }
.legal-table-wrap { overflow-x: auto; margin: 8px 0; }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.legal-table th, .legal-table td { border: 1px solid #e3e6de; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: #f6f7f4; font-weight: 700; }
.legal-effective { margin-top: 28px; font-size: 13px; color: #7d8576; }
.legal-inline-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: #7d8576; }
.legal-inline-note a { color: #4b524b; text-decoration: underline; }

/* ---- Payouts: refunds of charged points and earnings withdrawals ---- */
.payouts-page .po-card { margin-bottom: 18px; padding: 18px 20px; border: 1px solid #e3e6de; border-radius: 10px; background: #fff; }
.po-card h2 { margin: 0 0 10px; font-size: 16px; }
.po-card p { margin: 6px 0; font-size: 14px; line-height: 1.7; }
.po-muted, .po-hint { color: #7d8576; font-size: 13px; }
.po-hold { padding: 8px 12px; border-radius: 6px; background: #fff4e5; color: #8a4b00; font-size: 13px; }
.po-amount { color: #2f6fd6; font-size: 18px; }
.po-form { display: grid; gap: 10px; margin-top: 12px; }
.po-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.po-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.po-form input { border: 1px solid #cfd4c9; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 400; min-width: 0; }
.po-inline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.po-button { justify-self: start; min-height: 38px; padding: 6px 18px; border: 0; border-radius: 4px; background: #e94726; color: #fff; font-weight: 700; cursor: pointer; }
.po-button:disabled { opacity: .5; cursor: not-allowed; }
.po-notes { margin: 8px 0; padding-left: 18px; color: #5f665f; font-size: 13px; line-height: 1.7; }
.po-sum { display: grid; gap: 6px; margin: 0 0 8px; }
.po-sum div { display: flex; justify-content: space-between; max-width: 360px; font-size: 14px; }
.po-sum dd { margin: 0; }
.po-table-wrap { overflow-x: auto; }
.po-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.po-table th, .po-table td { border-bottom: 1px solid #eceee9; padding: 8px 6px; text-align: left; vertical-align: top; }
.po-cancel { border: 1px solid #d4d9cf; border-radius: 3px; background: #fff; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.po-warn { color: #c62d12; font-weight: 700; }
.po-checklist { margin: 6px 0 14px; padding-left: 18px; line-height: 1.7; }
.po-link { margin: 10px 0; font-size: 13px; }
.po-link a { text-decoration: underline; }
@media (max-width: 560px) { .po-fields { flex-direction: column; } }
.po-log { margin: 8px 0; font-size: 13px; }
.po-log summary { cursor: pointer; color: #4b524b; }
.po-log ul { margin: 6px 0; padding-left: 18px; line-height: 1.7; }

/* ---- First sign-in consent and member withdrawal ---- */
.consent-page h1 { margin: 12px 0 8px; font-size: 24px; }
.consent-lead { color: #5f665f; line-height: 1.7; }
.consent-form { display: grid; gap: 10px; margin: 18px 0; padding: 18px; border: 1px solid #e3e6de; border-radius: 10px; background: #fff; }
.consent-item { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.6; }
.consent-item input { width: 18px; height: 18px; flex: none; }
.consent-item span { flex: 1; }
.consent-item a { font-size: 12px; color: #4b524b; text-decoration: underline; }
.consent-all { padding-bottom: 10px; border-bottom: 1px solid #eceee9; }
.consent-later { text-align: center; font-size: 13px; }
.consent-later a { color: #7d8576; text-decoration: underline; }
.signout-row .withdraw-link { margin-left: 16px; color: #9aa09a; font-size: 12px; text-decoration: underline; }
.profile-withdraw { margin-top: 18px; text-align: right; font-size: 12px; }
.profile-withdraw a { color: #9aa09a; text-decoration: underline; }
.wd-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.wd-check li { padding: 10px 12px; border-radius: 6px; background: #f6f7f4; }
.wd-check li a { text-decoration: underline; }
.wd-check .wd-stop { background: #fdecea; color: #8a1f11; }
.wd-check .wd-warn { background: #fff4e5; color: #7a4600; }
.wd-check .wd-ok { background: #edf7ee; color: #1e5b27; }
.wd-form { display: grid; gap: 10px; }
.wd-button { justify-self: start; min-height: 40px; padding: 6px 20px; border: 0; border-radius: 4px; background: #5f665f; color: #fff; font-weight: 700; cursor: pointer; }
.wd-button:disabled { opacity: .45; cursor: not-allowed; }

/* ---- 동영상레시피: lesson player on the recipe page ---- */
.recipe-view .vp { margin: 0 0 24px; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--card-shadow); }
.recipe-view .vp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.recipe-view .vp-head h2 { margin: 0; font-size: 18px; }
.recipe-view .vp-head > span { font-size: 13px; font-weight: 700; color: var(--brand); }
.recipe-view .vp-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.recipe-view .vp-main { position: relative; }
.recipe-view .vp-stage { position: relative; overflow: hidden; border-radius: 14px; background: #0d1210; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.recipe-view .vp-stage:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.recipe-view .vp-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0d1210; }
.recipe-view .vp-mark { position: absolute; z-index: 2; max-width: 70%; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .42); font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: left 1.2s ease, top 1.2s ease; }
.recipe-view .vp-full { position: absolute; z-index: 3; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; cursor: pointer; }
.recipe-view .vp-full:hover { background: rgba(0, 0, 0, .7); }
.recipe-view .vp-message { position: absolute; z-index: 4; inset: auto 12px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(15, 20, 17, .9); color: #fff; font-size: 13.5px; text-align: center; }
.recipe-view .vp-message button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.recipe-view .vp-start { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: linear-gradient(180deg, rgba(10, 16, 13, .15), rgba(10, 16, 13, .6)); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.recipe-view .vp-start span[aria-hidden] { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); font-size: 20px; }
.recipe-view .vp-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 420px; overflow: auto; }
.recipe-view .vp-lesson { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.recipe-view .vp-lesson:hover { background: #f5f8f4; }
.recipe-view .vp-lesson.on { border-color: var(--brand); background: var(--brand-soft); }
.recipe-view .vp-no { padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.recipe-view .vp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.recipe-view .vp-time { font-size: 12px; color: #6b726d; }
.recipe-view .vp-note { margin: 12px 0 0; font-size: 12px; color: #8a918b; }
.recipe-view .vp.locked .vp-preview { position: relative; margin-bottom: 14px; }
.recipe-view .vp-badge { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #e2462a; color: #fff; font-size: 12px; font-weight: 800; }
.recipe-view .vp-lock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); }
.recipe-view .vp-lock strong { font-size: 15px; }
.recipe-view .vp-lock .rv-main-button { flex: none; min-width: 180px; }

/* ---- Recipe cards: video badge and running time ---- */
.rc-badge.video { background: #b4361aeb; }
.rc-runtime { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 14, 12, .72); color: #fff; font-size: 12px; font-weight: 800; }

/* ---- Recipe form: videos ---- */
.rf-videos { display: grid; gap: 12px; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.rf-videos legend { padding: 0 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.rf-videos ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: rf-video; }
.rf-video { counter-increment: rf-video; }
.rf-video-no::before { content: counter(rf-video) "강"; display: inline-block; padding: 3px 10px; border-radius: 999px; background: #b4361a; color: #fff; font-size: 12px; font-weight: 800; }
.rf-video-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rf-video-file progress { width: 180px; height: 10px; accent-color: var(--brand); }
.rf-video-done { font-size: 13px; font-weight: 800; color: var(--brand); }
.rf-preview { display: grid; gap: 8px; padding: 12px 14px; border: 1px dashed #d8c3b7; border-radius: 12px; background: #fffaf6; }
.rf-preview b small { font-weight: 600; color: #8a6b58; }
.rf-preview-box video { display: block; width: min(100%, 360px); border-radius: 10px; background: #111; }

@media (max-width: 860px) {
  .recipe-view .vp-body { grid-template-columns: 1fr; }
  .recipe-view .vp-list { max-height: none; }
}
@media (max-width: 560px) {
  .recipe-view .vp { padding: 16px; }
  .recipe-view .vp-lock .rv-main-button { width: 100%; }
}
@media print { .recipe-view .vp { display: none !important; } }

/* ---- SNS sign-in prompt wrapper ---- */
.prompt-social { margin: 14px 0 4px; text-align: left; }
.prompt-social > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 800; color: #6b726d; }
.prompt-social > div { gap: 6px; }

/* ---- SNS sign-in buttons in each provider's brand style (dist/login-options.js, server/auth.mjs) ---- */
.sidebar-social > div:has(> .sns-list) { display: block; }
.sns-list { grid-column: 1 / -1; display: grid; gap: 7px; }
.sns-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; font-weight: 700; text-decoration: none; line-height: 1; }
.sns-btn .sns-logo { position: absolute; left: 14px; display: grid; place-items: center; width: 20px; height: 20px; }
.sns-btn .sns-logo svg { width: 100%; height: 100%; }
.sns-btn.kakao { background: #fee500; color: rgba(0, 0, 0, .85); }
.sns-btn.naver { background: #03c75a; color: #fff; }
.sns-btn.naver .sns-logo { width: 16px; height: 16px; }
.sns-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, system-ui, sans-serif; font-weight: 600; }
a.sns-btn:hover { filter: brightness(.96); }
a.sns-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sns-btn.off { opacity: .45; cursor: default; }
.sns-btn.off small { position: absolute; right: 12px; font-size: 11px; font-weight: 700; }
.sns-note { margin: 10px 0 0 !important; font-size: 12px; color: #8a918b; }
.prompt-social > p:first-child { margin: 6px 0 12px; }

/* 알림 이메일: 정보수정 row, reminder box on the charge and partner pages (dist/notify-email-ui.js) */
.ne-box { display: grid; gap: 8px; max-width: 520px; }
.ne-status { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.ne-status.ok { color: #1f5f3a; }
.ne-status.need { color: #c7402a; }
.ne-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ne-form[hidden] { display: none; }
.ne-form input { flex: 1 1 220px; }
.ne-send, .ne-change, .ne-done { min-height: 38px; padding: 7px 14px; border-radius: 6px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ne-send { border: 0; background: #1f5f3a; color: #fff; }
.ne-send:disabled { opacity: .6; }
.ne-change, .ne-done { justify-self: start; border: 1px solid #cfd4c9; background: #fff; color: #3c4436; }
.ne-done { margin-left: 6px; min-height: 32px; padding: 4px 10px; }
.ne-sent { margin: 0; padding: 10px 12px; border-radius: 8px; background: #eef5ef; color: #2d4a36; font-size: 13.5px; line-height: 1.7; }
.ne-required { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #f1c7b8; border-radius: 10px; background: #fff6f2; }
.ne-required strong { display: block; color: #c7402a; font-size: 15px; }
.ne-required p { margin: 6px 0 10px; color: #59605b; font-size: 13.5px; line-height: 1.7; }
.ne-link { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border-radius: 8px; background: #e94726; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.ne-link:hover { background: #c73c1f; }
