/* 3.19 · First-visit clarity, search, quiz, product summary and mobile catalog. */
:root { --header-height:108px; }

/* Catalog search hints, empty state, sort hint */
.search-intent-hint, .catalog-sort-hint { font-size:13px; color:var(--muted); margin:-6px 0 14px; line-height:1.7; }
.search-intent-hint { background:var(--iris-wash, #f1edf9); color:var(--ink); padding:12px 16px; border-radius:8px; margin-top:0; }
.search-intent-hint small { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.search-did-you-mean { margin:4px auto 22px; max-width:520px; text-align:left; }
.search-did-you-mean h3 { font-size:15px; font-weight:600; margin-bottom:8px; text-align:center; }
.search-did-you-mean ul { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.search-did-you-mean a { display:flex; flex-direction:column; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:8px; font-size:15px; font-weight:600; }
.search-did-you-mean a small { font-size:12px; font-weight:400; color:var(--muted); }
.empty-state .button-row { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }

/* Filter buttons show their chosen value */
.catalog-refine-controls .refine-value:not(:empty) { margin-left:6px; font-size:12px; font-weight:600; color:var(--green); }
.catalog-refine-controls .refine-value:not(:empty)::before { content:'· '; color:var(--muted); font-weight:400; }
.catalog-sheet-head { display:none; }
.catalog-sheet-backdrop { display:none; }

/* Comparison */
.shared-notes ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:4px; }
.shared-notes li span { font-weight:600; margin-right:8px; }
.shared-notes p { margin-top:6px; }
.comparison-table .compare-remove { display:block; margin-top:6px; }
.comparison-table thead .compare-product strong { display:block; }

/* Product summary */
.breadcrumb { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; white-space:nowrap; overflow:hidden; }
.breadcrumb a:first-child { margin-right:0; flex-basis:auto; margin-bottom:0; }
.breadcrumb > a:last-child { overflow:hidden; text-overflow:ellipsis; }
.product-fit { margin-top:16px; }
.product-impression-line { font-size:15px; line-height:1.75; color:var(--ink); max-width:34em; }
.product-fit dl { margin:14px 0 0; display:grid; gap:8px; }
.product-fit dl > div { display:grid; grid-template-columns:72px 1fr; gap:12px; align-items:baseline; font-size:13px; }
.product-fit dt { color:var(--muted); }
.product-fit dd { margin:0; min-width:0; }
.product-fit-families { display:flex; flex-wrap:wrap; gap:5px; }
.product-price-basis { margin-top:8px; font-size:12px; color:var(--muted); }
.product-buy-link { margin-top:12px; min-height:44px; gap:8px; }
.product-price-unlisted { font-size:13px; color:var(--muted); }
.tab-pair-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; margin-left:6px; padding:0 6px; border-radius:10px; background:var(--soft); font-size:11px; font-weight:600; color:var(--green); }
.product-view-tabs { position:sticky; top:var(--header-height); z-index:5; background:var(--cream); }
.product-view-tabs a { white-space:nowrap; }

/* Quiz */
.fit-quiz .choice-card small { font-size:13px; color:var(--muted); }
.fit-quiz .choice-card strong { font-size:16px; }
.fit-quiz .quiz-controls .button.dark:disabled { background:#9aa79d; opacity:1; color:#fff; }
.fit-result .result-header { text-align:center; }
.result-eyebrow { font-size:13px; font-weight:600; color:var(--iris-ink, #53418e); margin-bottom:6px; }
.taste-summary { font-size:16px; line-height:1.8; max-width:36em; margin:12px auto 0; color:var(--ink); }
.taste-summary strong { color:var(--green); }
.result-note { font-size:13px; color:var(--muted); max-width:36em; margin:10px auto 0; }
.fit-result .result-tags { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:14px; }
.fit-result .fit-reason { font-size:13px; line-height:1.7; color:#3a5242; background:#f1f4ee; padding:10px 12px; border-radius:6px; margin-top:12px; }

/* Community preview for signed-out visitors */
.cm-preview { display:grid; gap:10px; margin:12px 0 18px; }
.cm-preview-post { opacity:.96; }
.cm-preview-more { font-size:13px; color:var(--muted); text-align:center; }
.cm-public-summary { font-size:15px; margin:12px 0 4px; }
.cm-public-summary strong { font-size:18px; }
.cm-preview-empty { margin:12px 0 18px; }

@media (max-width:700px) {
  /* Product page */
  .breadcrumb { margin-bottom:10px; font-size:12px; }
  .product-fit dl > div { grid-template-columns:64px 1fr; }
  /* Photo and name stay side by side; the summary and buy link run full width below. */
  .product-compact .product-overview { align-items:start; }
  .product-compact .product-summary { display:contents; }
  .product-compact .detail-visual { grid-column:1; grid-row:1 / span 5; }
  .product-compact .product-summary > :is(.brand-name, h1, .english-name, .concentration-pill, .compact-product-actions) { grid-column:2; }
  .product-compact .product-summary > .brand-name { margin-top:4px; }
  .product-compact .concentration-pill { justify-self:start; margin-top:6px; }
  .product-compact :is(.product-fit, .product-price-basis, .product-buy-link) { grid-column:1 / -1; order:2; }
  .product-fit { margin-top:6px; }
  .product-view-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; margin-inline:calc(var(--gutter, 18px) * -1); padding-inline:var(--gutter, 18px); }
  .product-view-tabs::-webkit-scrollbar { display:none; }
  .product-buy-link { width:100%; }

  /* Catalog: one-line family chips, filters as a bottom sheet */
  .catalog-page .page-heading h1 { font-size:28px; }
  .catalog-page .catalog-hint { display:none; }
  .catalog-families { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x proximity; margin-inline:-4px; padding:2px 4px 4px; }
  .catalog-families::-webkit-scrollbar { display:none; }
  .catalog-families button { flex:0 0 auto; padding:.3rem .7rem; scroll-snap-align:start; }
  .catalog-refine-controls { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; gap:6px; }
  .catalog-refine-controls button { flex:0 0 auto; border:1px solid #cfd8c8; border-radius:18px; background:#fff; }
  .catalog-panel:not([hidden]) { position:fixed; left:0; right:0; bottom:0; z-index:40; margin:0; max-height:72vh; overflow-y:auto; border-radius:16px 16px 0 0; background:var(--paper); padding:6px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px #1d2b2233; }
  .catalog-sheet-head { display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; background:var(--paper); padding:10px 0 8px; margin-bottom:4px; border-bottom:1px solid var(--line); }
  .catalog-sheet-head strong { font-size:16px; }
  .catalog-sheet-head .subtle-button { min-height:44px; padding-inline:8px; font-size:14px; }
  body.catalog-sheet-open .catalog-sheet-backdrop { display:block; position:fixed; inset:0; z-index:39; background:#1d2b2266; border:0; padding:0; }
  body.catalog-sheet-open { overflow:hidden; }
  .catalog-toolbar { padding:16px; }
}

/* Quiz scent choices: each family keeps its own colour and icon, as in the catalog. */
.quiz-scent-icon { flex:none; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%;
  background:color-mix(in srgb,var(--family-color) 55%,var(--paper)); color:var(--family-ink,#755b44); }
.quiz-scent-icon svg { width:20px; height:20px; }
.quiz-scent-icon[data-family="woody"] { --family-ink:#755b44; }
.quiz-scent-icon[data-family="floral"] { --family-ink:#995673; }
.quiz-scent-icon[data-family="citrus"] { --family-ink:#95611d; }
.quiz-scent-icon[data-family="green"] { --family-ink:#4b7245; }
.quiz-scent-icon[data-family="musk"] { --family-ink:#786383; }
.quiz-scent-icon[data-family="amber"] { --family-ink:#a55b2d; }
.quiz-scent-icon[data-family="aquatic"] { --family-ink:#397481; }
.quiz-scent-icon[data-family="gourmand"] { --family-ink:#875749; }
.fit-quiz .choice-card[aria-pressed="true"] .quiz-scent-icon { box-shadow:0 0 0 2px var(--family-ink); }

/* Names: Korean first, original spelling alongside. */
.brand-name .brand-ko { margin-left:.35em; font-weight:500; letter-spacing:0; text-transform:none; color:var(--muted); }
.original-name { margin-top:1px; font-size:12px; line-height:1.4; color:var(--muted); overflow-wrap:anywhere; }
.compare-product .original-name { margin-top:2px; }

/* Products without a photo show the brand instead of a note drawing. */
.brand-plate { margin:0; width:100%; height:100%; min-height:inherit; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  padding:22px 18px; text-align:center; background:linear-gradient(180deg,#fbfaf6,#f1efe8); border:0; }
.brand-plate-logo { width:auto; max-width:62%; max-height:44px; object-fit:contain; opacity:.92; }
.brand-plate-wordmark { font:600 clamp(17px,1.9vw,24px)/1.2 var(--display, Georgia, serif); letter-spacing:.06em; text-transform:uppercase; color:#2f3a33; overflow-wrap:anywhere; max-width:90%; }
.brand-plate figcaption { display:flex; flex-direction:column; gap:3px; padding-top:12px; border-top:1px solid #d9d5ca; min-width:50%; }
.brand-plate figcaption strong { font-size:14px; font-weight:600; color:var(--ink); }
.brand-plate figcaption small { font-size:11px; color:var(--muted); }
.brand-plate.is-compact { padding:10px; gap:0; }
.brand-plate.is-compact .brand-plate-logo { max-width:80%; max-height:26px; }
.brand-plate.is-compact .brand-plate-wordmark { font-size:12px; letter-spacing:.04em; }
.detail-visual > .brand-plate { height:500px; border:1px solid var(--line); border-radius:12px; }
.detail-visual > .brand-plate .brand-plate-logo { max-height:64px; }
.detail-visual > .brand-plate .brand-plate-wordmark { font-size:clamp(22px,2.6vw,32px); }
.comparison-thumb .brand-plate figcaption, .compare-product .brand-plate figcaption small { display:none; }
.compare-product .brand-plate { height:175px; border-radius:6px; margin-bottom:15px; }
@media (max-width:700px) {
  .detail-visual > .brand-plate { height:clamp(110px,36vw,165px); padding:10px; gap:6px; }
  .detail-visual > .brand-plate figcaption { display:none; }
  .detail-visual > .brand-plate .brand-plate-logo { max-height:30px; }
  .detail-visual > .brand-plate .brand-plate-wordmark { font-size:15px; }
}
.directory-product-art .brand-plate { height:86px; border:1px solid var(--line); border-radius:6px; }
.brand-plate.is-compact .brand-plate-wordmark { font-size:10.5px; overflow-wrap:normal; word-break:keep-all; line-height:1.25; }

/* Celebrity records: real use stands out from brand work. */
.use-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; font-size:11.5px; font-weight:650; line-height:1.6; white-space:nowrap; }
.use-badge[data-use="0"] { background:#e2efe3; color:#1f5a36; }
.use-badge[data-use="0"]::before { content:'✓'; font-weight:700; }
.use-badge[data-use="1"] { background:#f6ead6; color:#7a4d12; }
.use-badge[data-use="2"] { background:#ecebe6; color:#5d5f58; }
.person-category { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.directory-quote { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12.5px !important; line-height:1.55; color:#4a5148 !important; margin-top:2px; }
.timeline-event-meta .use-badge { margin-right:6px; }
.related-story { flex-wrap:wrap; gap:6px 14px; }
.related-story > span:not(.use-badge) { flex:1 1 100%; order:3; font-size:13px; color:var(--ink); }
.related-story > small { order:4; font-size:11.5px; color:var(--muted); }
.related-story > b { order:2; margin-left:auto; }
.timeline-quote { grid-column:2 / -1; margin:6px 0 2px; padding-left:12px; border-left:3px solid #9cc3a5; font-size:14px; line-height:1.65; color:var(--ink); }
.timeline-text-only .timeline-quote { grid-column:1 / -1; }

/* Phones and tablets ------------------------------------------------------ */
/* iOS Safari zooms into fields under 16px; keep the page steady when typing. */
@media (pointer:coarse) {
  input:not([type=radio]):not([type=checkbox]), select, textarea { font-size:16px !important; }
  /* Larger hit areas for small text links without moving the layout. */
  .breadcrumb a, .inline-link, .source-link, .card-copy h3 a, .brand-name a, .directory-pages a,
  .footer-secondary a, .footer-contact a, .timeline-product-link, .quote-source a, .price-facts a,
  .photo-credits a, .market-product-sources a, .home-story-credit, .scent-note-more summary,
  .comparison-table a:not(.compare-product), .card-source a, .catalog-picker-header a { padding-block:10px; margin-block:-10px; }
  .subtle-button, .compare-remove { min-height:44px; padding-inline:6px; }
  .card-source summary, .photo-credits summary, .timeline-source summary, .detail-source-line summary,
  .market-product-sources summary, .browse-notes summary, .method summary { min-height:44px; display:flex; align-items:center; }
  .site-header nav a { padding-inline:6px; }
  .directory-pages a, [data-action="quiz-back"] { min-width:44px; display:inline-flex; align-items:center; justify-content:center; }
}

@media (max-width:700px) {
  /* Smallest readable sizes on cards and tables. */
  .perfume-card .brand-name, .perfume-card .brand-name .brand-ko { font-size:10.5px; }
  .perfume-card .concentration, .concentration-pill { font-size:11.5px; }
  .card-notes > span, .card-note { font-size:11.5px; }
  .comparison-table small, .comparison-table .source-link, .comparison-table time { font-size:12px; }
  .global-search input { min-height:44px; }
  #main .subtle-button, #main .subtle-button:is(button) { font-size:12.5px; }
  .comparison-table .quote-source, .comparison-table .quote-source a, .comparison-table .price-summary small { font-size:12px; }
  .quote-amount > span, .price-summary > small, .card-source, .card-source p, .shared-notes small, .fineprint { font-size:11.5px; }
  /* Comparison: a narrower label column so most of a product column is visible, with snap scrolling. */
  .comparison-table-wrap { scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .comparison-table { min-width:0; }
  .comparison-table th:first-child { width:84px; min-width:84px; padding:14px 10px; font-size:12px; }
  .comparison-table thead th:not(:first-child), .comparison-table td { min-width:calc(100vw - 84px - 2 * var(--gutter, 18px) - 24px); width:auto; padding:14px; scroll-snap-align:end; }
  .compare-product .product-photo, .compare-product .photo-placeholder, .compare-product .brand-plate { height:140px; min-height:140px; }
}

/* Tablets in portrait: three catalog columns and roomier tap targets in the filter row. */
@media (min-width:701px) and (max-width:1024px) {
  .catalog-refine-controls button { min-height:44px; }
  .perfume-card .brand-name { font-size:11px; }
  .product-compact .product-overview { gap:28px; }
}

/* Home celebrity cards: show real use and what was said. */
.home-story-copy small { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.home-story-quote { grid-column:1 / -1; margin:8px 0 0; padding-left:10px; border-left:3px solid #9cc3a5; font-size:12.5px; line-height:1.6; color:#3f463e;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Local example mode for the community. */
.cm-demo-notice { margin:0 0 14px; padding:10px 14px; border-radius:8px; background:#fff4d6; border:1px solid #ecd48f; color:#6b4f0f; font-size:13px; font-weight:600; }

/* Community feed: each post is a card with a board colour, a clear reading order
   (board · who · when → title → text → actions), and a tinted comment area. */
.cm-feed { display:grid; gap:12px; }
.cm-page .cm-post { position:relative; padding:16px 18px 14px 20px; border:1px solid #e3e0d6; border-radius:12px; background:#fff; box-shadow:0 1px 2px #2a2a1f0a; }
.cm-page .cm-post::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:4px; border-radius:0 3px 3px 0; background:var(--board-ink); opacity:.75; }
.cm-post-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:8px; font-size:12.5px; color:#7a7d73; }
.cm-post-meta .cm-tag { font-size:12px; padding:2px 8px; border-radius:999px; }
.cm-author { display:inline-flex; align-items:center; gap:6px; font-weight:650; font-size:13.5px; color:#2a2f29; }
.cm-mine { font-size:11.5px; font-weight:650; color:var(--iris-ink, #53418e); background:var(--iris-wash, #f1edf9); padding:1px 7px; border-radius:999px; }
.cm-post-meta time::before { content:'· '; color:#b4b6ad; }
.cm-page .cm-post h3 { margin:4px 0 2px; font-size:17px; font-weight:700; line-height:1.45; color:#1f241f; }
.cm-page .cm-body { margin:6px 0 0; font-size:15px; line-height:1.72; color:#30352f; }
.cm-product { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; margin:4px 0 0; padding:4px 10px; border:0; border-radius:8px; background:#f5f4ef; }
.cm-product .cm-product-brand { font-size:12px; color:#7a7d73; }
.cm-product strong { font-size:15px; color:#1f241f; }
.cm-product small { font-size:11.5px; color:#7a7d73; }
.cm-pair { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin:4px 0 0; }
.cm-pair .cm-product { margin:0; }
.cm-and { font-weight:700; color:var(--board-ink); }
.cm-about { margin-top:6px; }
.cm-about .cm-product::before { content:'관련 향수'; font-size:11px; padding:1px 6px; border-radius:4px; background:#fff; color:#7a7d73; margin-right:2px; }
.cm-page .cm-score { margin-top:8px; font-size:13px; padding:2px 9px; border-radius:999px; }
.cm-post-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; padding-top:10px; border-top:1px dashed #e6e3da; }
.cm-page .cm-chip { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:4px 12px; border:1px solid #dedbd1; border-radius:999px; background:#fff; color:#3a4039; font-size:13px; text-decoration:none; cursor:pointer; }
.cm-page .cm-chip:hover { border-color:#b9b5a8; }
.cm-page .cm-chip .cm-count { font-weight:700; font-variant-numeric:tabular-nums; }
.cm-page .cm-helpful[aria-pressed="true"] { border-color:#e3b7c4; background:#fbeef2; color:#9b3a5a; }
.cm-page .cm-comment-toggle[aria-expanded="true"] { border-color:var(--green); background:#eef3ec; color:var(--green); }
.cm-owner-actions { margin-left:auto; display:inline-flex; gap:2px; }
.cm-avatar { display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--avatar); color:#3b3a33; font-size:11px; font-weight:700; flex:none; }
.cm-sort { display:flex; gap:6px; margin:4px 0 12px; }
.cm-sort button { min-height:36px; padding:4px 14px; border:1px solid var(--line); border-radius:18px; background:var(--paper); font-size:13px; }
.cm-sort button[aria-pressed="true"] { background:var(--green); border-color:var(--green); color:#fff; }
.cm-thread { margin:10px 0 0; padding:12px 14px; border-radius:10px; background:#f6f6f2; }
.cm-comments { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.cm-comment { padding:10px 0; border-bottom:1px solid #e7e6de; }
.cm-comment:first-child { padding-top:2px; }
.cm-comment-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:12px; color:#7a7d73; }
.cm-comment-meta strong { color:#2a2f29; font-size:13px; }
.cm-comment-meta time::before { content:'· '; color:#b4b6ad; }
.cm-comment p { margin:4px 0 0 30px; font-size:14.5px; line-height:1.65; color:#30352f; }
.cm-comment .cm-text { margin-left:22px; min-height:32px; font-size:12px; }
.cm-comment-form { display:flex; gap:8px; align-items:flex-end; margin-top:10px; }
.cm-comment-form textarea { flex:1; min-width:0; border:1px solid #d6d4ca; border-radius:8px; padding:9px 11px; font:inherit; font-size:14.5px; line-height:1.5; resize:vertical; background:#fff; }
.cm-comment-form .cm-primary { flex:none; border-radius:8px; }
@media (max-width:700px) {
  .cm-page .cm-post { padding:14px 14px 12px 16px; border-radius:10px; }
  .cm-comment-form { flex-direction:column; align-items:stretch; }
  .cm-comment p { margin-left:0; }
  .cm-owner-actions { margin-left:0; }
}

/* Board tabs: one row of equal-level boards, 전체 first; 기능 제안 sits apart on the right. */
.cm-board-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:clamp(14px,2.5vw,24px) 0 10px; border-bottom:1px solid var(--line); }
.cm-page .cm-board-menu { display:flex; flex-wrap:nowrap; gap:2px; margin:0; overflow-x:auto; scrollbar-width:none; grid-template-columns:none; }
.cm-page .cm-board-menu::-webkit-scrollbar { display:none; }
.cm-board-tab { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:6px 12px; margin-bottom:-1px; border:0; border-bottom:2px solid transparent; background:none; color:#5d6158; font-size:15px; font-weight:600; cursor:pointer; white-space:nowrap; }
.cm-board-tab .cm-board-icon { width:24px; height:24px; }
.cm-board-tab .cm-board-icon svg { width:14px; height:14px; }
.cm-board-tab:hover { color:var(--ink); }
.cm-board-tab[aria-pressed="true"] { color:#1f241f; border-bottom-color:var(--board-ink, var(--green)); }
.cm-board-tab[data-kind=""][aria-pressed="true"] { border-bottom-color:var(--green); }
.cm-suggest-link { flex:none; display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:4px 12px; border:1px solid var(--line); border-radius:999px; background:var(--paper); color:#5d6158; font-size:13px; cursor:pointer; }
.cm-suggest-link svg { width:15px; height:15px; }
.cm-suggest-link[aria-pressed="true"] { border-color:var(--board-ink); color:var(--board-ink); background:var(--board-wash); }
.cm-board-lead { margin:0; color:var(--muted); font-size:14px; }
.cm-page .cm-helpful[aria-pressed="true"] { border-color:#a9c7e8; background:#eaf2fb; color:#285a8c; }
@media (max-width:700px) {
  .cm-board-bar { flex-direction:column; align-items:stretch; gap:6px; }
  .cm-suggest-link { align-self:flex-end; order:-1; }
  .cm-board-tab { padding:6px 10px; font-size:14px; }
  .cm-board-tab .cm-board-icon { display:none; }
}
.cm-page .cm-browse-head { border-top:0; padding:8px 0 12px; }

/* Perfume list: compact cards so a full row fits on the first screen.
   Labels "향 계열" and "노트" stay for screen readers; the badge and note dots already say it. */
.perfume-grid .perfume-card { position:relative; }
.perfume-grid .perfume-card .card-art { height:auto; aspect-ratio:6/5; min-height:0; max-height:none; }
.perfume-grid .perfume-card .card-art .product-photo,
.perfume-grid .perfume-card .card-art .photo-placeholder,
.perfume-grid .perfume-card .card-art > .story-note-art { height:100%; min-height:0; }
.perfume-grid .perfume-card .card-copy { padding:12px 14px 0; }
.perfume-grid .perfume-card h3 { font-size:16px; line-height:1.4; margin-top:2px; }
.perfume-grid .perfume-card .brand-name { font-size:10px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.perfume-grid .perfume-card .original-name { font-size:12px; line-height:1.45; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.perfume-grid .perfume-card .concentration { font-size:11px; line-height:1.4; margin-top:1px; }
.perfume-grid .perfume-card .card-sort-note { margin-top:4px; font-size:12px; font-weight:600; color:#376b4d; }
.perfume-grid .card-scent-facts { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:8px 0 6px; }
.perfume-grid .card-scent-facts > div { display:contents; }
.perfume-grid .card-scent-facts dt { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.perfume-grid .card-scent-facts .card-notes { display:flex; flex-wrap:wrap; gap:2px 8px; font-size:12px; }
.perfume-grid .perfume-card .card-bottom { padding:8px 0 10px; margin-top:auto; }
.perfume-grid .perfume-card .compact-price { padding:0; margin:0; }
.perfume-grid .perfume-card .card-bottom .quote-amount strong { font-size:15px; }
.perfume-grid .perfume-card .card-source { margin-top:0; }
.perfume-grid .perfume-card .card-source summary { min-height:24px; font-size:11px; line-height:1.8; }
.perfume-grid .perfume-card .price-summary.unconfirmed strong { font-size:12px; font-weight:500; color:var(--muted); }
/* Compare sits on the photo corner, like a save button, so it costs no height. */
.perfume-grid .perfume-card .card-bottom .compare-toggle { position:absolute; top:8px; right:8px; min-height:32px; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.92); box-shadow:0 1px 3px #0000001a; font-size:11px; }
.perfume-grid .perfume-card .card-bottom .compare-toggle.selected { background:var(--green); }
#catalog-grid { gap:18px; }
@media (min-width:1200px) { #catalog-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (pointer:coarse) { .perfume-grid .perfume-card .card-bottom .compare-toggle { min-height:40px; min-width:44px; } }
@media (max-width:700px) {
  #catalog-grid { gap:12px 10px; }
  .perfume-grid .perfume-card .card-art { aspect-ratio:1/1; height:auto; }
  .perfume-grid .perfume-card .card-art .product-photo,
  .perfume-grid .perfume-card .card-art .photo-placeholder { height:100%; }
  .perfume-grid .perfume-card .card-copy { padding:10px 10px 0; }
  .perfume-grid .perfume-card h3 { font-size:15px; }
  .perfume-grid .card-scent-facts { margin:6px 0 4px; }
  .perfume-grid .card-scent-facts .card-notes { font-size:11px; }
  .perfume-grid .card-scent-facts .card-note + .card-note { display:none; }
  .perfume-grid .perfume-card .card-source summary { font-size:10px; }
  .perfume-grid .perfume-card .card-bottom .compare-toggle { top:6px; right:6px; padding:4px 9px; font-size:11px; }
}

/* Less space above the list: smaller page title, sort rule tucked behind a summary. */
.catalog-page .page-heading h1 { font-size:clamp(28px,3.2vw,40px); }
.catalog-page .results-meta { padding:12px 0 10px; align-items:center; }
.results-count { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; }
.catalog-sort-hint { position:relative; font-size:12px; color:var(--muted); }
.catalog-sort-hint summary { cursor:pointer; list-style:none; display:inline-flex; align-items:center; gap:4px; min-height:32px; text-decoration:underline; text-underline-offset:3px; }
.catalog-sort-hint summary::-webkit-details-marker { display:none; }
.catalog-sort-hint summary::before { content:"ⓘ"; text-decoration:none; }
.catalog-sort-hint p { position:absolute; z-index:5; top:100%; left:0; width:min(320px,80vw); padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper,#fff); color:var(--ink); line-height:1.6; box-shadow:0 6px 18px #0000001a; }
.catalog-page .catalog-price-hint { margin:0 0 12px; }

/* Quiz result: aligned left like every other page; one "more" control below the picks. */
.fit-result .result-header { text-align:left; padding:8px 0 20px; margin-bottom:8px; background:none; border:0; }
.fit-result .taste-summary { margin:12px 0 0; }
.fit-result .result-header .button-row { justify-content:flex-start; margin-top:16px; }
.fit-result .result-note { margin-top:10px; }
.fit-more { margin-top:24px; border-top:1px solid var(--line); padding-top:16px; }
.fit-more > summary { cursor:pointer; display:inline-flex; align-items:center; min-height:44px; padding:8px 18px; border:1px solid var(--line); border-radius:999px; background:var(--paper,#fff); font-weight:600; list-style:none; }
.fit-more > summary::-webkit-details-marker { display:none; }
.fit-more[open] > summary { margin-bottom:16px; }

/* 기능 제안: a quiet note at the end of the community page instead of a pill beside the boards. */
.cm-suggest-note { display:flex; align-items:center; gap:12px; margin-top:28px; padding:14px 16px; border:1px dashed var(--line); border-radius:10px; background:var(--paper,#fff); }
.cm-suggest-note p { flex:1; margin:0; display:flex; flex-direction:column; gap:2px; font-size:13px; color:var(--muted); }
.cm-suggest-note strong { color:var(--ink); font-size:14px; }
.cm-suggest-note .cm-text { flex:none; min-height:44px; }
.cm-board-tab[data-kind="feature_request"][aria-pressed="true"] { border-bottom-color:var(--board-ink, var(--green)); }
@media (max-width:700px) { .cm-suggest-note { flex-wrap:wrap; } .cm-suggest-note .cm-board-icon { display:none; } }
.fit-result .result-header .result-note { margin-left:0; margin-right:0; text-align:left; max-width:40em; }

/* 향 계열 가이드: explanation cards that open in place (catalog panel and the guide page). */
.family-guide-toggle { border:0; background:none; padding:10px 0; margin-block:-10px; font-size:13px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; color:var(--ink); }
.family-guide-toggle[aria-expanded="true"] { color:var(--green); font-weight:600; }
.catalog-family-guide { margin:4px 0 14px; }
.family-guide-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; align-items:start; }
.family-guide-card { border:1px solid var(--line); border-radius:10px; background:var(--paper,#fff); }
.family-guide-card > summary { list-style:none; display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; min-height:56px; }
.family-guide-card > summary::-webkit-details-marker { display:none; }
.family-guide-card > summary::after { content:"+"; margin-left:auto; color:var(--muted); font-size:18px; }
.family-guide-card[open] > summary::after { content:"−"; }
.family-guide-card[open] { border-color:#b9c7b4; }
.family-guide-icon { flex:none; width:36px; height:36px; border-radius:8px; background:var(--scent); display:grid; place-items:center; color:#3d5a40; font-size:20px; }
.family-guide-icon svg { width:1em; height:1em; display:block; }
.family-guide-title { display:flex; flex-direction:column; line-height:1.3; }
.family-guide-title strong { font-size:15px; }
.family-guide-title small { color:var(--muted); font-size:11px; }
.family-guide-body { padding:0 14px 14px; font-size:13px; line-height:1.7; color:#3d433c; }
.family-guide-body h3 { margin:10px 0 6px; font-size:12px; color:var(--muted); font-weight:600; }
.family-guide-body .inline-link { display:inline-block; margin-top:10px; font-weight:600; }
.family-guide-page .family-guide-cards { margin-top:8px; }
.family-guide-foot { display:flex; gap:20px; margin:24px 0 12px; }
@media (max-width:900px) { .family-guide-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .family-guide-cards { grid-template-columns:1fr; } }

/* Keep "ⓘ 추천순 기준" on the same line as the result count. */
.catalog-page .results-count { align-items:baseline; }
.catalog-page .catalog-sort-hint { margin:0; padding:0; border:0; align-self:baseline; }
.catalog-page .catalog-sort-hint summary { min-height:0; padding:0; margin:0; line-height:inherit; font-size:12px; }
.catalog-page .catalog-sort-hint summary::before { font-size:12px; }
