:root {
      --bg: #F4F6F8;
      --surface: #FFFFFF;
      --surface-soft: #EEF2F5;
      --border: #E2E8F0;
      --ink: #14181F;
      --muted: #5B6472;
      --accent: #FF5A36;
      --accent-hover: #E54825;
      --accent-soft: rgba(255, 90, 54, 0.1);
      --mint: #0F766E;
      --mint-soft: rgba(15, 118, 110, 0.1);
      --sky: #2563EB;
      --violet: #7C3AED;
      --shadow: 0 6px 20px rgba(20, 24, 31, 0.05);
      --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }

    html { overflow-x: clip; }

    body {
      margin: 0;
      padding: 0;
      overflow-x: clip;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    /* 버전 전환 바 */
    .version-bar {
      background: var(--surface-soft);
      border-bottom: 1px solid var(--border);
      font-size: 0.78rem;
      color: var(--muted);
    }

    .version-bar-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 8px 24px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .version-pills { display: flex; flex-wrap: wrap; gap: 6px; }

    .version-pill {
      padding: 3px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--muted);
      font-weight: 500;
    }

    .version-pill.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    /* 상단 검색 바 + 6대 카테고리 링크 */
    .top-portal {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      margin-bottom: 24px;
    }

    .top-portal-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 18px 24px 16px;
    }

    .brand-search-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .brand-lockup span {
      display: block;
      font-size: 0.76rem;
      color: var(--muted);
    }

    .brand-lockup strong {
      font-size: 1.55rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      color: var(--accent);
    }

    .search-box {
      display: flex;
      align-items: stretch;
      flex: 1;
      min-width: 0;
      max-width: 520px;
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      transition: border-color 0.16s ease;
    }

    .search-box:focus-within {
      border-color: var(--accent);
      background: #fff;
    }

    .search-box input {
      flex: 1;
      min-width: 0;
      border: none;
      background: transparent;
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.9rem;
      padding: 10px 14px;
      outline: none;
    }

    .search-box input::placeholder { color: #8A94A6; }

    .search-btn {
      appearance: none;
      border: none;
      background: var(--ink);
      color: #fff;
      font-family: var(--sans);
      font-size: 0.86rem;
      font-weight: 700;
      padding: 0 18px;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .search-btn:hover { background: var(--accent); }

    .hub-6nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .hub-6nav a {
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--muted);
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid transparent;
      transition: all 0.16s ease;
    }

    .hub-6nav a:hover {
      color: var(--accent);
      background: var(--accent-soft);
    }

    .hub-6nav a.mag-link {
      color: var(--mint);
      background: var(--mint-soft);
      font-weight: 700;
    }

    .cat-4grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
      margin: 0 0 18px;
    }

    .cat-big-btn {
      appearance: none;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.88rem;
      font-weight: 700;
      padding: 10px 8px;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.16s ease;
      white-space: nowrap;
    }

    .cat-big-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-soft);
    }

    .cat-big-btn.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #fff;
    }

    /* 본문 컨테이너 */
    .main-wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px 64px;
    }

    /* 상단 2단: 좌 피처 카드 + 우 읽을거리 · 푸드 매거진 */
    .hero-2col {
      display: grid;
      grid-template-columns: minmax(0, 56%) minmax(0, 44%);
      gap: 24px;
      align-items: stretch;
      margin-bottom: 28px;
    }

    .hero-light-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .hero-photo-strip {
      width: 100%;
      height: 220px;
      overflow: hidden;
      position: relative;
      border-bottom: 1px solid var(--border);
      background: var(--surface-soft);
    }

    .hero-photo-strip img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-photo-pill {
      position: absolute;
      left: 16px;
      top: 14px;
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(20, 24, 31, 0.86);
      color: #fff;
      font-size: 0.74rem;
      font-weight: 800;
    }

    .hero-card-body {
      padding: 20px 24px 22px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
    }

    .hero-card-body h1 {
      margin: 0 0 6px;
      font-size: clamp(1.45rem, 2.4vw, 1.88rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.28;
      color: var(--ink);
    }

    .hero-card-body p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .hero-btns {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .btn-fill {
      padding: 10px 18px;
      border-radius: 8px;
      background: var(--accent);
      color: #fff;
      font-size: 0.86rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .btn-fill:hover { background: var(--accent-hover); }

    .btn-soft {
      padding: 10px 18px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--ink);
      font-size: 0.86rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .btn-soft:hover { border-color: var(--ink); }

    /* 우측 읽을거리 · 푸드 매거진 */
    .tips-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px 24px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }

    .tips-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      border-bottom: 1.5px solid var(--surface-soft);
      margin-bottom: 6px;
    }

    .tips-head h2 {
      margin: 0;
      font-size: 1.12rem;
      font-weight: 800;
    }

    .tips-head a {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--mint);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .tips-list {
      list-style: none;
      margin: 0;
      padding: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .tips-list li {
      border-bottom: 1px dashed var(--border);
    }

    .tips-list li:last-child { border-bottom: none; }

    .tip-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 2px;
      font-size: 0.88rem;
    }

    .tip-row:hover strong { color: var(--accent); }

    .tip-tag {
      display: inline-block;
      width: 52px;
      text-align: center;
      font-size: 0.72rem;
      font-weight: 800;
      padding: 3px 0;
      border-radius: 6px;
      background: var(--accent-soft);
      color: var(--accent);
      flex-shrink: 0;
    }

    .tip-tag.mint {
      background: var(--mint-soft);
      color: var(--mint);
    }

    .tip-notice {
      margin: 10px 0 0;
      font-size: 0.76rem;
      color: var(--muted);
    }

    /* 중단: 조리법·메뉴·매거진 3×3 탐색 맵 */
    .flow-map-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px 24px;
      box-shadow: var(--shadow);
      margin-bottom: 28px;
    }

    .flow-head {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 16px;
    }

    .flow-head h2 {
      margin: 0;
      font-size: 1.22rem;
      font-weight: 800;
    }

    .flow-head span {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .flow-3groups {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 14px;
      align-items: stretch;
    }

    .group-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      border-top-width: 3px;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .group-card.sky { border-top-color: var(--sky); }
    .group-card.mint { border-top-color: var(--mint); }
    .group-card.violet { border-top-color: var(--violet); }

    .group-time {
      display: block;
      font-size: 0.82rem;
      font-weight: 800;
    }

    .group-card.sky .group-time { color: var(--sky); }
    .group-card.mint .group-time { color: var(--mint); }
    .group-card.violet .group-time { color: var(--violet); }

    .group-title {
      margin: 2px 0 12px;
      font-size: 1rem;
      font-weight: 800;
    }

    .step-mini-stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    .mini-node {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      transition: border-color 0.16s ease;
    }

    .mini-node:hover { border-color: var(--accent); }

    .mini-arrow {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--muted);
      flex-shrink: 0;
      line-height: 1;
      transition: transform 0.16s ease, color 0.16s ease;
    }

    .mini-node:hover .mini-arrow {
      color: var(--accent);
      transform: translateX(2px);
    }

    .mini-node > div { min-width: 0; }

    .mini-node strong {
      display: block;
      font-size: 0.84rem;
      margin-bottom: 2px;
    }

    .mini-node > div span {
      display: block;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .flow-full-btn {
      display: block;
      text-align: center;
      padding: 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg);
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--ink);
    }

    .flow-full-btn:hover { border-color: var(--accent); color: var(--accent); }

    /* 하단 1: 고정 높이(200px) 3열 최신 레시피 카드 */
    .cards-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 14px;
    }

    .cards-head h2 {
      margin: 0;
      font-size: 1.22rem;
      font-weight: 800;
    }

    .search-status {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--mint);
    }

    .recipe-3cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-bottom: 28px;
    }

    .r-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      transition: transform 0.16s ease, border-color 0.16s ease;
    }

    .r-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .r-card.hidden { display: none; }

    .cards-empty-note {
      display: none;
      background: var(--surface);
      border: 1px dashed var(--border);
      border-radius: 14px;
      padding: 28px 20px;
      text-align: center;
      margin-bottom: 18px;
    }

    .cards-empty-note.show { display: block; }
    .cards-empty-note strong { display: block; font-size: 0.96rem; margin-bottom: 6px; }
    .cards-empty-note p { margin: 0 0 14px; font-size: 0.84rem; color: var(--muted); }
    .cards-empty-note a {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 8px;
      background: var(--accent);
      color: #fff;
      font-size: 0.82rem;
      font-weight: 700;
    }

    /* 쿠팡 파트너스 3열 텍스트 추천 스트립 (CPA) */
    .partner-strip {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px 20px;
      box-shadow: var(--shadow);
      margin: 24px 0;
    }

    .partner-strip-head {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 12px;
    }

    .partner-strip-head strong {
      font-size: 1rem;
      font-weight: 800;
      color: var(--ink);
    }

    .partner-strip-head span {
      font-size: 0.74rem;
      color: var(--muted);
    }

    .partner-3grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .partner-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      transition: border-color 0.16s ease;
    }

    .partner-card:hover { border-color: var(--accent); }

    .partner-info { min-width: 0; }

    .partner-info strong {
      display: block;
      font-size: 0.86rem;
      color: var(--ink);
      margin-bottom: 2px;
    }

    .partner-info span {
      display: block;
      font-size: 0.74rem;
      color: var(--muted);
    }

    .partner-btn {
      padding: 6px 11px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--ink);
      font-size: 0.75rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .partner-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .r-thumb {
      width: 100%;
      height: 200px;
      overflow: hidden;
      background: var(--surface-soft);
    }

    .r-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .r-body {
      padding: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
    }

    .r-specs {
      display: flex;
      gap: 6px;
      margin-bottom: 6px;
    }

    .r-pill {
      font-size: 0.7rem;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 6px;
      background: var(--accent-soft);
      color: var(--accent);
    }

    .r-body h3 {
      margin: 0 0 6px;
      font-size: 1rem;
      font-weight: 800;
    }

    .r-body p {
      margin: 0;
      font-size: 0.82rem;
      color: var(--muted);
    }

    .r-foot {
      padding-top: 10px;
      border-top: 1px dashed var(--border);
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--mint);
    }

    /* 하단 2: 6개 미니멀 아이콘 퀵메뉴 */
    .bottom-6icons {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 12px;
    }

    .b-icon-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 10px;
      text-align: center;
      transition: border-color 0.16s ease, transform 0.16s ease;
    }

    .b-icon-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    .b-icon-box {
      width: 38px;
      height: 38px;
      margin: 0 auto 8px;
      border-radius: 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--ink);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .b-icon-card span {
      display: block;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--ink);
    }

    /* 푸터 */
    .site-footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 30px 24px;
      font-size: 0.82rem;
      color: var(--muted);
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 16px;
    }

    .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

    @media (max-width: 960px) {
      .cat-4grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .hero-2col,
      .partner-3grid,
      .recipe-3cards { grid-template-columns: minmax(0, 1fr); }
      .bottom-6icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    @media (max-width: 767px) {
      .flow-3groups { grid-template-columns: minmax(0, 1fr); }
    }

    @media (max-width: 560px) {
      .cat-4grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .bottom-6icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {
      .top-portal-inner { padding: 14px 14px 12px; }
      .brand-search-row { gap: 10px; }
      .search-box { max-width: 100%; width: 100%; flex: 1 1 100%; }
      .search-box input { padding: 10px 12px; font-size: 0.86rem; }
      .search-btn { padding: 0 14px; font-size: 0.82rem; }
      .hub-6nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
      }
      .hub-6nav::-webkit-scrollbar { display: none; }
      .hub-6nav a { flex-shrink: 0; white-space: nowrap; font-size: 0.82rem; padding: 6px 11px; }
      .main-wrap { padding: 0 12px 48px; }
      .hero-card-body, .tips-panel, .flow-map-box, .partner-strip { padding: 16px 14px; }
      .hero-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .btn-fill, .btn-soft { text-align: center; padding: 10px 8px; font-size: 0.8rem; }
      .cards-head { flex-wrap: wrap; gap: 6px; }
      .r-specs { flex-wrap: wrap; }
      .site-footer { padding: 24px 14px; }
    }
