/* sipsiphooray — 리소그래프 방향. 토큰은 docs/superpowers/specs 의 설계 문서와 맞춘다. */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@800;900&family=Fraunces:ital,wght@1,800&display=swap');

:root {
  /* 68 「SIP SIP hooray!」 — 종이 · 파란 잉크 · 마스킹테이프 (로고 캔버스 59번 팔레트).
     옛 이름(butter · ink · tomato …)은 여러 화면이 쓰고 있어 그대로 두고 새 색을 가리키게 했다. */
  --paper: #FFF6E6;
  --surface: #FFFFFF;
  --blue: #1B2CFF;
  --blue-dark: #0E1880;
  --text: #1A1440;
  --line: #E9DFCB;

  --tape-lime: #D7FF3C;
  --tape-cyan: #2EF2FF;
  --tape-pink: #FF2E93;
  --tape-yellow: #F5FF00;
  --tape-orange: #FF8A1F;

  --butter: var(--paper);
  --ink: var(--text);
  --tomato: var(--blue);
  --tomato-dark: var(--blue-dark);
  --muted: #5A5468;
  --hairline: var(--line);

  /* 와인 종류 다섯 색 */
  --t-red: #FF3B5C;
  --t-white: #FFF3B0;
  --t-orange: #FF8A1F;
  --t-rose: #FF8FC7;
  --t-sparkling: #D7FF3C;

  --pad: 20px;
  --maxw: 560px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* 리소 인쇄 그레인 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/></filter><rect width='150' height='150' filter='url(%23g)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── 뼈대 ───────────────────────────────────────────── */

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 22px 0 0;
}
.wordmark {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: 18px; letter-spacing: -.035em; color: var(--tomato);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--butter);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.avatar.lg { width: 62px; height: 62px; font-family: 'Black Han Sans', sans-serif; font-size: 24px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }

.iconbtn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  margin: -11px; /* 44px 터치 영역은 유지하고 시각적 위치는 그대로 */
}
.navrow { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; }

/* ── 헤드라인 ─────────────────────────────────────────── */

.hero {
  background: var(--tomato); color: var(--butter);
  padding: 22px 20px 24px; margin-top: 20px;
}
.hero h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(32px, 9vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0; text-shadow: 2px 2px 0 rgba(24, 20, 16, .22);
}
.hero p { margin: 13px 0 0; font-size: 12.5px; font-weight: 500; opacity: .92; }

.pagetitle { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px; margin: 0; }
.sectionhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 24px 0 10px;
}
.sectionhead .sub { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ── 칩 ─────────────────────────────────────────────── */

.chips { display: flex; gap: 6px; padding: 15px 0 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 13px; border: 1px solid var(--line); font-size: 12px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--butter); font-weight: 600; }

/* ── 카드와 목록 ──────────────────────────────────────── */

.feed { display: flex; flex-direction: column; gap: 11px; padding-bottom: 24px; }

.card { display: block; border: 1px solid var(--line); padding: 14px 15px; background: var(--surface); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.card-top > div:first-child { flex: 1; min-width: 0; }

/*
 * 와이너리와 와인 이름은 거의 같은 크기로 둔다. 내추럴 와인은 누가
 * 만들었는지를 보고 고르므로, 와이너리가 작은 꼬리표가 되면 안 된다.
 * 와이너리는 대문자라 같은 숫자에서도 커 보여서, 숫자로는 한 단계 작게
 * 잡아 눈으로는 같게 맞춘다. 둘의 구분은 크기가 아니라 굵기와 색이 한다.
 * 긴 이름(JEAN-FRANÇOIS GANEVAT)도 잘리지 않게 줄바꿈을 허용한다.
 */
.producer { display: flex; align-items: flex-start; gap: 7px; }
.producer .swatch { margin-top: .32em; }
.producer span:last-child {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.25;
  color: #4A4466; overflow-wrap: anywhere;
}
.identity .producer span:last-child { font-size: clamp(19px, 5.4vw, 25px); line-height: 1.15; }
.identity .producer .swatch { margin-top: .4em; }
.swatch { width: 9px; height: 9px; flex-shrink: 0; }
.swatch.white { background: var(--t-white); }
.swatch.orange { background: var(--t-orange); }
.swatch.red { background: var(--t-red); }
.swatch.rose { background: var(--t-rose); }
.swatch.lg { width: 11px; height: 11px; }

.winename {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em; margin-top: 3px;
  overflow-wrap: anywhere;
}
.winename .vintage { color: var(--muted); }

.score {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 30px; color: var(--tomato); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.score.sm { font-size: 19px; line-height: 1; }
.score.lg { font-size: 56px; line-height: .82; letter-spacing: -.02em; }

.quote { font-size: 15px; line-height: 1.5; font-weight: 500; margin-top: 9px; text-wrap: pretty; overflow-wrap: anywhere; }
.byline { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.list { border: 1px solid var(--line); margin-bottom: 24px; }
.list > * + * { border-top: 1px solid var(--line); }
.list-row { padding: 14px 15px; }
.list-row .head { display: flex; align-items: center; gap: 9px; }
.list-row .head .name { font-size: 13px; font-weight: 600; }
.list-row .head .when { font-size: 11.5px; color: var(--muted); }
.list-row .head .score { margin-left: auto; }

.likebtn { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 6px 0; }
.likebtn span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.likebtn[aria-pressed="true"] svg { stroke: var(--tomato); fill: var(--tomato); }
.likebtn[aria-pressed="true"] span { color: var(--tomato); }

.empty { border: 2px dashed var(--hairline); padding: 28px 20px; text-align: center; margin-bottom: 24px; }
.empty p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── 버튼 ───────────────────────────────────────────── */

.actions { display: flex; gap: 9px; padding: 14px 0 26px; }
.btn {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px;
  background: var(--ink); color: var(--butter); flex: 1; text-align: center;
}
.btn:disabled { background: var(--hairline); color: #9C97A8; cursor: not-allowed; }
.btn.tomato { background: var(--tomato); }
.btn.square { flex: 0 0 52px; width: 52px; background: none; border: 1px solid var(--line); }
.btn.link { background: none; color: var(--tomato); font-family: inherit; font-weight: 600; font-size: 14px; height: 44px; flex: 0 0 auto; }

/* ── 와인 상세 ────────────────────────────────────────── */

.identity { padding-top: 24px; }
.identity h1 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(22px, 6.2vw, 28px); line-height: 1.12;
  letter-spacing: -.035em; margin: 5px 0 0; text-wrap: pretty; overflow-wrap: anywhere;
}
/* 생산자 페이지의 h1 은 와이너리 이름 그 자체라 크기를 그대로 둔다 */
.identity .kicker + h1 { font-size: clamp(24px, 7vw, 30px); }
.identity .meta { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 11px; }

.scorebox {
  background: var(--tomato); color: var(--butter); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; margin-top: 20px;
}
.scorebox .score { color: var(--butter); text-shadow: 2px 2px 0 rgba(24, 20, 16, .22); }
.scorebox .lines { flex: 1; min-width: 0; }
.scorebox .lines b { font-size: 13px; font-weight: 600; }
.scorebox .lines p { margin: 4px 0 0; font-size: 11.5px; opacity: .9; }

/* ── 입력 ───────────────────────────────────────────── */

.fieldlabel { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.counter { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--tomato); font-weight: 600; }

.textbox {
  width: 100%; margin-top: 10px; border: 1px solid var(--line); padding: 15px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 18px; line-height: 1.55; font-weight: 500;
  min-height: 120px; resize: vertical;
}
.textbox::placeholder { color: #A49FB2; }

.search {
  width: 100%; border: 1px solid var(--line); padding: 14px 15px; background: var(--surface);
  color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 500;
}
.search::placeholder { color: #A49FB2; }

/* 칸 다섯 개, 값 열 개. 한 칸의 왼쪽 절반이 x.5, 오른쪽 절반이 x.0 */
.rating { display: flex; gap: 9px; }
.rating .block {
  position: relative; display: block; width: 34px; height: 48px;
  touch-action: manipulation;
}
.rating .block i {
  position: absolute; left: 0; right: 0; top: 7px; height: 34px;
  box-sizing: border-box; border: 1px solid var(--line); background: var(--surface);
}
.rating .block i.full { background: var(--tomato); }
.rating .block i.half {
  background: linear-gradient(to right, var(--tomato) 0 50%, var(--butter) 50% 100%);
}
.rating .block button {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.rating .block button.lo { left: 0; }
.rating .block button.hi { right: 0; }
.rating .block button:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.ratingrow { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ratinglabel {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 19px;
  color: var(--tomato); font-variant-numeric: tabular-nums;
}

.daterow {
  padding: 16px 0; border-top: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.daterow label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.daterow input {
  border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-align: right; padding: 8px 0;
}

.stats { display: flex; gap: 9px; margin-top: 22px; }
.stat { flex: 1; border: 1px solid var(--line); padding: 12px 13px; min-width: 0; }
.stat b { display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(20px, 6vw, 26px); line-height: 1; }
.stat span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.stat.hl { background: var(--tomato); color: var(--butter); }
.stat.hl span { color: var(--butter); opacity: .92; }

.profilehead { padding-top: 26px; display: flex; align-items: center; gap: 15px; }
.profilehead h1 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 27px; letter-spacing: -.01em; margin: 0; }
.profilehead p { margin: 4px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }

.note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 넓은 화면: 홈만 분할 레이아웃 ──────────────────────── */

@media (min-width: 980px) {
  body.home { --maxw: 1440px; }
  body.home .shell { padding: 0; }

  body.home .topbar {
    padding: 0 44px; height: 76px; border-bottom: 1px solid var(--line);
  }
  body.home .wordmark { font-size: 22px; letter-spacing: -.04em; }

  body.home .split { display: flex; align-items: stretch; min-height: calc(100vh - 76px); }

  body.home .panel {
    width: 452px; flex-shrink: 0; background: var(--tomato); color: var(--butter);
    border-right: 1px solid var(--line); padding: 52px 44px 40px;
    display: flex; flex-direction: column;
  }
  body.home .panel .hero { background: none; padding: 0; margin: 0; }
  body.home .panel .hero h1 { font-size: 62px; line-height: 1.06; text-shadow: 3px 3px 0 rgba(24, 20, 16, .22); }
  body.home .panel .pitch {
    margin-top: 26px; font-size: 16px; line-height: 1.7; max-width: 320px;
  }
  body.home .panel .chips { flex-wrap: wrap; max-width: 340px; margin-top: 32px; padding: 0; overflow: visible; }
  body.home .panel .chip { border-color: var(--butter); }
  body.home .panel .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
  body.home .panel .tally { margin-top: auto; padding-top: 32px; font-size: 12.5px; font-weight: 500; opacity: .82; }

  body.home .feedwrap { flex: 1; min-width: 0; padding: 28px; }
  body.home .feed {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px; align-content: start; padding: 0;
  }
  body.home .card { padding: 20px 22px; display: flex; flex-direction: column; }
  body.home .card .producer span:last-child { font-size: 16.5px; }
  body.home .card .winename { font-size: 18px; letter-spacing: -.025em; margin-top: 4px; }
  body.home .card .score { font-size: 34px; line-height: .88; }
  body.home .card .quote { font-size: 16px; margin-top: 12px; }
  body.home .card .byline { margin-top: auto; padding-top: 12px; }
  body.home .actions { display: none; }
}

@media (min-width: 1280px) {
  body.home .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 홈이 아닌 페이지는 넓은 화면에서도 한 단으로 읽는다 */
@media (min-width: 720px) {
  body:not(.home) { --maxw: 640px; }
}

/* ── 좁은 화면 보정 ──────────────────────────────────── */

/* 넓은 화면 전용 문구는 모바일에서 숨긴다. 히어로의 한 줄이 그 역할을 한다. */
.panel .tally { display: none; }

/* 모바일에서 주요 행동은 화면 아래에 붙어 있다 */
.actions {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

@media (min-width: 980px) {
  body.home .panel .tally { display: block; }
  /* 수치는 패널 아래에서 따로 보여주므로 히어로 안의 것만 숨긴다.
     가치 문장(.pitch)은 넓은 화면에서도 보여야 한다. */
  body.home #heroTally { display: none; }
}

.cta-solo { margin-top: 11px; width: 100%; }
.results { border: 1px solid var(--line); margin-top: 10px; }
.results > * + * { border-top: 1px solid var(--line); }
.result { display: block; width: 100%; text-align: left; padding: 13px 15px; }
.result:hover, .result:focus-visible { background: rgba(27, 44, 255, .08); }
.newform { border: 1px solid var(--line); padding: 15px; margin-top: 10px; display: grid; gap: 11px; }
.newform label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.newform input, .newform select {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 10px 12px; width: 100%;
}
.newform .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.formrow { display: flex; gap: 9px; align-items: center; }
.alert { border: 2px solid var(--tomato); color: var(--tomato); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-top: 12px; }

/* ── 문서 페이지 (개인정보처리방침, 이용약관) ─────────── */

.doc { padding-bottom: 40px; }
.doc h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(28px, 8vw, 34px); line-height: 1.2; margin: 26px 0 0;
}
.doc .updated { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 10px; }
.doc .lede {
  font-size: 15px; line-height: 1.75; margin-top: 18px; text-wrap: pretty;
  border-left: 4px solid var(--tomato); padding-left: 14px;
}
.doc h2 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 18px;
  margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 14.5px; font-weight: 700; margin: 20px 0 0; }
.doc p { font-size: 14.5px; line-height: 1.8; margin: 10px 0 0; text-wrap: pretty; }
.doc ul { margin: 10px 0 0; padding-left: 18px; }
.doc li { font-size: 14.5px; line-height: 1.8; margin: 4px 0; }
.doc strong { font-weight: 700; }
.doc a { color: var(--tomato); font-weight: 600; text-underline-offset: 3px; text-decoration: underline; }
.doc .box { border: 1px solid var(--line); padding: 16px 18px; margin-top: 16px; }
.doc .box p:first-child { margin-top: 0; }

.sitefoot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 22px 0 28px; margin-top: 8px; border-top: 1.5px solid var(--hairline);
  font-size: 12px; color: var(--muted);
}
.sitefoot a { color: var(--muted); text-underline-offset: 3px; }
.sitefoot a:hover { color: var(--tomato); }

/* ── 홈: 아직 한줄평이 없는 와인 ─────────────────────── */

.hero .pitch {
  margin: 14px 0 0; font-size: 14px; line-height: 1.65; font-weight: 500;
  opacity: .94; max-width: 30ch; text-wrap: pretty;
}

.feedwrap section + section { margin-top: 30px; }
.feedwrap section:first-child .sectionhead { padding-top: 0; }

/* 카드 전체가 "쓰러 가기" 버튼이다 */
.card-empty { display: flex; flex-direction: column; gap: 12px; transition: background .15s ease; }
.card-empty:hover,
.card-empty:focus-visible { background: rgba(27, 44, 255, .07); }
.card-empty .prompt {
  display: flex; align-items: center; gap: 6px; margin: 0;
  padding-top: 11px; border-top: 1.5px dashed var(--hairline);
  font-size: 14px; font-weight: 700; color: var(--tomato);
}
.card-empty .prompt svg { transition: transform .15s ease; }
.card-empty:hover .prompt svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .card-empty .prompt svg { transition: none; } }

/* 로그인하지 않은 사람에게, 왜 로그인하는지 */
.joinband {
  margin-top: 30px; padding: 20px; background: var(--ink); color: var(--butter);
  display: flex; flex-direction: column; gap: 16px;
}
.joinband b { display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 19px; }
.joinband p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; opacity: .82; text-wrap: pretty; }
.joinband .btn {
  background: var(--tomato); height: 50px; font-size: 16px; flex: 0 0 auto;
}
@media (min-width: 620px) {
  .joinband { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .joinband .btn { padding: 0 26px; }
}

/* ── 라벨 사진 ──────────────────────────────────────── */

.thumb {
  width: 50px; height: 66px; flex-shrink: 0; display: block;
  object-fit: cover; border: 1px solid var(--line); background: var(--surface);
}

.identity-row { display: flex; gap: 16px; align-items: flex-start; }
.identity-row > .identity-text { flex: 1; min-width: 0; }

.label-photo,
.label-add {
  width: 112px; flex-shrink: 0; aspect-ratio: 3 / 4;
  border: 1px solid var(--line); background: var(--surface);
}
.label-photo { object-fit: cover; display: block; }

/* 사진이 없을 때 — 자리를 비워두지 않고 "추가하세요"로 채운다 */
.label-add {
  border-style: dashed; border-color: var(--hairline);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 10px; text-align: center;
  font-size: 11.5px; font-weight: 700; line-height: 1.4; color: var(--muted);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.label-add:hover,
.label-add:focus-visible { border-color: var(--tomato); color: var(--tomato); }
.label-add[aria-busy="true"] { cursor: progress; color: var(--tomato); border-color: var(--tomato); }

@media (min-width: 720px) {
  .label-photo, .label-add { width: 140px; }
}

/* 한줄평이 아직 없는 와인 — 숫자 대신 권유 */
.scorebox-empty { display: block; }
.scorebox-empty .lines b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 21px; }
.scorebox-empty .lines p { margin-top: 8px; font-size: 13px; line-height: 1.6; opacity: .92; max-width: 38ch; }

/* 한글 표기 — 찾은 게 맞는지 눈으로 확인시켜 준다 */
.korean { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.identity .korean { font-size: 14px; margin-top: 8px; }

/* 등록 폼의 접히는 부분 */
.newform .more { border-top: 1.5px dashed var(--hairline); padding-top: 12px; }
.newform .more summary {
  font-size: 12.5px; font-weight: 700; color: var(--tomato);
  cursor: pointer; list-style: none; user-select: none;
}
.newform .more summary::-webkit-details-marker { display: none; }
.newform .more summary::before { content: "＋ "; }
.newform .more[open] summary::before { content: "－ "; }
.newform .more-body { display: grid; gap: 11px; margin-top: 13px; }

/* 한글 이름 채우기 */
.ko-add {
  margin-top: 8px; padding: 0; font-size: 12.5px; font-weight: 700;
  color: var(--tomato); border-bottom: 1.5px solid #BFC5FF;
}
.ko-add:hover { border-bottom-color: var(--tomato); }
.ko-form { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ko-form input {
  flex: 1 1 130px; min-width: 0; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px;
}
.ko-form .btn { height: 36px; font-size: 13px; }

/* ── 연관 와인 ──────────────────────────────────────── */

.related-grid {
  display: grid; gap: 9px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.related {
  display: block; border: 1px solid var(--line); padding: 11px 12px;
  background: var(--surface); transition: background .15s ease;
}
.related:hover, .related:focus-visible { background: rgba(27, 44, 255, .07); }
.related .swatch { display: block; margin-bottom: 7px; }
.related b {
  display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.related span:last-child { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }

/* ── 와인 항목 목록 ─────────────────────────────────── */

.spec { margin: 18px 0 0; display: grid; gap: 0; }
.spec > div {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px;
  padding: 9px 0; border-top: 1.5px solid var(--hairline);
}
.spec > div:last-child { border-bottom: 1.5px solid var(--hairline); }
.spec dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.spec dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.spec dd span { font-weight: 500; color: var(--muted); }
.spec dd .dim { font-weight: 500; color: #A49FB2; }

/* ── 생산자 소개 ────────────────────────────────────── */
/* 한줄평이 아니다. 마신 사람의 말과 섞이지 않도록 자리와 모양을 따로 둔다. */

.wine-note { margin-top: 18px; padding-left: 13px; border-left: 3px solid var(--hairline); }
.wine-note b {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .02em;
}
.wine-note p {
  margin: 5px 0 0; font-size: 14px; line-height: 1.68; color: var(--ink);
  font-weight: 500; text-wrap: pretty;
}

/* ── 맛의 세 기준 ───────────────────────────────────── */

.taste { border: 1px solid var(--line); margin-bottom: 24px; }
.taste-row {
  display: grid; grid-template-columns: 58px auto 1fr; align-items: center;
  gap: 12px; padding: 13px 15px;
}
.taste-row + .taste-row { border-top: 1px solid var(--line); }
.taste-row .axis { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.taste-row .scale { display: flex; gap: 5px; }
.taste-row .scale i {
  width: 13px; height: 13px; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--surface);
}
.taste-row .scale i.on { background: var(--tomato); }
.taste-row .said {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 15px; color: var(--tomato); white-space: nowrap;
}
.taste-row .tail { display: none; font-size: 11px; color: var(--muted); text-align: right; }
@media (min-width: 560px) {
  .taste-row { grid-template-columns: 58px auto auto 1fr; }
  .taste-row .tail { display: block; }
}

/* 한줄평 쓰기의 맛 고르기 */
.taste-pick { margin-top: 12px; border: 1px solid var(--line); }
.taste-pick .pick-row {
  display: grid; grid-template-columns: 58px 1fr; align-items: center;
  gap: 10px; padding: 11px 13px;
}
.taste-pick .pick-row + .pick-row { border-top: 1px solid var(--line); }
.taste-pick .axis { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.taste-pick .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.taste-pick .opts button {
  flex: 1 1 auto; min-height: 38px; padding: 7px 10px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.taste-pick .opts button[aria-pressed="true"] {
  background: var(--tomato); border-color: var(--tomato); color: var(--butter); font-weight: 700;
}

/* ── 생산자 ─────────────────────────────────────────── */

.kicker {
  margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tomato);
}
.identity .kicker + h1 { margin-top: 7px; }

/* 와인 상세에서 와이너리 이름을 누르면 생산자 페이지로 */
.speclink {
  color: var(--ink); border-bottom: 1.5px solid #BFC5FF;
  text-underline-offset: 3px; transition: border-color .15s ease, color .15s ease;
}
.speclink:hover, .speclink:focus-visible { color: var(--tomato); border-bottom-color: var(--tomato); }

.morelink { color: var(--tomato); font-weight: 700; white-space: nowrap; }
.morelink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 「굳이」 — 이 페이지가 있는 이유라서 본문처럼 크게 둔다 */
.story {
  border-left: 3px solid var(--tomato); padding: 2px 0 2px 16px; margin-bottom: 14px;
}
.story p {
  margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 500;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.story p + p { margin-top: 12px; }

/* 이야기가 아직 없을 때 — 빈칸을 두지 않고 권유로 채운다 */
.story-add {
  display: block; width: 100%; text-align: left; margin-bottom: 24px;
  border: 2px dashed var(--hairline); padding: 20px 20px 21px;
  transition: border-color .15s ease, background .15s ease;
}
.story-add b {
  display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--ink);
}
.story-add span {
  display: block; margin-top: 8px; font-size: 13px; line-height: 1.65;
  font-weight: 500; color: var(--muted);
}
.story-add:hover,
.story-add:focus-visible { border-color: var(--tomato); background: rgba(27, 44, 255, .05); }
.story-add:hover b { color: var(--tomato); }

.newform textarea {
  min-height: 118px; resize: vertical; padding: 12px 13px;
  font-size: 15px; line-height: 1.6;
}

/* ── 아래 고정 길잡이 ───────────────────────────────── */
/*
 * 왓챠피디아는 모든 화면 아래에 홈·검색·내정보를 붙여 둔다. 검색이 셋 중
 * 하나를 차지하는 것이 핵심이다. 우리는 검색을 글쓰기 화면 안에 숨겨둬서,
 * 로그인하지 않은 사람은 103병 중 아무것도 찾을 수 없었다.
 */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: 58px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabbar a.on { color: var(--tomato); }
.tabbar a svg { display: block; }

/* 고정 막대에 마지막 내용이 가리지 않게 */
body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
.actions.oldcta { display: none; }

/* ── 검색 ───────────────────────────────────────────── */

.searchbar { padding: 16px 0 4px; }
.searchbar .search { width: 100%; }
.resultcount { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 12px; }

.winegrid { display: flex; flex-direction: column; gap: 9px; padding-bottom: 26px; }
.winecard {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--surface); padding: 12px 14px;
  transition: background .15s ease;
}
.winecard:hover, .winecard:focus-visible { background: rgba(27, 44, 255, .07); }
.winecard .body { flex: 1; min-width: 0; }
.winecard .winename { font-size: 16px; margin-top: 4px; }
.winecard .noscore { font-size: 11px; font-weight: 600; color: #A49FB2; white-space: nowrap; }

/* 홈에서 검색으로 가는 입구 */
.searchcue {
  display: flex; align-items: center; gap: 9px; margin-top: 14px;
  border: 1px solid var(--line); background: var(--surface); padding: 13px 15px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .15s ease;
}
.searchcue:hover, .searchcue:focus-visible { background: rgba(27, 44, 255, .08); color: var(--tomato); }

@media (min-width: 720px) {
  .winegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── 와인 페이지의 별점 ─────────────────────────────── */
/*
 * 왓챠피디아처럼 상세 페이지 안에서 바로 준다. 고르는 순간 저장한다 —
 * "저장" 버튼을 하나 더 두면 탭 한 번이 두 번이 되고, 거기서 사람이 샌다.
 */

.rate { text-align: center; padding: 26px 0 4px; border-top: 1.5px solid var(--hairline); margin-top: 22px; }
.rate-lead { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rate .rating { justify-content: center; }
.rate .rating[aria-busy="true"] { opacity: .5; pointer-events: none; }
.rate-mine { margin: 12px 0 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rate-mine b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px; color: var(--tomato); }

.rating.lg { gap: 11px; }
.rating.lg .block { width: 44px; height: 56px; }
.rating.lg .block i { top: 9px; height: 44px; }

.linkish {
  padding: 0 0 1px; font-size: 12px; font-weight: 600; color: var(--muted);
  border-bottom: 1.5px solid var(--hairline);
}
.linkish:hover { color: var(--tomato); border-bottom-color: var(--tomato); }

/* 평균 + 별점 그래프 */
.avgbox {
  display: flex; align-items: flex-end; gap: 20px;
  border: 1px solid var(--line); padding: 15px 17px; margin-top: 20px;
}
.avgbox .avg { display: flex; align-items: baseline; gap: 9px; flex-shrink: 0; }
.avgbox .avg .n {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 40px; line-height: .9; color: var(--tomato);
}
.avgbox .avg .cap { font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.5; }

.histogram { flex: 1; min-width: 0; }
.histogram .bars { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.histogram .bar { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.histogram .bar i { display: block; width: 100%; min-height: 2px; background: var(--tomato); opacity: .85; }
.histogram .ends {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-size: 10px; font-weight: 600; color: var(--muted);
}

/* 할 일 두 개 — 담아두기와 한 줄 쓰기 */
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.actbtn {
  display: block; text-align: center; border: 1px solid var(--line);
  background: var(--surface); padding: 13px 10px; transition: background .15s ease;
}
.actbtn b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.actbtn span { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.actbtn:hover, .actbtn:focus-visible { background: rgba(27, 44, 255, .07); }
.actbtn.on { background: var(--tomato); border-color: var(--tomato); }
.actbtn.on b { color: var(--butter); }
.actbtn.on span { color: var(--butter); opacity: .85; }
.actbtn:disabled { opacity: .5; }

/* 별점만 남긴 기록 — 빈 줄 대신 그렇다고 적는다 */
.quote.dim { color: #A49FB2; font-weight: 500; font-size: 13.5px; }

/* 검색에서 못 찾았을 때 나가는 길 */
.addcue {
  display: block; margin: 2px 0 26px; padding: 15px 17px;
  border: 2px dashed var(--hairline); background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
}
.addcue b { display: block; font-size: 14.5px; font-weight: 700; color: var(--tomato); }
.addcue span { display: block; margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.addcue:hover, .addcue:focus-visible { border-color: var(--tomato); background: rgba(27, 44, 255, .05); }

/* ── 빈티지별 평가 ──────────────────────────────────── */
/*
 * 「다른 빈티지」 링크 세 개를 대신한다. 2019 는 4.0, 2021 은 4.8 이라는
 * 것이 한 화면에서 보인다. 줄을 쪼개지 않고도 같은 것을 말한다.
 */
.vintages { border: 1px solid var(--line); margin-top: 11px; }
.vt-head {
  margin: 0; padding: 11px 15px 0; font-size: 12px;
  font-weight: 700; color: var(--muted);
}
.vt-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline;
  gap: 12px; padding: 10px 15px;
}
.vt-row + .vt-row { border-top: 1.5px solid var(--hairline); }
.vt-row .yr { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vt-row .sc {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--tomato);
}
.vt-row .n { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* 한줄평 줄에 붙는 빈티지 — 같은 와인이라도 해가 다르면 다른 술이다 */
.list-row .head .vt {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  border: 1.5px solid var(--hairline); padding: 1px 5px;
  font-variant-numeric: tabular-nums;
}

/* 등록 전에 보여주는 "이미 있는 와인" */
.dupes {
  border: 2px solid var(--hairline); padding: 13px 14px 14px; margin-top: 16px;
  background: rgba(27, 44, 255, .04);
}
.dupes .fieldlabel { margin: 0 0 10px; }

/* 등록 화면 머리 */
.topbar .pagetitle { text-align: center; flex: 1; }

/* ── 생산자 고르기 ──────────────────────────────────── */

.hits { border: 1px solid var(--line); margin-top: 10px; }
.hits > * + * { border-top: 1px solid var(--line); }
.hit {
  display: block; width: 100%; text-align: left; padding: 12px 15px;
  background: var(--surface); transition: background .12s ease;
}
.hit:hover, .hit:focus-visible { background: rgba(27, 44, 255, .08); }
.hit b {
  display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.02em;
}
.hit span { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.hit.make b { color: var(--tomato); font-family: inherit; font-size: 14px; }

/* 고른 생산자 */
.picked {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--tomato); color: var(--butter);
  padding: 13px 15px;
}
.picked > div { flex: 1; min-width: 0; }
.picked .kicker { color: var(--butter); opacity: .8; margin: 0 0 3px; font-size: 10px; }
.picked b {
  display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.picked span { display: block; margin-top: 2px; font-size: 12.5px; opacity: .85; }
.picked .btn.link { color: var(--butter); height: auto; font-size: 13px; flex: 0 0 auto; }

/* 새 생산자 만들기 */
.newprod { border: 1px solid var(--line); padding: 15px; margin-top: 10px; display: grid; gap: 12px; }
.newprod label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.newprod input {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 10px 12px;
}

/* 쓰기를 길잡이 안으로. (클래스를 hero 로 지었다가 홈 배너의 .hero 와 겹쳐
   칸 전체가 주황 배경이 됐다. 겹치지 않는 이름을 쓴다.)
    홈에 쓰기 버튼이 없어서 사람들이 어디서
   시작하는지 몰랐다 — 가장 중요한 행동이 화면에 없으면 안 일어난다. */
.tabbar.four { grid-template-columns: repeat(4, 1fr); }
.tabbar a.tab-write { color: var(--tomato); }
.tabbar a.tab-write svg {
  background: var(--tomato); color: var(--butter);
  border-radius: 999px; padding: 3px; width: 26px; height: 26px;
  /* 세로 플렉스라 주축이 높이다. 안 잡아두면 아이콘이 6px 로 찌그러진다. */
  flex: 0 0 auto;
}

/* 선택 항목은 접어둔다. 셋 다 펼쳐두면 한 줄 쓰러 온 사람에게 설문지로 보인다. */
.more.extras { margin-top: 22px; border-top: 1.5px dashed var(--hairline); padding-top: 14px; }
.more.extras .more-body { gap: 16px; }

/* 별점을 준 자리에서 바로 한 줄. 페이지를 옮기면 거기서 샌다. */
.jotbox { border: 1px solid var(--line); padding: 14px 15px; margin-top: 11px; }
.jotbox .fieldlabel { margin: 0 0 8px; }
.jotbox .textbox { min-height: 66px; }
.jotbox .btn.tomato { height: 44px; font-size: 15px; }
.jotbox .btn.link { font-size: 13px; }

/* ── 향·풍미 ────────────────────────────────────────── */
/*
 * 세 축은 아홉 칸짜리 표라 채워야 할 것처럼 보였다. 향은 칩이라 고르지
 * 않아도 빈자리가 안 생긴다 — 같은 "선택"인데 부담이 다르다.
 */
.flavor-group { margin-top: 12px; }
.flavor-group:first-child { margin-top: 8px; }
.flavor-group .gl {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; margin-bottom: 7px;
}
.flavor-group .gi { display: flex; flex-wrap: wrap; gap: 6px; }
.flavor-group .chip { font-size: 13px; padding: 7px 11px; }

/* 모인 향. 평균 하나로 뭉개지는 세 축과 달리 각자 표를 받는다. */
.flavorwall { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.fw {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 7px 11px; font-size: 13.5px; font-weight: 600;
}
.fw i {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--tomato);
  font-variant-numeric: tabular-nums;
}

/* 한줄평에 붙는 향 */
.fchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.fchips span {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--hairline); padding: 2px 7px;
}

/* 길게 쓴 것 — 한 줄은 목록에 걸리고, 이건 들여다보는 사람이 편다 */
.longnote { margin-top: 10px; }
.longnote summary {
  font-size: 12px; font-weight: 700; color: var(--tomato);
  cursor: pointer; list-style: none; user-select: none;
}
.longnote summary::-webkit-details-marker { display: none; }
.longnote summary::before { content: "＋ "; }
.longnote[open] summary::before { content: "－ "; }
.longnote p {
  margin: 9px 0 0; font-size: 14px; line-height: 1.75; font-weight: 500;
  white-space: pre-wrap; text-wrap: pretty; border-left: 2px solid var(--hairline); padding-left: 12px;
}

/* 소개의 출처 — 사실 주장이라 어디서 온 말인지 남긴다 */
.source { margin: -6px 0 18px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.source a, .methods + .note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* 만드는 방식 — 생산자가 서명한 설문. 항목명이 길어 왼쪽 칸을 넓힌다 */
.spec.methods { margin-top: 4px; }
.spec.methods > div { grid-template-columns: 112px 1fr; }
.spec.methods + .note { margin: 10px 0 24px; }

/* ── 세계 내추럴 와이너리 ──────────────────────────────── */

/* 길잡이가 다섯 칸이 됐다. 375px 에서 한 칸 75px — 글자 두세 자가 들어간다. */
.tabbar.five { grid-template-columns: repeat(5, 1fr); }
.tabbar.five a { font-size: 10.5px; }

.dirhead { padding: 22px 0 6px; }
.dirhead h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(26px, 7.4vw, 34px); line-height: 1.1; margin: 6px 0 0;
}
.dirhead .lede { margin: 12px 0 0; font-size: 14px; line-height: 1.65; font-weight: 500; text-wrap: pretty; }
.dirhead .count { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: var(--tomato); }

.countrygroup { margin-bottom: 8px; }
.prodgrid { display: grid; gap: 9px; margin-bottom: 22px; }
@media (min-width: 720px) { .prodgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prodrow {
  display: block; border: 1px solid var(--line); background: var(--surface);
  padding: 13px 15px; transition: background .15s ease;
}
.prodrow:hover, .prodrow:focus-visible { background: rgba(27, 44, 255, .07); }
.pr-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pr-name b {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; overflow-wrap: anywhere;
}
.pr-name span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pr-where { margin: 3px 0 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pr-lead {
  margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; font-weight: 500; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.tag {
  font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--hairline); padding: 2px 7px;
}
.tag.on { color: var(--tomato); border-color: var(--tomato); }

/* ── 와이너리 이야기 ──────────────────────────────────── */

/* 피드 — 맨 위 한 편은 잉크 바탕으로 크게, 나머지는 같은 틀의 카드 */
.storyfeed { display: grid; gap: 10px; margin: 18px 0 8px; }
@media (min-width: 720px) {
  .storyfeed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storyfeed .lead { grid-column: 1 / -1; }
}
.storycard {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); padding: 16px 17px;
  transition: background .15s ease;
}
.storycard:hover, .storycard:focus-visible { background: rgba(27, 44, 255, .07); }
/* 표지 — 카드 테두리 안쪽 위를 꽉 채운다. 잉크 선으로 본문과 나눈다 */
.sc-cover {
  display: block; margin: -16px -17px 6px; aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line); background: var(--hairline); overflow: hidden;
}
.sc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.storycard.lead .sc-cover { margin: -22px -20px 8px; aspect-ratio: 16 / 9; border-color: var(--ink); }

.sc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sc-meta b {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: -.005em; color: var(--tomato);
}
.sc-meta span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sc-title {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 19px; line-height: 1.3; text-wrap: balance; word-break: keep-all;
}
.sc-lead {
  font-size: 13.5px; line-height: 1.65; font-weight: 500; text-wrap: pretty; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-date { font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.storycard.lead { background: var(--ink); color: var(--butter); padding: 22px 20px 20px; }
.storycard.lead:hover, .storycard.lead:focus-visible { background: #2A2260; }
.storycard.lead .sc-meta b { color: var(--t-white); }
.storycard.lead .sc-meta span, .storycard.lead .sc-date { color: var(--butter); opacity: .7; }
.storycard.lead .sc-title { font-size: clamp(22px, 6.4vw, 28px); }
.storycard.lead .sc-lead { -webkit-line-clamp: 4; opacity: .92; }

/* 피드 아래 목록과의 경계 */
.dirsplit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 22px; }

/* 이야기 한 편 — 읽는 화면이라 글줄을 넉넉하게 */
.story-article { padding-top: 8px; }
.story-article h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(26px, 7.6vw, 36px); line-height: 1.22; margin: 9px 0 0;
  text-wrap: balance; word-break: keep-all;
}
.a-lead { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; font-weight: 600; text-wrap: pretty; word-break: keep-all; }
.a-byline {
  margin: 16px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.a-cover { margin: 20px 0 6px; }
.a-cover img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--line); background: var(--hairline);
}
.a-cover figcaption { margin-top: 8px; font-size: 12px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.a-cover figcaption span { display: block; color: var(--ink); font-weight: 600; word-break: keep-all; }
.a-cover figcaption small { display: block; font-size: 11px; margin-top: 2px; }
.a-cover figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.a-body { padding: 4px 0 10px; }
.a-body h2 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 19px; line-height: 1.35; margin: 28px 0 0; color: var(--tomato);
}
.a-body p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.85; font-weight: 500; text-wrap: pretty; word-break: keep-all; }
.articlebox { margin: 26px 0 6px; border: 1px solid var(--line); padding: 2px 16px 16px; }
.articlebox .sectionhead { padding-top: 16px; }
.articlebox .note { margin-top: 10px; }
.story-article .searchcue { margin: 6px 0 0; }
.a-sources { margin: 18px 0 8px; font-size: 11.5px; line-height: 1.7; font-weight: 500; color: var(--muted); }
.a-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* 품종 자동완성 — 입력칸 바로 아래, 한글로 쳐도 정식 이름을 고른다 */
.grape-suggest { border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.grape-suggest button {
  display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left;
  padding: 9px 12px; background: none; border: 0; border-top: 1.5px solid var(--hairline);
  font-family: inherit; color: var(--ink); cursor: pointer;
}
.grape-suggest button:first-child { border-top: 0; }
.grape-suggest button:hover, .grape-suggest button:focus-visible { background: rgba(27, 44, 255, .08); }
.grape-suggest b { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 14px; }
.grape-suggest span { font-size: 12px; font-weight: 500; color: var(--muted); }

/* 검수 전 — 고객이 등록하고 운영자가 아직 확인하지 않은 와인 */
.tag.pending { color: var(--t-orange); border-color: var(--t-orange); display: inline-block; margin-top: 6px; }
.pending-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; color: var(--ink); }
.pending-note .tag.pending { margin-top: 0; }
.pending-note .btn.link { padding: 0; height: auto; }

/* ── 와인 노트 ── 한 달치 기록을 노트 한 장으로 */
.note-head { padding: 8px 0 4px; }
.note-head h1 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(28px, 8vw, 38px); margin: 6px 0 0; }
.note-who { margin: 6px 0 14px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.note-months { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.note-line { margin: 4px 0 22px; background: var(--ink); color: var(--butter); padding: 20px; }
.note-line blockquote { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; word-break: keep-all; }
.note-line blockquote::before { content: "“"; }
.note-line blockquote::after { content: "”"; }
.note-line figcaption { margin-top: 10px; font-size: 12px; opacity: .8; }
.note-line a { color: var(--butter); text-decoration: underline; text-underline-offset: 3px; }
.note-keep { margin: 26px 0 6px; display: grid; gap: 8px; }
.note-all { margin-top: 18px; border-top: 1px solid var(--line); }
.me-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px;
  background: var(--ink); color: var(--butter); padding: 16px 18px; }
.me-note b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 18px; display: block; }
.me-note span { font-size: 12.5px; opacity: .8; }
.me-keep { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 4px; }
.me-keep .formrow { flex-wrap: wrap; }
.me-mail { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 18px; padding: 12px 14px;
  border: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.me-mail input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tomato); flex: 0 0 auto; }
.me-mail b { display: block; color: var(--ink); font-size: 14px; }

/* ── 와인샵 ── 숍 프로필 · 와인 페이지의 「구매 가능한 와인샵」 · 사장님 관리 화면
   가격은 어디에도 없다. 「여기 있어요」와 「언제 확인했나」만 보여준다. */
.shoplogo { display: block; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.shoplogo.initial { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--butter);
  font-family: 'Black Han Sans', sans-serif; }

.wineshops { margin-bottom: 4px; }
.shopchips { display: grid; gap: 8px; }
.shopchip { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 9px 12px; background: var(--surface); }
.shopchip:hover { border-color: var(--tomato); }
.shopchip-body { display: grid; gap: 2px; min-width: 0; }
.shopchip-body b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.shopchip-body span { font-size: 12px; color: var(--muted); font-weight: 500; }
.shopchip-vt { color: var(--tomato) !important; font-weight: 600 !important; }
.shopgroup { margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.shop-more { margin-top: 12px; }
.shop-tell { margin: 12px 0 0; font-size: 12px; }
.shop-tell a, .shop-foot a { color: var(--muted); text-underline-offset: 3px; }
.shop-tell a:hover, .shop-foot a:hover { color: var(--tomato); }
.shop-none { border: 2px dashed var(--hairline); padding: 18px 16px; }
.shop-none p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.shop-none-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 6px; }
.shop-none-links .btn.link { padding: 0; height: 36px; }

.shophead { display: flex; align-items: center; gap: 16px; padding-top: 22px; }
.shophead h1 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.15; margin: 4px 0 0; overflow-wrap: anywhere; }
.shophead .meta { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.shop-intro { margin: 16px 0 0; font-size: 15px; line-height: 1.65; font-weight: 500; word-break: keep-all; }
.shop-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.shop-actions .btn { flex: 1 1 10rem; }
.shop-rest, .shop-draft { margin-top: 16px; border: 2px solid var(--t-orange); color: var(--ink); padding: 12px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.55; }
.shop-foot { margin: 22px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.shop-manage { display: inline-block; margin-top: 14px; }
.shop-review .byline a { color: var(--ink); text-underline-offset: 3px; }

/* 관리 화면 */
.admin-form { display: grid; gap: 14px; margin-top: 8px; }
.admin-form .field { display: grid; gap: 6px; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form input:not([type]), .admin-form textarea {
  width: 100%; border: 1px solid var(--line); padding: 12px 13px; background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 500; }
.admin-form textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.admin-form .hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.admin-form details summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--tomato); }
.admin-form details p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.admin-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; cursor: pointer; }
.admin-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tomato); flex: 0 0 auto; }
.logo-row { display: flex; align-items: center; gap: 14px; }
.admin-ok { border: 1px solid var(--line); background: var(--ink); color: var(--butter); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-top: 12px; }
.admin-status { font-size: 12.5px; font-weight: 600; margin: 4px 0 0; }
.admin-status.on { color: var(--tomato); }
.admin-status.off { color: var(--muted); }
.admin-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.admin-sum span { border: 1px solid var(--line); padding: 6px 10px; font-size: 12.5px; font-weight: 600; }
.admin-sum span.warn { border-color: var(--t-orange); color: var(--t-orange); }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1.5px solid var(--hairline); }
.admin-row .w { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.admin-row .w b { font-weight: 600; }
.admin-row .w small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.admin-row .btn.link { padding: 0 4px; height: 36px; font-size: 13px; }
.admin-row input[type="checkbox"], .admin-row input[type="radio"] { width: 20px; height: 20px; accent-color: var(--tomato); flex: 0 0 auto; }
.admin-group { margin-top: 18px; }
.admin-group > h3 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 16px; margin: 0 0 4px; }
.admin-group > p { margin: 0 0 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.cand-list { display: grid; gap: 2px; margin: 6px 0 0 4px; }
.cand-list label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.cand-list input { margin-top: 1px; }
.cand-src { font-size: 13px; font-weight: 600; }
.cand-src small { color: var(--muted); font-weight: 500; }
.diffbar { position: sticky; bottom: 76px; z-index: 5; margin-top: 18px; background: var(--ink); color: var(--butter);
  padding: 14px 16px; display: grid; gap: 10px; }
.diffbar p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.diffbar .btn { background: var(--tomato); }
.invite-box { margin-top: 10px; border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.invite-box code { font-size: 12.5px; word-break: break-all; }
.req-card { border: 1px solid var(--line); padding: 13px 14px; margin-top: 10px; display: grid; gap: 6px; font-size: 13px; line-height: 1.55; }
.req-card.done { border-color: var(--hairline); color: var(--muted); }
.req-card b { font-size: 15px; }
.req-card .formrow { flex-wrap: wrap; }
.req-card .btn.link { padding: 0; height: 34px; }
.me-shops { display: grid; gap: 8px; margin: -6px 0 18px; }

/* 숍 관리자가 남긴 한 줄 — 판매자임을 드러낸다 */
.sellerbadge { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 3px 9px 3px 3px;
  border: 1px solid var(--line); font-size: 12px; color: var(--ink); max-width: 100%; }
.sellerbadge .shoplogo { border-width: 1.5px; }
.sellerbadge b { font-weight: 700; }
.sellerbadge:hover { border-color: var(--tomato); }
.shopchip-quote { color: var(--ink) !important; font-weight: 500 !important; font-size: 12.5px !important; margin-top: 3px;
  overflow-wrap: anywhere; }
.seller-note { margin-top: 8px; color: var(--ink); }

/* ── 68 테마 ── 종이 · 파란 잉크 · 마스킹테이프 ─────────────────────────
   로고 「SIP SIP hooray!」(캔버스 68번)에 맞춰 사이트 전체를 다시 입힌다.
   고딕(Unbounded)은 박자, 이탤릭 세리프(Fraunces)는 손글씨. 테이프 색은 글자 뒤 바탕으로만 쓰고,
   그 위 글자는 파란 잉크다. 빛나는 효과와 검은 그림자는 쓰지 않는다. */

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 44, 255, .05) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
body::after { display: none; }   /* 리소 그레인은 걷어낸다 */
::selection { background: var(--tape-lime); color: var(--blue); }

/* 테이프 — 비치는 마스킹테이프, 양끝은 손으로 찢은 모양 */
.tp {
  display: inline-block; white-space: nowrap; line-height: 1; color: var(--blue);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 5px, transparent 5px 11px);
  clip-path: polygon(0 4%, 100% 0, 98% 22%, 100% 44%, 98% 66%, 100% 88%, 99% 100%, 0 96%, 2% 76%, 0 54%, 2% 32%, 0 12%);
}
.tp.g { font-family: 'Unbounded', system-ui, sans-serif; font-weight: 900; letter-spacing: -.04em; }
.tp.s { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.tp.lime { background-color: var(--tape-lime); }
.tp.cyan { background-color: var(--tape-cyan); }
.tp.pink { background-color: var(--tape-pink); color: #FFFFFF; }
.tp.yellow { background-color: var(--tape-yellow); }
.tp.orange { background-color: var(--tape-orange); }

/* 머리 로고 — 68의 한 줄형. 글자가 아닌 곳(옛 페이지)에서는 파란 고딕 글자로 남는다 */
.wordmark {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 900; font-size: 16px;
  letter-spacing: -.03em; color: var(--blue);
}
.wordmark .tp { filter: drop-shadow(0 2px 2px rgba(26, 20, 64, .16)); }
.wordmark .tp.g { font-size: 12.5px; padding: 5px 8px 6px; }
.wordmark .tp.s { font-size: 19px; padding: 1px 10px 5px; margin-left: 2px; }
.wordmark .tp:nth-child(1) { transform: rotate(-3deg); }
.wordmark .tp:nth-child(2) { transform: rotate(2deg) translateY(-2px); }
.wordmark .tp:nth-child(3) { transform: rotate(-2deg) translateY(1px); }

/* 홈 머리글 — 리소 주황 판 대신 종이 위에 파란 글씨, 단어 뒤에 테이프 */
.hero { background: none; color: var(--text); padding: 22px 0 8px; margin-top: 12px; }
.hero h1 { color: var(--blue); text-shadow: none; }
.hero h1 .hl {
  display: inline-block; padding: .04em .2em .12em; margin: .04em 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 5px, transparent 5px 11px);
  clip-path: polygon(0 4%, 100% 0, 98% 22%, 100% 44%, 98% 66%, 100% 88%, 99% 100%, 0 96%, 2% 76%, 0 54%, 2% 32%, 0 12%);
}
.hero h1 .hl.lime { background-color: var(--tape-lime); transform: rotate(-1.5deg); }
.hero h1 .hl.pink { background-color: var(--tape-pink); color: #FFFFFF; transform: rotate(1.5deg); }
.hero p, .hero .pitch { opacity: 1; color: var(--text); }
#heroTally { color: var(--muted); }

/* 카드 · 목록 — 흰 종이 한 장씩, 얇은 선과 둥근 모서리 */
.card, .list, .winecard, .related, .prodrow, .storycard, .avgbox, .vintages, .taste, .taste-pick,
.jotbox, .results, .hits, .newform, .newprod, .shopchip, .req-card, .invite-box, .stat, .articlebox,
.doc .box, .searchcue, .actbtn, .me-mail, .grape-suggest, .admin-sum span, .dupes {
  border-radius: 14px;
}
.list, .results, .hits, .taste, .taste-pick, .vintages, .storycard { overflow: hidden; }
.grape-suggest { border-top: 1px solid var(--line); margin-top: 4px; overflow: hidden; }
.empty, .story-add, .addcue, .shop-none, .label-add { border-radius: 14px; border-width: 1.5px; }
.card, .winecard, .related, .prodrow, .storycard, .shopchip, .searchcue, .actbtn {
  box-shadow: 0 1px 0 rgba(26, 20, 64, .04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover, .winecard:hover, .related:hover, .prodrow:hover, .storycard:hover, .shopchip:hover, .searchcue:hover {
  border-color: #CFC4AE; box-shadow: 0 6px 16px rgba(26, 20, 64, .07);
}
.thumb { border-radius: 8px; }
.label-photo { border-radius: 12px; }
.shoplogo { border-radius: 12px; }
.sc-cover { border-bottom: 1px solid var(--line); }
.a-cover img { border-radius: 14px; }

/* 버튼 — 알약 모양. 기본은 남색, 주 행동은 파란 잉크 */
.btn { border-radius: 999px; background: var(--text); color: #FFFFFF; }
.btn.tomato { background: var(--blue); }
.btn.tomato:hover { background: var(--blue-dark); }
.btn:disabled { background: var(--line); color: #9C97A8; }
.btn.square { border-radius: 14px; background: var(--surface); color: var(--text); }
.btn.link { background: none; color: var(--blue); }
.actions { background: var(--paper); }

/* 칩 — 알약, 고르면 파란 잉크 */
.chip { border-radius: 999px; background: var(--surface); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

/* 입력칸 */
.textbox, .search, .newform input, .newform select, .newprod input, .ko-form input,
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form input:not([type]), .admin-form textarea {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.textbox:focus, .search:focus, .newform input:focus, .newform select:focus, .newprod input:focus, .ko-form input:focus,
.admin-form input:focus, .admin-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 44, 255, .12);
}

/* 숫자 — 별점과 평균은 고딕 박자로 */
.score, .avgbox .avg .n, .vt-row .sc, .ratinglabel, .rate-mine b {
  font-family: 'Unbounded', 'Black Han Sans', sans-serif; font-weight: 800; letter-spacing: -.04em;
}
.score.lg { letter-spacing: -.05em; }

/* 별점 칸 */
.rating .block i { border: 1.5px solid #D9CFBB; border-radius: 9px; background: var(--surface); }
.rating .block i.full { background: var(--blue); border-color: var(--blue); }
.rating .block i.half {
  background: linear-gradient(to right, var(--blue) 0 50%, var(--surface) 50% 100%); border-color: var(--blue);
}

/* 맛 눈금 */
.taste-row .scale i { border: 1.5px solid #D9CFBB; border-radius: 4px; background: var(--surface); }
.taste-row .scale i.on { background: var(--blue); border-color: var(--blue); }
.taste-pick .opts button { border-radius: 999px; background: var(--surface); }

/* 파란 판 — 평균 점수, 고른 생산자, 이달의 한 줄 */
.scorebox, .stat.hl, .picked, .note-line, .me-note, .storycard.lead, .joinband, .diffbar {
  border-radius: 18px; border-color: transparent;
}
.scorebox .score { text-shadow: none; color: #FFFFFF; }
.note-line, .me-note, .storycard.lead, .joinband, .diffbar { background: var(--blue); color: #FFFFFF; }
.storycard.lead:hover, .storycard.lead:focus-visible { background: var(--blue-dark); }
.storycard.lead .sc-meta b { color: var(--tape-lime); }
.joinband .btn, .diffbar .btn { background: #FFFFFF; color: var(--blue); }
.admin-ok { border-radius: 12px; }
.avatar, .shoplogo.initial { background: var(--blue); color: #FFFFFF; }

/* 꼬리표 — 종류 점, 검수 전 테이프 */
.swatch { border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(26, 20, 64, .18); }
.swatch.sparkling { background: var(--t-sparkling); }
.tag { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tag.on { color: var(--blue); border-color: var(--blue); }
.tag.pending {
  border: 0; border-radius: 0; color: var(--text); padding: 3px 9px 4px;
  background-color: var(--tape-orange);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 5px, transparent 5px 11px);
  clip-path: polygon(0 4%, 100% 0, 97% 22%, 100% 44%, 97% 66%, 100% 88%, 98% 100%, 0 96%, 3% 76%, 0 54%, 3% 32%, 0 12%);
}
.list-row .head .vt, .fchips span { border-radius: 999px; }
.fw { border-radius: 999px; }
.admin-sum span.warn { color: var(--text); border-color: var(--tape-orange); }
.shop-rest, .shop-draft { border-radius: 12px; }

/* 공감 — 하트만 핑크 */
.likebtn[aria-pressed="true"] svg { stroke: var(--tape-pink); fill: var(--tape-pink); }
.likebtn[aria-pressed="true"] span { color: var(--tape-pink); }

/* 아래 길잡이 — 흰 막대, 가운데 쓰기 버튼은 핑크 테이프 한 장 */
.tabbar { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.tabbar a.on, .tabbar a.tab-write { color: var(--blue); }
.tabbar a.tab-write svg {
  background: var(--tape-pink); color: #FFFFFF; border-radius: 0; transform: rotate(-4deg);
  clip-path: polygon(0 4%, 100% 0, 96% 22%, 100% 44%, 96% 66%, 100% 88%, 98% 100%, 0 96%, 4% 76%, 0 54%, 4% 32%, 0 12%);
}

/* 넓은 화면 홈 — 왼쪽 판도 종이 */
@media (min-width: 980px) {
  body.home .topbar { border-bottom: 1px solid var(--line); background: rgba(255, 246, 230, .92); }
  body.home .wordmark .tp.g { font-size: 15px; padding: 6px 10px 7px; }
  body.home .wordmark .tp.s { font-size: 24px; padding: 1px 12px 6px; }
  body.home .panel { background: transparent; color: var(--text); border-right: 1px solid var(--line); }
  body.home .panel .hero { padding: 0; margin: 0; }
  body.home .panel .hero h1 { text-shadow: none; }
  body.home .panel .chip { border-color: var(--line); }
  body.home .panel .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
  body.home .panel .tally { color: var(--muted); opacity: 1; }
}
