/* 퇴근하고 자취방 링크 페이지 — 폰 한 화면 폭의 가운데 기둥: 고지 → 공유 → 프로필 → 강조 버튼 → 검색·칩 → 상품 카드 → 문의 */
:root {
  --bg: #F3F5FA;
  --card: #FFFFFF;
  --ink: #1A2238;
  --muted: #5F6884;
  --line: #E1E5F0;
  --honey: #FFB21A;
  --honey-ink: #3A2600;
  --honey-soft: #FFF1CF;
  --display: "Jua", "IBM Plex Sans KR", system-ui, sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
/* 11-30: 상품 사진(흰 바탕)과 어울리게 밝은 화면으로 고정 */
:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { word-break: keep-all; overflow-wrap: anywhere; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 40px;
}
.col { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

/* 프로필 */
.profile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; }
.avatar svg { width: 52px; height: 52px; }
.name { font-family: var(--display); font-size: 26px; letter-spacing: 0.5px; margin: 4px 0 0; }
.bio { color: var(--muted); margin: 0; max-width: 32ch; text-wrap: balance; }
.handles { display: flex; gap: 10px; }
.handles a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); }
.handles svg { width: 18px; height: 18px; }

/* 바로가기 버튼 */
.links { display: flex; flex-direction: column; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; text-align: left; width: 100%; }
.btn small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.btn.hot { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); }
.btn.hot small { color: var(--honey-ink); opacity: .8; }
.btn .arrow { flex: none; font-family: var(--display); font-size: 20px; }
.btn:focus-visible, .chip:focus-visible, .item:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* 칩 */
h2 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0; }
.section { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-head span { color: var(--muted); font-size: 13px; }
.filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; flex-direction: column; gap: 10px; padding-block: 8px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 11px 0; outline: none; }
.search:focus-within { border-color: var(--honey); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; }
.no { position: absolute; top: 8px; right: 8px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; font: inherit; padding: 0; }
.thumb { aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; background: var(--honey-soft); position: relative; }
.thumb svg { width: 54%; height: 54%; color: var(--ink); }
.tag { position: absolute; top: 8px; left: 8px; background: var(--card); color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fit { font-size: 13px; color: var(--muted); line-height: 1.45; }
.title { font-weight: 600; font-size: 14px; line-height: 1.4; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }


.disclose { display: flex; align-items: flex-start; gap: 8px; background: var(--honey-soft); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5; margin: 0; }
.disclose b { flex: none; margin-top: 1px; background: var(--ink); color: var(--bg); font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.topbar { display: flex; justify-content: flex-end; }
.share { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.share svg { width: 16px; height: 16px; }
.share:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.biz { display: flex; flex-direction: column; gap: 10px; }
.biz-open { align-self: center; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.biz-open:focus-visible, .biz form button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.biz form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.biz h2 { font-size: 19px; }
.biz p.lead { margin: 0; color: var(--muted); font-size: 13px; }
.biz label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.biz label span.opt { font-weight: 400; color: var(--muted); }
.biz input, .biz select, .biz textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.biz textarea { min-height: 96px; resize: vertical; }
.biz input:focus, .biz select:focus, .biz textarea:focus { outline: none; border-color: var(--honey); }
.biz .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.biz .send { background: var(--ink); color: var(--card); border: 0; border-radius: 12px; padding: 13px; font: inherit; font-weight: 600; cursor: pointer; }
.biz .done { text-align: center; padding: 8px 0; }
.biz form[hidden] { display: none; }
.search input, .biz input, .biz select, .biz textarea { font-size: 16px; }
.biz .consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--muted); }
.biz .consent input { width: auto; margin-top: 3px; }
.note { margin: 0; font-size: 12px; color: var(--muted); }
html { scroll-padding-top: 120px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 13px; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .item, .btn { transition: transform .15s ease; } .item:hover, .btn:hover { transform: translateY(-2px); } }

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta { font-size: 12px; color: var(--muted); }
.footer { display: flex; justify-content: center; gap: 12px; font-size: 12px; color: var(--muted); }
.footer a { color: var(--muted); }
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.doc { gap: 12px; padding-bottom: 40px; }
.doc h2 { font-size: 18px; margin-top: 8px; }
.doc p, .doc li { color: var(--ink); line-height: 1.7; }
.doc a { color: var(--ink); }
