/* www.alrimi.click — oopy 화면을 맞추기 위한 스타일.
   값은 oopy 가 그린 페이지의 계산 스타일을 재서 옮겼다(site/baseline). oopy 의 CSS 파일을 복사하지 않았다. */

:root {
  scrollbar-gutter: stable;
  --emoji-font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  --page-max-width: 900px;
  --content-max-width: 708px;
  --page-cover-height: 30vh;
  --page-header-font-size: 40px;
  --page-content-padding-bottom: 10vh;
  --nav-active: rgb(29, 154, 207);
  --code-bg: rgba(135, 131, 120, 0.15);
  --code-fg: rgb(235, 87, 87);
  --video-bg: rgb(63, 68, 71);
  --plink-fill: rgb(55, 53, 47);
  --plink-stroke: rgb(255, 255, 255);
}
:root .padding { --gutter: clamp(24px, calc((100% - 708px) / 2), 96px); padding-left: calc(var(--gutter) + env(safe-area-inset-left)); padding-right: calc(var(--gutter) + env(safe-area-inset-right)); }
:root .width { max-width: 100%; width: var(--page-max-width); }
@media (max-width: 480px) {
  :root { --page-cover-height: 200px; --page-header-font-size: 32px; --page-content-padding-bottom: 56px; }
  :root .padding { padding-left: calc(24px + env(safe-area-inset-left)); padding-right: calc(24px + env(safe-area-inset-right)); }
  :root .width { max-width: 100%; width: 100%; }
}

/* ── 테마 ─────────────────────────────────────────────── */
html[data-theme="dark"], html:not([data-theme]) {
  color-scheme: dark;
  --fg: rgba(255, 255, 255, 0.9);
  --fg-60: rgba(255, 255, 255, 0.6);
  --fg-40: rgba(255, 255, 255, 0.4);
  --bg: rgb(47, 52, 55);
  --hover: rgb(71, 76, 80);
  --active: rgb(63, 68, 71);
  --divider: rgba(255, 255, 255, 0.07);
  --link-underline: rgba(255, 255, 255, 0.4);
  --plink-border: rgba(255, 255, 255, 0.14);
  --placeholder: rgba(255, 255, 255, 0.9);
  --placeholder-fill: rgba(255, 255, 255, 0.25);
  --nav-bg: rgb(47, 52, 55);
  --nav-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.2);
  --switch-bg: rgb(241, 201, 69);
  --switch-x: 28.5px;
  --moon: 1; --sun: 0;
  --c-gray: rgba(151, 154, 155, 0.95); --c-brown: rgb(147, 114, 100); --c-orange: rgb(255, 163, 68); --c-yellow: rgb(255, 220, 73);
  --c-teal: rgb(77, 171, 154); --c-blue: rgb(82, 156, 202); --c-purple: rgb(154, 109, 215); --c-pink: rgb(226, 85, 161); --c-red: rgb(255, 115, 105);
  --bg-gray: rgb(60, 65, 68); --bg-brown: rgb(76, 61, 53); --bg-orange: rgb(85, 59, 41); --bg-yellow: rgb(79, 64, 41);
  --bg-teal: rgb(46, 68, 60); --bg-blue: rgb(45, 66, 86); --bg-purple: rgb(69, 58, 91); --bg-pink: rgb(81, 56, 65); --bg-red: rgb(89, 65, 65);
}
html[data-theme="light"] {
  color-scheme: light;
  --fg: rgb(55, 53, 47);
  --fg-60: rgba(55, 53, 47, 0.6);
  --fg-40: rgba(55, 53, 47, 0.4);
  --bg: white;
  --hover: rgba(55, 53, 47, 0.08);
  --active: rgba(55, 53, 47, 0.16);
  --divider: rgba(55, 53, 47, 0.09);
  --link-underline: rgba(55, 53, 47, 0.4);
  --plink-border: rgba(55, 53, 47, 0.16);
  --placeholder: rgb(55, 53, 47);
  --placeholder-fill: rgba(55, 53, 47, 0.2);
  --nav-bg: white;
  --nav-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.05);
  --switch-bg: rgb(210, 210, 210);
  --switch-x: 4.5px;
  --moon: 0; --sun: 1;
  --c-gray: rgb(120, 119, 116); --c-brown: rgb(100, 71, 58); --c-orange: rgb(180, 90, 0); --c-yellow: rgb(150, 112, 0);
  --c-teal: rgb(15, 123, 108); --c-blue: rgb(11, 110, 153); --c-purple: rgb(105, 64, 165); --c-pink: rgb(173, 26, 114); --c-red: rgb(212, 48, 48);
  --bg-gray: rgb(241, 241, 239); --bg-brown: rgb(244, 238, 238); --bg-orange: rgb(251, 236, 221); --bg-yellow: rgb(251, 243, 219);
  --bg-teal: rgb(221, 237, 234); --bg-blue: rgb(221, 235, 241); --bg-purple: rgb(234, 228, 242); --bg-pink: rgb(244, 223, 235); --bg-red: rgb(251, 228, 228);
}

/* ── 전역 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* oopy 전역 리셋(계산값 실측) — HTML 블록 안 앱 화면(표·검색창·선택 상자)이 이 값에 기댄다 */
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
hr { box-sizing: content-box; height: 0; }
small { font-size: 80%; }
pre, code { font-family: inherit; }
video { display: inline-block; }
html, body { margin: 0; }
body { background-color: var(--bg); overflow-x: hidden; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
* { scroll-margin-top: 100px; }
[role="button"]:not([tabindex="-1"]) { cursor: pointer; }
[role="button"]:not([tabindex="-1"]):hover { background: var(--hover); }
[role="button"]:not([tabindex="-1"]):active { background: var(--active); }
[placeholder]:empty::before { content: attr(placeholder); min-height: 1em; color: var(--placeholder); -webkit-text-fill-color: var(--placeholder-fill); }
@media (max-width: 480px) { [role="button"][tabindex="0"]:active { background: none; opacity: 0.4; } }

/* oopy 는 본문 이모지를 1em × 1em 그림(vertical-align -0.1em)으로 그린다 — 같은 상자에 글자 이모지를 담는다 */
/* 기기 이모지 글자는 1.25em 폭이라 0.8배로 줄여 정확히 1em × 1em(세로 -0.1em)에 맞춘다 */
.emoji { display: inline-block; font-size: 0.8em; width: 1.25em; height: 1.25em; line-height: 1.25em; vertical-align: -0.125em; margin: 0;
  font-family: var(--emoji-font-family); text-align: center; white-space: nowrap; overflow: hidden; } /* hidden → 기준선이 그림처럼 아래 끝 */

/* ── 상단 바 ──────────────────────────────────────────── */
.notion-header { position: -webkit-sticky; position: sticky; top: 0; width: 100%; z-index: 1000000; background-color: var(--bg); }
.notion-topbar { position: relative; width: 100%; height: 45px; padding-right: 8px; z-index: 1; background-color: inherit; }
.share-button { user-select: none; transition: background 20ms ease-in 0s; cursor: pointer; display: inline-flex; align-items: center; flex-shrink: 0;
  white-space: nowrap; height: 28px; border-radius: 3px; font-size: 14px; line-height: 1.2; min-width: 0px; padding-left: 8px; padding-right: 8px; color: var(--fg); }
.share-label { display: none; margin-left: 6px; }
@media (min-width: 480px) { .share-label { display: block; } }
.theme-wrap { display: flex; align-items: center; height: 36px; padding: 0 2px 0 6px; margin-left: 2px; cursor: pointer; }
.react-switch-bg { background: var(--switch-bg); }
.react-switch-handle { transform: translateX(var(--switch-x)); }
.sw-moon { opacity: var(--moon); }
.sw-sun { opacity: var(--sun); }
.notion-page-controls { display: flex; justify-content: flex-start; flex-wrap: wrap; margin-left: -1px; pointer-events: none; height: 24px; margin-top: 8px; margin-bottom: 4px; }
@media (max-width: 480px) { .notion-page-controls { height: auto; margin-top: 16px; margin-bottom: 32px; } }

/* ── 블록 ─────────────────────────────────────────────── */
.blk { width: 100%; }
.blk-full { width: 100%; max-width: 100%; }
.wcap { max-width: calc(100vw - 192px); }
@media (max-width: 480px) { .wcap { max-width: 100%; } }
.rt { max-width: 100%; width: 100%; white-space: pre-wrap; word-break: break-word; padding: 3px 2px; }
.rt-list { max-width: 100%; width: 100%; white-space: pre-wrap; word-break: break-word; padding: 3px 2px; text-align: left; }
.kids { display: flex; flex-direction: column; padding-left: 1.5em; }
.hrow { display: flex; width: 100%; }
.h-1, .h-2, .h-3 { max-width: 100%; width: 100%; white-space: pre-wrap; word-break: break-word; padding: 3px 2px; font-weight: 600; line-height: 1.3; margin: 0; }
.h-1 { font-size: 1.875em; }
.h-2 { font-size: 1.5em; }
.h-3 { font-size: 1.25em; }
@media (max-width: 480px) { .h-1 { font-size: 1.5em; } .h-2 { font-size: 1.25em; } .h-3 { font-size: 1.17em; } }
svg.triangle { width: 0.6875em; height: 0.6875em; display: block; fill: inherit; flex-shrink: 0; backface-visibility: hidden;
  transition: transform 200ms ease-out 0s; opacity: 1; transform: rotateZ(90deg); }
.notion-toggle-block.open svg.triangle { transform: rotateZ(180deg); }
.callout { width: 100%; }
.callout-content { display: flex; padding: 16px 16px 16px 12px; border: 1px solid transparent; border-radius: 4px; width: 100%; }
.callout-icon.v2 { margin-top: 4px; }
.callout-blocks { display: flex; flex-direction: column; margin-left: 8px; overflow: hidden; min-width: 0; flex: 1 1 auto; }
.callout-title { padding: 0 2px; max-width: 100%; white-space: pre-wrap; word-break: break-word; }
.callout-blocks > .blk, .callout-blocks > .blk-full { max-width: 100%; }
.html-block { display: block; width: 100%; margin: 4px 0; }
/* oopy 가 AdSense 설정으로 넣는 광고 슬롯 크기(표준 배너 320·468×60 / 728×90). 광고가 채워지면 AdSense 인라인 크기가 덮어쓴다 */
.adsbygoogle { height: 60px; }
@media (min-width: 500px) { .adsbygoogle { width: 468px; height: 60px; } }
@media (min-width: 800px) { .adsbygoogle { width: 728px; height: 90px; } }
.oopy-footer { display: flex; align-items: center; justify-content: space-between; margin: 10vh 0 30px; width: 100%; }
.media-img { display: block; object-fit: cover; border-radius: 0px; width: 100%; height: auto; pointer-events: auto; }
.video-el { display: block; width: 100%; pointer-events: none; background-color: var(--video-bg); }
.video-play { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-playing .video-el { pointer-events: auto; }
.video-playing .video-play { display: none; }
@media (max-width: 480px) { .video-el { pointer-events: auto; } .video-play { display: none; } }
.col-row { display: flex; }
.col { padding-top: 12px; padding-bottom: 12px; flex-grow: 0; flex-shrink: 0; }
@media (max-width: 480px) { .col-row { display: block; } .col { width: 100% !important; } }
.caption { padding: 6px 2px 6px; font-size: 14px; line-height: 1.4; color: var(--fg-60); }
.notion-code-block pre { margin: 0; padding: 32px 16px; background: var(--code-bg); border-radius: 3px; overflow: auto; }

/* ── 하단 탭 ──────────────────────────────────────────── */
.mobile-navigator { position: fixed; bottom: 0; width: 100%; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); margin-top: 4px; background-color: var(--nav-bg); box-shadow: var(--nav-shadow); z-index: 100000; }
.nav-inner { display: flex; max-width: 780px; height: 56px; margin: 0 auto; }
.mobile-navigator-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  color: var(--fg); transition: 300ms; }
.mobile-navigator-tab:hover, .mobile-navigator-tab.active { color: var(--nav-active); }
.nav-label { font-size: 12px; }

/* ── "알리미 이용하기" 고정 버튼(원래 site.json head 스크립트에 있던 스타일) ── */
#item_link { position: fixed; bottom: calc(56px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0 auto; display: flex; align-self: center; align-items: center; justify-content: center;
  width: 88%; max-width: 708px; height: 48px; color: rgb(0, 0, 0); background-color: rgb(95, 203, 228); text-decoration: none; border-radius: 8px;
  font-weight: 700; font-size: 16px; transition: all 0.3s ease 0s; box-shadow: rgb(55 53 47 / 40%) 0px 0px 4px 2px;
  animation: 0.8s ease 0s 1 normal none running fadeIn; z-index: 100000000; }

/* ── 상품 목록(site/static/lists.js) ─────────────────────── */
.al-list { --al-accent: rgb(95, 203, 228); --al-line: var(--plink-border); width: 100%; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--fg); }
.al-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0 0 18px; }
.al-row { display: flex; gap: 8px; align-items: center; flex: 1 1 100%; min-width: 0; }
.al-row > * { flex: 1 1 0; min-width: 0; }
.al-row > select, .al-row > input { width: 100%; }
.al-price-range > span { flex: 0 0 auto; color: var(--fg-60); }
.al-filters select, .al-filters input { height: 40px; padding: 0 12px; border: 1px solid var(--al-line); border-radius: 8px; background: var(--bg);
  color: var(--fg); font-size: 15px; outline: none; }
.al-filters input::placeholder { color: var(--fg-40); }
.al-filters select:focus, .al-filters input:focus { border-color: var(--al-accent); }
.al-search button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--al-accent); color: #000; font-weight: 700; font-size: 15px; cursor: pointer; }
.al-search button svg { width: 18px; height: 18px; }
/* 한 줄에 PC 4 · 태블릿 3 · 모바일 2. 꽉 찬 줄은 폭을 채우고, 덜 찬 마지막 줄(핫딜처럼 몇 개뿐일 때)은 묶음째 가운데 —
   왼쪽으로 몰리지도, 칸마다 떨어지지도 않게 */
.al-grid { --cols: 2; --gap-x: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px var(--gap-x); margin: 0; padding: 0; list-style: none; }
.al-card { display: flex; flex-direction: column; min-width: 0; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols)); }
@media (min-width: 600px) { .al-grid { --cols: 3; --gap-x: 16px; row-gap: 22px; } }
@media (min-width: 900px) { .al-grid { --cols: 4; } }
.al-thumb { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; }
html[data-theme="dark"] .al-thumb, html:not([data-theme]) .al-thumb { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
html[data-theme="light"] .al-thumb { box-shadow: 0 0 0 1px rgba(55, 53, 47, 0.09); }
.al-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.al-info { display: flex; flex-direction: column; flex: 1; padding: 8px 2px 0; }
.al-name { color: var(--fg); text-decoration: none; font-size: 14px; line-height: 1.4; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.al-name:hover { text-decoration: underline; }
.al-badge { color: var(--c-red); font-weight: 700; }
.al-rows { margin: 6px 0 0; font-size: 12.5px; color: var(--fg-60); }
.al-rows > div { display: flex; gap: 6px; }
.al-rows dt { flex: 0 0 auto; }
.al-rows dt::after { content: " :"; }
.al-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.al-drop { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--c-red); }
.al-price { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--c-red); }
.al-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.al-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; border: 1px solid var(--al-line);
  color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.al-btn:hover { background: var(--hover); }
.al-btn-main { flex-grow: 1.4; border-color: transparent; background: var(--al-accent); color: #000; }
.al-btn-main:hover { background: rgb(120, 214, 236); }
@media (max-width: 374px) { .al-btn .al-ico { display: none; } .al-actions { gap: 4px; } .al-btn { font-size: 12px; } }
.al-status { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 8px; color: var(--fg-60); font-size: 14px; }
.al-status a { color: inherit; }
.al-status button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--al-line); background: none; color: var(--fg); cursor: pointer; }
.al-empty { min-height: 120px; }
.al-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fg-40); border-top-color: transparent; animation: al-spin 0.8s linear infinite; }
@keyframes al-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .al-btn { font-size: 12.5px; }
}

/* ── 가격 차트(/item, site/content/html/item.html) ─────────── */
.pc { margin: 4px 0 0; }
.pc-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; font-size: 15px; }
.pc-table th, .pc-table td { padding: 11px 12px; text-align: left; font-weight: 500; vertical-align: top; }
.pc-table th { width: 22%; white-space: nowrap; }
.pc-table tr:nth-child(odd) { background: var(--bg-gray); }
.pc-table tr:nth-child(even) { background: var(--hover); }
.pc-low { color: var(--c-blue); }
.pc-high { color: var(--c-red); }
.pc-up { color: var(--c-red); }
.pc-down { color: var(--c-blue); }
.pc-chart { min-height: 340px; margin-top: 8px; }
.pc-msg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 200px; margin: 0; color: var(--fg-60); text-align: center; }
.pc-msg a { color: inherit; }
.pc-chart .apexcharts-tooltip { color: var(--fg); }
#detail_item_link { position: fixed; bottom: calc(56px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0 auto; display: flex; gap: 2px; width: 88%; max-width: 708px; height: 48px; z-index: 100000000; }
#detail_item_link .cta { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; height: 48px; color: rgb(0, 0, 0); text-decoration: none;
  border-radius: 8px; font-weight: 700; font-size: 16px; box-shadow: rgb(55 53 47 / 40%) 0px 0px 4px 2px; animation: 0.8s ease 0s 1 normal none running fadeIn; }
#detail_item_link_alrimi { background-color: rgb(255, 220, 73); }
#detail_item_link_shop { background-color: rgb(95, 203, 228); }
#detail_item_link .cta[hidden] { display: none; }
@media (max-width: 480px) { .pc-table { font-size: 14px; } .pc-table th, .pc-table td { padding: 10px 8px; } #detail_item_link .cta { font-size: 15px; } }

/* ── 페이지 머리(아이콘·제목) — 노션은 아이콘 78px(그림 124px) + 위 여백 96px 로 첫 화면의 1/3 을 썼다 ── */
.page-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start; position: relative; z-index: 1;
  margin: 48px 0 0 3px; user-select: none; }
.page-icon-img { width: 88px; height: 88px; }
.page-icon-img img { display: block; width: 80px; height: 80px; border-radius: 8px; }
.page-icon-emoji { width: 64px; height: 64px; font-size: 60px; line-height: 1.1; }
.page-icon-emoji span { font-family: var(--emoji-font-family); line-height: 1em; white-space: nowrap; }
@media (max-width: 480px) {
  :root { --page-header-font-size: 28px; }
  .page-icon { margin-top: 20px; }
  .page-icon-img { width: 60px; height: 60px; }
  .page-icon-img img { width: 56px; height: 56px; }
  .page-icon-emoji { width: 48px; height: 48px; font-size: 44px; }
  .notion-page-controls { margin-top: 8px; margin-bottom: 8px; }
}

/* ── 상단 바(로고 · PC 메뉴 · 공유 · 테마) — 2026-11-24 전에는 breadcrumb 만 있었다 ── */
.tb-inner { --gutter: clamp(24px, calc((100% - 708px) / 2), 96px); display: flex; align-items: center; gap: 12px; height: 45px; max-width: 900px; margin: 0 auto;
  padding: 0 calc(var(--gutter) - 6px + env(safe-area-inset-right)) 0 calc(var(--gutter) + env(safe-area-inset-left)); }
.notion-topbar { padding-right: 0; }
.tb-link { display: none; padding: 6px 10px; border-radius: 6px; color: var(--fg-60); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tb-link:hover { color: var(--fg); background: var(--hover); }
.tb-link.active { color: var(--nav-active); }
@media (min-width: 600px) { .tb-link { display: inline-block; } }
.brand { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand img { display: block; width: 22px; height: 22px; border-radius: 5px; }
.tb-actions { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }

/* ── 제목 위 상위 페이지 · 페이지 머리 ── */
.page-head { display: flex; flex-direction: column; width: 100%; align-items: center; flex-shrink: 0; flex-grow: 0; }
.page-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 28px 0 -28px 3px; font-size: 14px; color: var(--fg-60); }
.page-crumbs a { color: inherit; text-decoration: none; }
.page-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumb-sep { color: var(--fg-40); }
@media (max-width: 480px) { .page-crumbs { margin: 14px 0 -12px 3px; font-size: 13px; } }

/* ── 목차(긴 안내 페이지) ── */
.toc { margin: 8px 0 12px; padding: 10px 14px; border: 1px solid var(--plink-border); border-radius: 8px; font-size: 15px; }
.toc summary { cursor: pointer; padding: 6px 0; font-weight: 600; color: var(--fg-60); }
.toc ol { margin: 8px 0 2px; padding-left: 20px; }
.toc li { margin: 3px 0; }
.toc .toc-l1 { margin-left: 14px; list-style: circle; }
.toc .toc-l2 { margin-left: 28px; list-style: square; }
.toc a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--link-underline); }

/* ── 바닥글 ── */
.oopy-footer { margin: 56px 0 24px; }
.site-footer { width: 100%; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--divider); color: var(--fg-60); font-size: 14px; }
.sf-brand { font-weight: 700; color: var(--fg); }
.sf-bots, .sf-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.sf-note { margin: 4px 0 0; font-size: 13px; color: var(--fg-40); }

/* ── "알리미 이용하기" 고정 버튼: 내려 읽는 동안 숨김(site.js) · 본문 끝이 버튼에 가리지 않게 ── */
#item_link { transition: transform 0.25s ease, opacity 0.25s ease; }
html.cta-off #item_link, html.cta-hero #item_link { transform: translateY(calc(100% + 72px)); opacity: 0; pointer-events: none; }
body:has(#item_link), body:has(#detail_item_link) { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

/* ── 본문 그림: 경계(다크 모드의 흰 캡처 · 라이트 모드의 어두운 캡처가 배경과 섞이지 않게) ── */
.media-img { border-radius: 8px; box-shadow: 0 0 0 1px var(--divider); }
.col .media-img { border-radius: 6px; }

/* ── 홈 소개(site/content/html/home-hero.html): 글 + 실제 알림 말풍선. 대담한 곳은 말풍선의 하락 금액 한 곳뿐 ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 4px 0 32px; }
.hero-lead { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.hero-sub { margin: 0 0 16px; color: var(--fg-60); font-size: 15.5px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; }
.hero-tg { background: rgb(95, 203, 228); color: #000; }
.hero-tg:hover { background: rgb(120, 214, 236); }
.hero-line { border: 1px solid var(--plink-border); color: var(--fg); }
.hero-line:hover { background: var(--hover); }
.hero-note { margin: 10px 0 0; font-size: 13px; color: var(--fg-40); }
.hero-links { margin: 14px 0 0; font-size: 15px; color: var(--fg-60); }
.hero-links a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--link-underline); }
.hero-alert { margin: 0; align-self: center; }
.ha-bubble { position: relative; padding: 12px 14px 22px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; line-height: 1.5; }
html[data-theme="dark"] .ha-bubble, html:not([data-theme]) .ha-bubble { background: rgb(33, 45, 59); color: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .ha-bubble { background: rgb(244, 246, 248); color: rgb(30, 34, 40); box-shadow: 0 0 0 1px var(--divider); }
.ha-name { margin: 0; font-weight: 700; }
.ha-msg { margin: 2px 0 8px; }
.ha-rows { margin: 0; }
.ha-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.ha-rows dt, .ha-rows dd { margin: 0; }
.ha-drop { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(127, 127, 127, 0.25); font-weight: 800; font-size: 16px; color: var(--c-red); }
.ha-time { position: absolute; right: 12px; bottom: 5px; font-size: 11.5px; opacity: 0.55; }
.hero-alert figcaption { margin-top: 8px; font-size: 13px; color: var(--fg-40); }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (max-width: 480px) {
  .hero-lead { font-size: 20px; }
  .hero-btn { flex: 1 1 100%; }
}

/* ── 목록 페이지는 넓게: 제목 · 안내 · 필터 · 상품이 같은 왼쪽 선에서 시작(2026-11-24 수정 — 목록만 본문 밖으로 튀어나와 줄이 어긋났다) ── */
.page-wide .width { width: 1040px; }
.page-wide .tb-inner { max-width: 1040px; --gutter: clamp(24px, calc((100% - 960px) / 2), 40px); }
.page-wide .wcap { max-width: 100%; }
.page-wide .padding { --gutter: clamp(24px, calc((100% - 960px) / 2), 40px); }
@media (min-width: 720px) {
  .al-row { flex: 0 0 auto; }
  .al-row > * { flex: 0 0 auto; }
  .al-row > select { width: 160px; }
  .al-price-range > input { width: 120px; }
  .al-search > input { width: 260px; }
}

/* ── 품질 기준(frontend-design 1.1.1): 키보드 초점 보이기 · 움직임 줄이기 설정 존중 · 가격 숫자 자리 맞춤 ── */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--nav-active); outline-offset: 2px; border-radius: 4px; }
.al-filters select:focus-visible, .al-filters input:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.al-price, .al-drop, .al-rows dd, .pc-table td, .ha-rows dd { font-variant-numeric: tabular-nums; }

/* 누르는 곳 36px 이상(공유 · 테마) — 보이는 크기는 그대로 */
.share-button { height: 36px; min-width: 36px; justify-content: center; }

/* 가로로 눕힌 휴대폰(높이 480px 이하): "이용하기" 고정 버튼이 화면의 1/4 을 가려서 숨긴다(하단 탭은 유지) */
@media (max-height: 480px) and (orientation: landscape) { #item_link { display: none; } body:has(#item_link) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }
