@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #F4EFE4;
  --paper-raised: #ECE4D2;
  --ink: #211C14;
  --ink-soft: #6B6250;
  --rule: #DCD1B7;
  --rule-strong: #C2B393;
  --botanical: #3D5940;
  --botanical-ink: #24352A;
  --accent: #C1613A;
  --accent-ink: #8F4425;
  --amber: #C08A3E;
  --wine: #8C3355;
  --coral: #C1613A;
  --coral-ink: #8F4425;
  --card-bg: #FAF7EF;
  --shadow-sm: 0 1px 2px rgba(33,28,20,0.08), 0 1px 1px rgba(33,28,20,0.05);
  --shadow-md: 0 8px 24px rgba(33,28,20,0.1), 0 2px 6px rgba(33,28,20,0.06);
  --glow: rgba(193,98,58,0.14);
  --glow2: rgba(192,138,62,0.12);
  /* Color-block panel palette — soft pastel tones (not saturated poster
     colors), used for browse tiles and category grids with dark ink text
     on top, like a gouache print rather than a shouting billboard. Fixed
     across light/dark themes on purpose, like printed paper doesn't change
     color with the room lighting. */
  --poster-blue: #B7CBE8;
  --poster-yellow: #F0DCA0;
  --poster-green: #B8CCAE;
  --poster-coral: #E8C3AE;
  --poster-plum: #D3B8C8;
  --font-display: 'Bodoni Moda', 'Didot', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Jost', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120F0A;
    --paper-raised: #1B160F;
    --ink: #EDE6D6;
    --ink-soft: #B7AC93;
    --rule: #332C1F;
    --rule-strong: #473D2A;
    --botanical: #8FAE93;
    --botanical-ink: #BBD1BD;
    --accent: #E08659;
    --accent-ink: #F0A576;
    --amber: #E3B36B;
    --wine: #D383A0;
    --coral: #E08659;
    --coral-ink: #F0A576;
    --card-bg: #17130D;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 28px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.35);
    --glow: rgba(224,134,89,0.16);
    --glow2: rgba(227,179,107,0.12);
  }
}
:root[data-theme="dark"] {
  --paper: #120F0A;
  --paper-raised: #1B160F;
  --ink: #EDE6D6;
  --ink-soft: #B7AC93;
  --rule: #332C1F;
  --rule-strong: #473D2A;
  --botanical: #8FAE93;
  --botanical-ink: #BBD1BD;
  --accent: #E08659;
  --accent-ink: #F0A576;
  --amber: #E3B36B;
  --wine: #D383A0;
  --coral: #E08659;
  --coral-ink: #F0A576;
  --card-bg: #17130D;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.35);
  --glow: rgba(224,134,89,0.16);
  --glow2: rgba(227,179,107,0.12);
}
* { box-sizing: border-box; }
html { background: var(--paper); font-size: 18.5px; overflow-x: hidden; }
/* Breaks an element out of the 1020px .page column to true full viewport
   width — used only for real photography moments (home hero, perfume/story
   heroes with a verified photo), never for data-dense listing UI. */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
body { margin: 0; background: radial-gradient(1000px 480px at 8% -6%, var(--glow), transparent 60%), radial-gradient(1000px 480px at 96% 4%, var(--glow2), transparent 58%) var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: 300; font-size: 1.03rem; line-height: 1.7; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--coral-ink); transition: color 0.15s ease; }
a:hover { color: var(--wine); }
.page { max-width: 1020px; margin: 0 auto; padding: 0 1.5rem 4.5rem; position: relative; z-index: 1; }

body::before, body::after {
  content: '';
  position: fixed;
  top: 0;
  height: 100vh;
  width: 260px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
  opacity: 0.9;
}
body::before {
  left: 0;
  background-image: linear-gradient(to right, var(--paper) 0%, transparent 30%), url('/images/decor/rose.jpg');
}
body::after {
  right: 0;
  background-image: linear-gradient(to left, var(--paper) 0%, transparent 30%), url('/images/decor/amber-bottles.jpg');
}
@media (max-width: 1720px) { body::before, body::after { display: none; } }

/* Dark theme: same panels, but dimmed and desaturated so they read as
   ambience against near-black rather than blown-out daylight photos. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before,
  :root:not([data-theme="light"]) body::after {
    opacity: 0.55;
    filter: saturate(0.7) brightness(0.5) contrast(1.05);
  }
}
:root[data-theme="dark"] body::before,
:root[data-theme="dark"] body::after {
  opacity: 0.55;
  filter: saturate(0.7) brightness(0.5) contrast(1.05);
}

.theme-toggle { background: none; border: 1px solid var(--rule-strong); border-radius: 50%; width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; line-height: 1; transition: all 0.15s ease; }
.theme-toggle:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }
:root[data-theme="dark"] .theme-icon-light { display: none; }

/* Small uppercase tracked labels — the site's one recurring "eyebrow" motif */
.k, .site-tag, .field, .listing-head, .stat-label, .rate-label,
.answer-strip .k, .related .k, .collection-actions .k, .notes-group .k,
.profile-section .k, .community-section > .k, .browse-grid .k {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-header { position: relative; display: flex; align-items: baseline; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule-strong); margin-bottom: 6.2rem; flex-wrap: wrap; }
.site-header > a, .site-header > button, .site-header .notif-bell, .site-header .user-menu { flex-shrink: 0; white-space: nowrap; }
.site-name { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.site-tag { font-size: 0.68rem; color: var(--ink-soft); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.04em; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding-bottom: 0.2rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a.active { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

.mobile-nav-btn { display: none; }

.avatar { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.avatar-initial { background: var(--accent); color: var(--paper); text-align: center; font-family: var(--font-display); font-weight: 600; }

.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; color: var(--ink-soft); padding-bottom: 0.2rem; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::after { content: '▾'; font-size: 0.65rem; margin-left: -0.1rem; }
.user-menu summary:hover, .user-menu[open] summary { color: var(--accent-ink); }
.user-menu-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel { position: absolute; top: calc(100% + 0.6rem); right: 0; min-width: 210px; background: var(--card-bg); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 20; padding: 0.4rem 0; display: flex; flex-direction: column; }
.user-menu-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem 0.9rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.3rem; }
.user-menu-header strong { font-size: 0.92rem; font-weight: 400; color: var(--ink); }
.user-menu-header span { font-size: 0.76rem; color: var(--ink-soft); }
.user-menu-panel a { padding: 0.55rem 1rem; color: var(--ink); text-decoration: none; font-size: 0.88rem; }
.user-menu-panel a:hover { background: var(--paper-raised); color: var(--accent-ink); }

.nav-dropdown { position: relative; }
.nav-dropdown summary { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; list-style: none; color: var(--ink-soft); padding-bottom: 0.2rem; border-bottom: 1px solid transparent; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: '▾'; font-size: 0.65rem; margin-left: -0.1rem; }
.nav-dropdown summary:hover, .nav-dropdown[open] summary { color: var(--accent-ink); }
.nav-dropdown-panel { position: absolute; top: calc(100% + 0.6rem); left: 0; min-width: 170px; background: var(--card-bg); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 60; padding: 0.4rem 0; display: flex; flex-direction: column; }
.nav-dropdown-panel a { padding: 0.5rem 1rem; color: var(--ink); text-decoration: none; font-size: 0.88rem; }
.nav-dropdown-panel a:hover { background: var(--paper-raised); color: var(--accent-ink); }

.nav-dropdown-highlight summary { background: var(--amber); color: var(--paper); padding: 0.35rem 0.7rem; border-radius: 14px; font-weight: 600; }
.nav-dropdown-highlight summary::after { color: var(--paper); }
.nav-dropdown-highlight summary:hover, .nav-dropdown-highlight[open] summary { background: var(--accent-ink); color: var(--paper); }
.site-nav a.nav-highlight-link { background: transparent; border: 1px solid var(--amber); color: var(--amber); padding: 0.3rem 0.65rem; border-radius: 14px; font-weight: 600; text-decoration: none; }
.site-nav a.nav-highlight-link:hover { background: var(--amber); color: var(--paper); }

.founding-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; background: var(--amber); color: var(--paper); padding: 0.6rem 1.1rem; font-size: 0.85rem; margin-bottom: 1.3rem; border-radius: 10px; }
.founding-banner-actions { display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; }
.founding-banner a { color: var(--paper); text-decoration: underline; font-weight: 600; }
.founding-banner .chip-btn { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); text-decoration: none; padding: 0.3rem 0.7rem; border-radius: 14px; color: var(--paper); }
.founding-banner button { background: none; border: none; color: var(--paper); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 0.2rem; opacity: 0.8; }
.founding-banner button:hover { opacity: 1; }
@media (max-width: 600px) { .founding-banner { font-size: 0.8rem; } }

.fact-callout { margin: 0 1.6rem 1.4rem; padding: 0.65rem 0.9rem; background: var(--amber); color: var(--paper); border-radius: 10px; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; font-size: 0.82rem; line-height: 1.4; }
.fact-callout strong { font-family: var(--font-display); font-size: 0.82rem; }
.fact-callout a { color: var(--paper); text-decoration: underline; font-weight: 600; white-space: nowrap; font-size: 0.82rem; }

.auth-tabs { display: flex; gap: 0.3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.auth-tab { font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.6rem 0.2rem; margin-right: 1.5rem; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab:hover { color: var(--accent-ink); }
.auth-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

.profile-section { padding: 0 1.9rem 1.5rem; }
.profile-section .k { display: block; margin-bottom: 0.9rem; }
.profile-photo-row { display: flex; align-items: center; gap: 1.2rem; }
.profile-photo-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.avatar-form { display: inline-block; }
.avatar-file-label { cursor: pointer; }
.avatar-file-label input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.remove-btn-text { background: none; border: none; padding: 0; color: var(--ink-soft); font-size: 0.8rem; text-decoration: underline; text-decoration-color: var(--rule-strong); cursor: pointer; }
.remove-btn-text:hover { color: var(--wine); }

.not-found { padding: 3rem 0; color: var(--ink-soft); }
.entity { background: var(--card-bg); border: 1px solid var(--rule); box-shadow: var(--shadow-md); border-radius: 10px; overflow: hidden; }

.answer-strip { padding: 1.8rem 1.9rem; border-bottom: 1px solid var(--rule); background: var(--paper-raised); border-left: 3px solid var(--amber); }
.answer-strip .k { color: var(--amber); font-size: 0.7rem; }
.answer-strip p { margin: 0.8rem 0 0; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.45; letter-spacing: 0.003em; max-width: 34ch; color: var(--ink); }

.edu-crosslink { font-size: 0.83rem; color: var(--ink-soft); margin: 0.7rem 1.9rem 0; padding: 0; }
.edu-crosslink a { color: var(--accent-ink); text-decoration: none; }
.edu-crosslink a:hover { text-decoration: underline; }

.entity-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 600px) { .entity-grid { grid-template-columns: 1fr; } }
.infobox { padding: 1.6rem 1.9rem; border-right: 1px solid var(--rule); }
@media (max-width: 600px) { .infobox { border-right: none; border-bottom: 1px solid var(--rule); } }
.infobox .row { display: flex; gap: 0.8rem; font-size: 0.95rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.infobox .row:first-child { border-top: none; }
.infobox dt { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; flex: 0 0 120px; color: var(--ink-soft); padding-top: 0.1rem; }
.infobox dd { margin: 0; color: var(--ink); }
.infobox-wide { border-right: none; padding: 1.2rem 1.9rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 0.2rem; }
.infobox-wide .row { align-items: baseline; border-top: none; padding: 0.35rem 0; }
.infobox-wide .row:last-child { grid-column: 1 / -1; }
.infobox-wide dd .chip { margin-bottom: 0; }
@media (max-width: 640px) { .infobox-wide { grid-template-columns: 1fr; } }

.related { padding: 1.6rem 1.9rem; }
.related .k { display: block; margin-bottom: 0.9rem; }

.chip { display: inline-block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.02em; padding: 0.4rem 0.85rem; margin: 0 0.5rem 0.5rem 0; border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--coral-ink); text-decoration: none; background: var(--paper); transition: background 0.15s ease, border-color 0.15s ease; }
.chip:hover { background: var(--paper-raised); border-color: var(--coral-ink); }

.chip-btn { display: inline-block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.03em; padding: 0.45rem 0.85rem; margin: 0 0.5rem 0.5rem 0; border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--ink-soft); background: var(--paper); cursor: pointer; transition: all 0.15s ease; }
.chip-btn:hover { border-color: var(--coral-ink); color: var(--coral-ink); }
.chip-btn.active { background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%); border-color: var(--coral-ink); color: #fff; }
.collection-actions { padding: 0 1.9rem 1.1rem; }
.collection-actions .k { display: block; margin-bottom: 0.7rem; }

.source-footer { padding: 1rem 1.9rem; border-top: 1px solid var(--rule); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.badge { font-weight: 500; }
.status-drafted { color: var(--amber); }
.status-reviewed { color: var(--accent-ink); }
.status-expert_verified { color: var(--wine); }

.entity-title { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; letter-spacing: -0.005em; margin: 0; padding: 1.6rem 1.9rem 0; color: var(--ink); line-height: 1.05; font-variant-numeric: lining-nums; }
.entity-title .entity-year { font-family: var(--font-body); font-weight: 300; font-size: 1.1rem; color: var(--ink-soft); margin-left: 0.6rem; }

.perfume-hero { display: flex; gap: 2.2rem; padding: 1.9rem 1.9rem; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.perfume-hero-text { flex: 1 1 320px; min-width: 260px; }
.perfume-hero .entity-title { padding: 0; font-size: 3.1rem; }
.perfume-hero .perfume-visual { flex: 0 0 auto; }
.perfume-subtitle { margin: 0.8rem 0 0; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.perfume-subtitle a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.perfume-subtitle a:hover { color: var(--accent-ink); }
@media (max-width: 640px) { .perfume-hero { flex-direction: column; } .perfume-hero .entity-title { font-size: 2.3rem; } }
.answer-strip.inline { border: none; background: none; padding: 0; margin-top: 1.4rem; }
.answer-strip.inline p { max-width: 52ch; }
.bottle-photo { max-width: 300px; max-height: 403px; border: 1px solid var(--rule); border-radius: 10px; display: block; box-shadow: var(--shadow-md); }
.bottle-photo.zoomable { cursor: zoom-in; }
.image-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 8, 6, 0.88); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.2rem; }
.image-lightbox[hidden] { display: none; }
.image-lightbox img { max-width: min(92vw, 900px); max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: zoom-out; }
.image-lightbox-close { position: absolute; top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.image-lightbox-close:hover, .image-lightbox-close:focus { background: rgba(255,255,255,0.24); }
body.lightbox-open { overflow: hidden; }
.image-credit { font-size: 0.66rem; color: var(--ink-soft); opacity: 0.75; margin-top: 0.5rem; max-width: 230px; }
.bottle-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; width: 120px; height: 170px; border: 1px dashed var(--rule-strong); background: var(--paper-raised); color: var(--ink-soft); font-size: 0.72rem; text-align: center; padding: 0.5rem; }
.bottle-placeholder span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); opacity: 0.7; }
.bottle-silhouette { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 210px; }
.bottle-silhouette svg { width: 210px; height: 298px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 14px; }
.silhouette-caption { font-size: 0.65rem; color: var(--ink-soft); opacity: 0.7; text-align: center; }
.notes-section { padding: 0.6rem 1.9rem 1.3rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; }
.notes-group { margin-top: 0.9rem; }
.notes-group .k { display: block; margin-bottom: 0.5rem; }
.note-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.note-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; min-height: 110px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-raised); text-decoration: none; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; box-shadow: var(--shadow-sm); }
.note-thumb:hover { border-color: var(--coral-ink); box-shadow: var(--shadow-md); }
.note-thumb img { width: 110px; height: 110px; object-fit: cover; display: block; }
@media (max-width: 700px) { .notes-section { grid-template-columns: 1fr; } }
.note-thumb .swatch { font-family: var(--font-body); font-size: 0.86rem; color: var(--accent-ink); text-align: center; padding: 0.35rem; line-height: 1.25; }
span.note-thumb .swatch { color: var(--ink-soft); }

/* Immersive backdrop for a perfume with a real product photo, framed within
   the site's normal 1020px content column (not full-bleed) with rounded
   corners, matching the home hero. Blur/darken is CSS-only, applied to a
   duplicate ::before layer so the sharp bottle photo on top stays crisp. */
.perfume-hero-backdrop {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 10px;
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  padding: 3.2rem 1.9rem; margin-bottom: 1.6rem;
}
.perfume-hero-backdrop::before {
  content: ''; position: absolute; inset: -24px; z-index: 0;
  background-image: var(--backdrop-img); background-size: cover; background-position: center 30%;
  filter: blur(40px) brightness(0.45) saturate(1.2); transform: scale(1.12);
}
.perfume-hero-backdrop::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,9,6,0.3) 0%, rgba(10,9,6,0.72) 100%);
}
.perfume-hero-backdrop .perfume-hero-inner {
  position: relative; z-index: 2; max-width: 1020px; width: 100%; margin: 0 auto;
  padding: 0 !important; border-bottom: none !important;
}
.perfume-hero-backdrop .entity-title,
.perfume-hero-backdrop .perfume-subtitle,
.perfume-hero-backdrop .perfume-subtitle a,
.perfume-hero-backdrop .verified-badge,
.perfume-hero-backdrop .verified-badge a { color: #F5F1E6; }
.perfume-hero-backdrop .entity-title { font-size: 3.6rem; }
.perfume-hero-backdrop .perfume-subtitle a { text-decoration-color: rgba(245,241,230,0.5); }
.perfume-hero-backdrop .answer-strip.inline .k { color: #E8C468; }
.perfume-hero-backdrop .answer-strip.inline p { color: #F5F1E6; }
.perfume-hero-backdrop .bottle-photo { box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
@media (max-width: 640px) {
  .perfume-hero-backdrop { min-height: 0; padding: 2.2rem 1.2rem; }
  .perfume-hero-backdrop .entity-title { font-size: 2.2rem; }
}

.note-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1.1rem; }
.note-browse-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.note-browse-card .note-browse-image { width: 128px; height: 128px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--paper-raised); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.note-browse-card:hover .note-browse-image { border-color: var(--coral-ink); box-shadow: var(--shadow-sm); }
.note-browse-card .note-browse-image img { width: 128px; height: 128px; object-fit: cover; display: block; }
.note-browse-card .note-browse-image .swatch { font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-soft); text-align: center; padding: 0.5rem; line-height: 1.3; }
.note-browse-card .note-browse-name { margin-top: 0.5rem; font-size: 0.85rem; text-align: center; line-height: 1.3; }
.note-browse-card:hover .note-browse-name { color: var(--accent-ink); }
.note-visual { padding: 1.3rem 1.9rem 0; }
.note-visual img { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--rule); border-radius: 10px; }
.family-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.3rem; }
.family-browse-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--card-bg); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.family-browse-card:hover { border-color: var(--coral-ink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.family-browse-card .family-browse-image { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--paper-raised); }
.family-browse-card .family-browse-body { padding: 0.7rem 0.9rem 0.9rem; border-top: 4px solid var(--fam-color); }
.family-browse-card .family-browse-name { font-family: var(--font-display); font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
.family-browse-card .family-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.family-browse-card .family-browse-summary { margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Families with no verified photo become a bold solid color-block card
   using the family's own real color_hex, poster-style, instead of a small
   neutral card with a tiny color dot — real per-family data, not decoration. */
.family-browse-card-solid { background: var(--fam-color); min-height: 168px; display: flex; align-items: flex-end; }
.family-browse-card-solid .family-browse-body { padding: 1.1rem 1.1rem 1.2rem; border-top: none; }
.family-browse-card-solid .family-browse-name { color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.family-browse-card-solid .family-browse-summary { color: var(--ink); opacity: 0.78; }
.family-browse-card-solid:hover { box-shadow: var(--shadow-md); transform: translateY(-3px) scale(1.01); filter: brightness(1.05); }
.family-hero { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); margin-bottom: 1.1rem; }
.family-hero-credit { font-size: 0.75rem; color: var(--ink-soft); margin: -0.9rem 0 1.1rem; }
.family-longform { font-size: 1rem; line-height: 1.65; margin: 0.6rem 0 1.3rem; }

.olf-chat-msg { font-size: 0.92rem; line-height: 1.55; padding: 0.7rem 0.9rem; border-radius: 14px; white-space: pre-wrap; }
.olf-chat-assistant { background: var(--paper-raised); color: var(--ink); border: 1px solid var(--rule); }
.olf-chat-thinking { opacity: 0.6; }

#olf-search-root { position: absolute; top: 100%; left: 0; width: 100%; margin-top: 1rem; z-index: 50; }
#olf-search-form { display: flex; align-items: stretch; width: 100%; max-width: 640px; }
#olf-search-input { flex: 1; padding: 0.75rem 1rem; background: var(--paper); border: 1px solid var(--rule-strong); border-right: none; border-radius: 10px 0 0 10px; color: var(--ink); font-family: var(--font-body); font-size: 1rem; }
#olf-search-input:focus { outline: none; border-color: var(--accent); }
#olf-search-form button { border: 1px solid var(--rule-strong); background: var(--accent); color: #fff; padding: 0 1.2rem; cursor: pointer; font-size: 1.1rem; border-radius: 0 10px 10px 0; }
#olf-search-panel { position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 999; width: 100%; max-width: 640px; max-height: 480px; background: var(--card-bg); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; }
#olf-search-panel[hidden] { display: none; }
#olf-search-header { background: var(--accent); color: #fff; padding: 0.6rem 0.8rem; display: flex; align-items: center; justify-content: space-between; }
#olf-search-caption { font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase; margin-top: 0.4rem; }
#olf-search-header-actions { display: flex; align-items: center; gap: 0.5rem; }
#olf-search-close, #olf-search-new { background: none; border: none; color: #fff; cursor: pointer; line-height: 1; }
#olf-search-close { font-size: 1.2rem; }
#olf-search-new { font-size: 1rem; opacity: 0.9; }
#olf-search-new:hover { opacity: 1; }
#olf-search-log { flex: 1; overflow-y: auto; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.7rem; max-height: 380px; }
.olf-search-query-label { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.olf-search-result-block .k { font-size: 0.72rem; }
#olf-search-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0.8rem; border-top: 1px solid var(--rule); background: var(--paper-raised); font-size: 0.78rem; color: var(--ink-soft); }
#olf-search-doc-bar[hidden] { display: none; }
#olf-search-doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#olf-search-doc-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
#olf-search-attach-row { border-top: 1px solid var(--rule); padding: 0.4rem 0.8rem; }
#olf-search-attach { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 0.78rem; padding: 0; }
#olf-search-attach:hover { color: var(--accent-ink); }
@media (max-width: 720px) {
  #olf-search-panel { max-width: 100%; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 1.1rem 1.3rem; align-items: flex-end; padding: 1.3rem 1.9rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-raised); margin: 0; }
.filter-bar label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.68rem; }
.filter-bar select, .filter-bar input[type="number"] { font-family: var(--font-body); font-size: 0.88rem; padding: 0.5rem 0.6rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--ink); max-width: 12rem; }
.filter-bar input[type="number"] { width: 5.5rem; max-width: none; }
.filter-bar .btn-primary { align-self: flex-end; }
.filter-bar .chip { align-self: center; }

.listing-table { display: flex; flex-direction: column; }
.listing-head, .listing-row { display: grid; grid-template-columns: 2.2fr 1.6fr 0.7fr 1fr; gap: 0.8rem; align-items: center; padding: 0.75rem 1.9rem; border-top: 1px solid var(--rule); }
.listing-head { font-size: 0.68rem; }
.listing-row { text-decoration: none; color: var(--ink); font-size: 0.98rem; transition: background 0.12s ease; }
.listing-row .col-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; font-variant-numeric: lining-nums; }
.listing-row:hover { background: var(--paper-raised); }
.listing-row .col-brand { color: var(--ink-soft); font-size: 0.86rem; letter-spacing: 0.02em; }
.listing-row .col-year { font-family: var(--font-body); font-weight: 300; font-size: 0.85rem; color: var(--ink-soft); }
.col-family { display: flex; gap: 0.3rem; align-items: center; font-size: 0.85rem; letter-spacing: normal; text-transform: none; color: var(--ink-soft); }
.family-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--rule-strong); flex: 0 0 auto; }

.perfume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; padding: 1.3rem 1.9rem; }
.perfume-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.perfume-card:hover { border-color: var(--coral-ink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.perfume-card-visual { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--paper-raised); padding: 0.8rem; }
.perfume-card-visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.perfume-card-visual svg { max-width: 80%; max-height: 90%; }
.perfume-card-body { padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.15rem; }
.perfume-card-name { font-family: var(--font-display); font-size: 0.94rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.perfume-card-brand { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perfume-card-meta { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.2rem; }
@media (max-width: 480px) { .perfume-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; padding: 1rem; } }

.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.material-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.6rem 0.7rem; border: 1px solid var(--rule-strong); border-left: 3px solid var(--rule-strong); border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.12s ease; }
.material-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.material-card-natural { border-left-color: var(--botanical); }
.material-card-natural:hover { border-color: var(--botanical); border-left-color: var(--botanical); }
.material-card-synthetic { border-left-color: #6b7f94; }
.material-card-synthetic:hover { border-color: #6b7f94; border-left-color: #6b7f94; }
.material-card-icon { font-size: 0.9rem; line-height: 1; }
.material-card-name { font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.material-card-sub { font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.01em; }
@media (max-width: 480px) { .material-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; } }

.brand-listing-name { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo-thumb { flex: 0 0 auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.brand-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.brand-grid, .perfumer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; padding: 1.3rem 1.9rem; }
.brand-card, .perfumer-card { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.05rem; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.brand-card:hover, .perfumer-card:hover { border-color: var(--coral-ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-card-logo, .perfumer-card-avatar { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--paper-raised); }
.brand-card-logo img, .perfumer-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-card-logo svg, .perfumer-card-avatar svg { width: 100%; height: 100%; }
.brand-card-body, .perfumer-card-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.brand-card-name, .perfumer-card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-card-meta { font-size: 0.76rem; color: var(--ink-soft); }
.brand-card-count, .perfumer-card-count { font-size: 0.74rem; color: var(--ink-soft); }
@media (max-width: 480px) { .brand-grid, .perfumer-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 1rem; } }

.brand-hero-row { display: flex; align-items: center; gap: 1.1rem; padding: 1.6rem 1.9rem 0; }
.brand-hero-row .entity-title { padding: 0 !important; }
.brand-logo-large { flex: 0 0 auto; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; padding: 0.4rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px; }
.brand-logo-large img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 500px) { .brand-hero-row { gap: 0.7rem; } .brand-logo-large { width: 60px; height: 60px; } }
@media (max-width: 640px) {
  .listing-head { display: none; }
  .listing-row { grid-template-columns: 1fr auto; grid-template-areas: "name year" "brand family"; }
  .listing-row .col-name { grid-area: name; }
  .listing-row .col-year { grid-area: year; text-align: right; }
  .listing-row .col-brand { grid-area: brand; }
  .listing-row .col-family { grid-area: family; justify-self: end; }
}

.pagination { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.9rem; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-soft); border-top: 1px solid var(--rule); }
.pagination a { color: var(--accent-ink); text-decoration: none; }
.pagination a:hover { text-decoration: underline; }

.btn-primary { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.65rem 1.3rem; background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%); color: #fff; border: 1px solid var(--coral-ink); border-radius: 10px; cursor: pointer; transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.community-section { padding: 1.6rem 1.9rem; border-top: 1px solid var(--rule); }
.community-section > .k { display: block; margin-bottom: 1rem; }
.rating-summary { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1rem; }
.rating-avg { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--amber); }
.rating-avg .rating-max { font-family: var(--font-body); font-weight: 300; font-size: 0.9rem; color: var(--ink-soft); }
.rating-count { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.rate-form { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.4rem; }
.rate-label { font-size: 0.72rem; margin-right: 0.5rem; }
.star-btn { background: none; border: none; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--rule-strong); padding: 0.1rem 0.05rem; transition: color 0.12s ease; }
.star-btn.filled, .star-btn:hover, .star-btn:hover ~ .star-btn { color: var(--amber); }
.comments-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.4rem; }
.no-comments { color: var(--ink-soft); font-size: 0.9rem; font-style: italic; }
.comment { border-left: 2px solid var(--rule-strong); padding-left: 1rem; }
.comment-meta { font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 0.25rem; }
.comment-author { color: var(--accent-ink); font-weight: 500; }
.comment-body { margin: 0; font-size: 0.95rem; }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.comment-form textarea { font-family: var(--font-body); font-size: 0.92rem; padding: 0.7rem 0.8rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--ink); resize: vertical; }
.comment-form .btn-primary { align-self: flex-start; }
.comment-login-prompt { font-size: 0.9rem; color: var(--ink-soft); }

.reader-photos { margin-bottom: 1.6rem; }
.reader-photos > .k { display: block; margin-bottom: 0.8rem; }
.reader-photos-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.reader-photo { margin: 0; width: 120px; }
.reader-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; border: 1px solid var(--rule-strong); display: block; }
.reader-photo figcaption { font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.3rem; }
.photo-upload-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 380px; margin-top: 0.6rem; }
.photo-upload-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.photo-upload-form .field span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.photo-upload-form .btn-primary { align-self: flex-start; }
.photo-upload-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.form-success { background: rgba(46,122,74,0.1); border: 1px solid #2e7a4a; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; font-size: 0.9rem; color: #2e7a4a; }

.auth-form-wrap { padding: 1.7rem 1.9rem 2rem; max-width: 380px; }
.form-errors { background: rgba(122,46,58,0.1); border: 1px solid var(--wine); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; }
.form-errors p { margin: 0.2rem 0; font-size: 0.88rem; color: var(--wine); }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.72rem; }
.field input { font-family: var(--font-body); font-size: 0.95rem; padding: 0.65rem 0.8rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--ink); text-transform: none; letter-spacing: normal; }
.field input:focus { outline: none; border-color: var(--accent-ink); }
.auth-form .btn-primary { align-self: flex-start; margin-top: 0.3rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.7rem 1rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-family: var(--font-body); transition: background 0.15s ease; }
.btn-google:hover { background: var(--paper-raised); }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0; font-size: 0.74rem; color: var(--ink-soft); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.auth-switch { font-size: 0.88rem; color: var(--ink-soft); margin-top: 1.3rem; }

.collection-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.collection-item { display: flex; align-items: center; gap: 0.6rem; }
.remove-btn { background: none; border: 1px solid var(--rule-strong); border-radius: 10px; width: 1.6rem; height: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; font-size: 0.95rem; transition: all 0.15s ease; }
.remove-btn:hover { border-color: var(--wine); color: var(--wine); }

/* Visual, shareable Wishlist/Owned/Showcase grids on account.php (and the
   public Showcase on profile.php) — real bottle photos where we have them,
   a plain initial swatch otherwise, plus a remove button on your own page. */
.wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; margin-top: 0.8rem; }
.wardrobe-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.wardrobe-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wardrobe-card-visual { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--paper-raised); padding: 0.7rem; text-decoration: none; }
.wardrobe-card-visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wardrobe-card-placeholder { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink-soft); }
.wardrobe-card-body { padding: 0.6rem 0.7rem 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; }
.wardrobe-card-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wardrobe-card-name:hover { color: var(--coral-ink); }
.wardrobe-card-brand { font-size: 0.72rem; color: var(--ink-soft); }
.wardrobe-card-remove-form { position: absolute; top: 6px; right: 6px; }
.wardrobe-card-remove { background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%; width: 1.5rem; height: 1.5rem; line-height: 1; cursor: pointer; font-size: 0.9rem; transition: background 0.15s ease; }
.wardrobe-card-remove:hover { background: var(--wine); }
@media (max-width: 480px) { .wardrobe-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.7rem; } }

/* Showcase only: real bottles standing on a physical wooden shelf ledge,
   not just a flat photo grid — this is the one list meant to be a display
   case, not a working list, so it gets its own more literal treatment.
   Wood tones are fixed regardless of theme, like real wood doesn't change
   color with the room lighting (same reasoning as the poster palette). */
.showcase-shelf { padding: 1.6rem 1.7rem 0.4rem; }
/* One continuous lit cabinet strip behind every bottle in the row, not a
   separate boxed photo per item — that read as N disjointed cards instead
   of a real shelf. The real Gemini-generated niche photo tiles (repeat)
   behind the whole row via ::before, bottles sit on top with no background
   of their own, and labels live in a second flex row below on the normal
   page background so the dark strip stays bounded to just the bottle band
   even across multiple wrapped rows. */
.showcase-shelf-bottles { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; border-radius: 4px; overflow: hidden; }
.showcase-shelf-bottles::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: url('/images/decor/shelf-niche.jpg'); background-repeat: repeat; background-size: auto 150px; }
.showcase-shelf-slot { position: relative; z-index: 1; flex: 1 1 108px; min-width: 90px; }
.showcase-shelf-item { display: block; text-decoration: none; }
.showcase-shelf-bottle { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; overflow: hidden; }
.showcase-shelf-bottle img { max-height: 118px; max-width: 78%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45)); }
.showcase-shelf-placeholder { width: 40px; height: 78px; border-radius: 2px 2px 7px 7px; background: linear-gradient(160deg, #d8c9a8, #a88f63); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #3a260f; box-shadow: 0 6px 5px rgba(0,0,0,0.35); }
.showcase-shelf-labels { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.showcase-shelf-label { flex: 1 1 108px; min-width: 90px; text-decoration: none; color: var(--ink); text-align: center; padding-bottom: 0.6rem; }
.showcase-shelf-label strong { display: block; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; line-height: 1.25; }
.showcase-shelf-label:hover strong { color: var(--coral-ink); }
.showcase-shelf-label span { display: block; font-size: 0.66rem; color: var(--ink-soft); }
.showcase-shelf-slot .wardrobe-card-remove-form { position: absolute; top: 6px; right: 6px; z-index: 2; }
@media (max-width: 480px) { .showcase-shelf-slot, .showcase-shelf-label { flex-basis: 90px; } .showcase-shelf-bottle { height: 120px; } .showcase-shelf-bottle img { max-height: 92px; } .showcase-shelf-bottles::before { background-size: auto 120px; } }

.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.6rem 0.5rem; text-decoration: none; border-right: 1px solid var(--rule); transition: background 0.15s ease; }
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: var(--paper-raised); }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent-ink); line-height: 1; }
.stat-label { font-size: 0.66rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat-card:nth-child(3) { border-right: none; }
  .stat-card { padding: 1.1rem 0.3rem; border-bottom: 1px solid var(--rule); }
  .stat-num { font-size: 1.7rem; }
}
@media (max-width: 400px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2n) { border-right: none; }
  .stat-card:nth-child(3) { border-right: 1px solid var(--rule); }
}
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); } .stat-card:nth-child(3) { border-right: none; } }

.start-here-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.6rem 1.9rem; border-top: 1px solid var(--rule); }
@media (max-width: 700px) { .start-here-row { grid-template-columns: 1fr; } }
/* A Loewe-style poster-color grid: each path gets its own saturated block
   instead of a neutral card with a thin amber accent line. */
.start-here-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem 1.5rem 1.6rem; border: none; border-radius: 14px; text-decoration: none; min-height: 168px; justify-content: flex-end; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; box-shadow: var(--shadow-sm); }
.start-here-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); filter: brightness(1.05); }
.start-here-card:nth-child(1) { background: var(--poster-blue); }
.start-here-card:nth-child(2) { background: var(--poster-coral); }
.start-here-card:nth-child(3) { background: var(--poster-green); }
.start-here-label { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--ink); opacity: 0.65; }
.start-here-card strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.start-here-card span:last-child { font-size: 0.86rem; color: var(--ink); opacity: 0.75; line-height: 1.5; }

.home-widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.6rem 1.9rem; border-top: 1px solid var(--rule); }
@media (max-width: 700px) { .home-widget-row { grid-template-columns: 1fr; } }
.home-widget { border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--paper); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.home-widget-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.home-widget-head a { font-size: 0.78rem; color: var(--ink-soft); text-decoration: none; }
.home-widget-head a:hover { color: var(--accent-ink); text-decoration: underline; }
.home-sotd-item { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.home-sotd-user { font-size: 0.82rem; color: var(--ink-soft); flex-shrink: 0; }
.home-story-card { display: flex; flex-direction: row; align-items: flex-start; gap: 0.8rem; text-decoration: none; color: var(--ink); flex: 1; }
.home-story-card img { width: 6.5rem; height: 6.5rem; flex-shrink: 0; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); }
.home-story-card-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.home-story-card strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.home-story-card span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-story-card:hover strong { color: var(--accent-ink); }
@media (max-width: 500px) { .home-story-card { flex-direction: column; } .home-story-card img { width: 100%; height: 8rem; } }

.browse-grid { padding: 1.6rem 1.9rem; border-top: 1px solid var(--rule); }
.browse-grid .k { display: block; margin-bottom: 1rem; }
.browse-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .browse-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .browse-tiles { grid-template-columns: 1fr; } }
.browse-tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem 1.4rem 1.5rem; border: none; border-radius: 14px; text-decoration: none; min-height: 140px; justify-content: flex-end; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; box-shadow: var(--shadow-sm); }
.browse-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); filter: brightness(1.05); }
.browse-tile strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums; }
.browse-tile span { font-size: 0.84rem; letter-spacing: 0.01em; color: var(--ink); opacity: 0.72; line-height: 1.5; }
.browse-tile:nth-child(5n+1) { background: var(--poster-blue); }
.browse-tile:nth-child(5n+2) { background: var(--poster-yellow); }
.browse-tile:nth-child(5n+3) { background: var(--poster-green); }
.browse-tile:nth-child(5n+4) { background: var(--poster-coral); }
.browse-tile:nth-child(5n+5) { background: var(--poster-plum); }

.sotd-datenav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.9rem; border-bottom: 1px solid var(--rule); font-family: var(--font-body); font-size: 0.85rem; }
.sotd-datenav a { color: var(--accent-ink); text-decoration: none; }
.sotd-datenav a:hover { text-decoration: underline; }
.sotd-datenav strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

.sotd-form-wrap { padding: 1.6rem 1.9rem; border-bottom: 1px solid var(--rule); background: var(--paper-raised); }
.sotd-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.sotd-search-field input, .sotd-form textarea { font-family: var(--font-body); font-size: 0.95rem; padding: 0.6rem 0.75rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--ink); }
.sotd-form textarea { resize: vertical; }
.sotd-form .btn-primary { align-self: flex-start; }
.sotd-login-prompt { padding: 1.3rem 1.9rem; font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); margin: 0; }

.sotd-feed { display: flex; flex-direction: column; }
.sotd-feed .no-comments { padding: 1.3rem 1.9rem; margin: 0; }
.sotd-post { padding: 1.1rem 1.9rem; border-top: 1px solid var(--rule); }
.sotd-post-main { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; gap: 0.8rem; }
.sotd-post-user { font-family: var(--font-body); font-weight: 500; color: var(--accent-ink); font-size: 0.94rem; }
.sotd-staff-badge { font-family: var(--font-mono, monospace); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink); background: var(--paper-raised); border: 1px solid var(--rule-strong); border-radius: 14px; padding: 0.12rem 0.4rem; }
.sotd-post-time { font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.02em; white-space: nowrap; }
.sotd-post-scent { margin-bottom: 0.3rem; }
.sotd-unlinked { opacity: 0.8; cursor: default; }
.sotd-post-note { margin: 0.4rem 0 0; font-size: 0.94rem; color: var(--ink); }

/* Mobile: the desktop pass leaned into generous luxury whitespace and a
   larger root font-size — both work against a small screen where every
   line of scroll costs more. Tighten spacing and roll the type scale
   back toward standard mobile sizing without losing the identity. */
@media (max-width: 640px) {
  html { font-size: 16px; }
  body { line-height: 1.55; }
  .page { padding: 0 1rem 2.5rem; }

  .site-header { padding: 0.9rem 0; margin-bottom: 5rem; gap: 0.6rem 1rem; }
  .site-name { font-size: 1.45rem; }

  .mobile-nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; margin-left: auto; cursor: pointer;
    font-size: 1.15rem; color: var(--ink); background: none;
    border: 1px solid var(--rule-strong); border-radius: 14px;
  }
  .site-nav { display: none; }
  .site-nav.nav-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
    position: absolute; top: calc(100% + 0.5rem); right: 0; left: 0; z-index: 90;
    background: var(--card-bg); border: 1px solid var(--rule-strong); border-radius: 14px;
    box-shadow: var(--shadow-md); padding: 0.6rem 0.9rem;
  }
  .site-nav.nav-open a { padding: 0.55rem 0; width: 100%; }
  .site-nav.nav-open .nav-dropdown-panel { position: static; box-shadow: none; border: none; padding-left: 0.8rem; }

  .answer-strip, .infobox, .infobox-wide, .related, .notes-section,
  .community-section, .profile-section, .browse-grid, .filter-bar,
  .auth-form-wrap, .collection-actions, .perfume-hero {
    padding: 1.1rem 1.2rem;
  }
  .answer-strip { border-bottom: 1px solid var(--rule); }
  .answer-strip p { font-size: 0.92rem; margin-top: 0.5rem; }
  .answer-strip.inline { padding: 0; margin-top: 1rem; }

  .entity-title { font-size: 1.9rem; padding: 1.1rem 1.2rem 0; }
  .entity-title .entity-year { font-size: 0.85rem; }
  .perfume-hero { gap: 1rem; padding-bottom: 1.1rem; }
  .bottle-photo { max-width: 156px; max-height: 208px; }
  .bottle-silhouette { width: 110px; }
  .bottle-silhouette svg { width: 110px; height: 156px; }

  .stat-card { padding: 0.9rem 0.4rem; }
  .stat-num { font-size: 1.5rem; }
  .browse-tile { padding: 0.85rem 1rem; }
  .browse-tile strong { font-size: 1.1rem; }

  .listing-head, .listing-row { padding: 0.55rem 1.2rem; }
  .pagination { padding: 0.9rem 1.2rem; }
  .source-footer { padding: 0.75rem 1.2rem; }
  .note-visual { padding: 1rem 1.2rem 0; }

  .sotd-datenav, .sotd-form-wrap, .sotd-post, .sotd-login-prompt, .sotd-feed .no-comments { padding: 0.9rem 1.2rem; }
  .sotd-datenav strong { font-size: 1rem; }
}

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-top: 3rem; padding: 1.3rem 0; border-top: 1px solid var(--rule-strong); font-size: 0.82rem; color: var(--ink-soft); }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer-nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer-nav a:hover { color: var(--accent-ink); }
@media (max-width: 640px) { .site-footer { margin-top: 2rem; padding: 1rem 0; font-size: 0.78rem; } }

.site-name-logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.site-logo-icon { display: inline-block; width: 42px; height: 42px; flex-shrink: 0; }
@media (max-width: 640px) { .site-logo-icon { width: 32px; height: 32px; } }

#olf-search-suggest { position: absolute; top: calc(100% + 0.3rem); left: 0; width: 100%; max-width: 640px; max-height: 20rem; overflow-y: auto; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 60; }
#olf-search-suggest[hidden] { display: none; }
.olf-suggest-item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.8rem; text-decoration: none; color: var(--ink); font-size: 0.88rem; border-bottom: 1px solid var(--rule); }
.olf-suggest-item:last-child { border-bottom: none; }
.olf-suggest-item:hover, .olf-suggest-item.active { background: var(--paper-raised); }
.olf-suggest-type { flex-shrink: 0; font-family: var(--font-mono, monospace); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.olf-suggest-label { flex: 1; }
.olf-suggest-empty { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--ink-soft); }

.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; text-decoration: none; font-size: 1.1rem; color: var(--ink-soft); }
.notif-bell:hover { color: var(--accent-ink); }
.notif-badge { position: absolute; top: -0.15rem; right: -0.15rem; background: var(--amber, #B4622C); color: #fff; font-size: 0.6rem; font-weight: 600; line-height: 1; border-radius: 999px; padding: 0.18rem 0.32rem; min-width: 1rem; text-align: center; }
.notif-list { display: flex; flex-direction: column; }
.notif-item { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 1rem 1.9rem; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.notif-item:hover { background: var(--paper-raised); }
.notif-item.notif-unread { background: var(--paper-raised); border-left: 3px solid var(--accent); padding-left: calc(1.9rem - 3px); }
.notif-text strong { color: var(--accent-ink); }
.notif-time { font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; }

.like-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; color: var(--ink-soft); cursor: pointer; transition: all 0.15s ease; }
.like-btn:hover { border-color: var(--coral-ink); color: var(--coral-ink); }
.like-btn.liked { border-color: var(--coral-ink); color: var(--coral-ink); background: var(--paper-raised); }
.like-btn .like-icon { font-size: 0.85rem; }
.like-btn:not(.liked) .like-icon { opacity: 0.5; }
.sotd-post-body { display: flex; gap: 0.9rem; align-items: flex-start; }
.sotd-post-img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule-strong); background: var(--paper-raised); }
.sotd-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sotd-post-main-col { flex: 1; min-width: 0; }
.sotd-post-actions { margin-top: 0.5rem; }
.comment-actions { margin-top: 0.4rem; }

.suggestion-status { font-family: var(--font-mono, monospace); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 14px; padding: 0.12rem 0.4rem; border: 1px solid var(--rule-strong); color: var(--ink-soft); }
.suggestion-status-added { color: var(--accent-ink); border-color: var(--accent-ink); }
.suggestion-status-dismissed { opacity: 0.6; }

.verified-badge { margin: 0.5rem 0 0; font-size: 0.78rem; font-weight: 500; color: var(--accent-ink); }
.verified-badge a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.verified-badge a:hover { text-decoration-color: var(--accent-ink); }

/* Editorial homepage hero — a giant wordmark over real photography, framed
   within the site's normal 1020px content column (not full-bleed) with
   rounded corners so it reads as a designed banner, not a stray edge-to-edge
   slice. */
.home-hero {
  position: relative; min-height: 300px; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-md); margin-top: 1.6rem;
}
.home-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%; z-index: 0;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,7,5,0.85) 0%, rgba(8,7,5,0.3) 55%, rgba(8,7,5,0.05) 100%);
}
.home-hero-text { position: relative; z-index: 2; padding: 2rem 1.6rem 2.2rem; max-width: 640px; }
.home-hero-kicker { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #E8C468; margin-bottom: 0.7rem; }
.home-hero-title { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; margin: 0 0 0.7rem; color: #F5F1E6; line-height: 1.0; letter-spacing: -0.01em; }
.home-hero-sub { margin: 0; font-size: 1rem; max-width: 56ch; color: #E8E3D4; line-height: 1.6; font-family: var(--font-display); }
@media (min-width: 701px) {
  .home-hero { min-height: 460px; }
  .home-hero-text { padding: 2.8rem 3rem 3rem; }
  .home-hero-title { font-size: 3.8rem; }
  .home-hero-sub { font-size: 1.15rem; }
}
@media (max-width: 500px) {
  .home-hero { min-height: 280px; border-radius: 10px; margin-top: 1.1rem; }
  .home-hero-title { font-size: 2rem; }
  .home-hero-text { padding: 1.5rem 1.2rem 1.7rem; }
}

/* Full-bleed editorial hero for Stories articles with a real photo — shown
   directly (not blurred) since this is real photojournalism-style imagery,
   not a product shot needing separation from its own backdrop. */
.story-hero {
  position: relative; min-height: 320px; display: flex; align-items: flex-end;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  border-bottom: 1px solid var(--rule); border-radius: 0;
}
.story-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,7,5,0.88) 0%, rgba(8,7,5,0.45) 55%, rgba(8,7,5,0.05) 100%);
}
.story-hero-text { position: relative; z-index: 1; padding: 2.2rem 1.9rem 1.8rem; width: 100%; }
.story-hero-kicker { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #E8C468; margin-bottom: 0.5rem; }
.story-hero .entity-title { padding: 0; color: #F5F1E6; font-size: 2.4rem; }
.story-hero-dek { margin: 0.7rem 0 0; max-width: 62ch; color: #E8E3D4; font-size: 1.02rem; line-height: 1.55; }
@media (min-width: 701px) { .story-hero { min-height: 400px; } .story-hero .entity-title { font-size: 2.9rem; } }
@media (max-width: 500px) { .story-hero { min-height: 240px; } .story-hero .entity-title { font-size: 1.9rem; } .story-hero-text { padding: 1.5rem 1.3rem 1.4rem; } }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.3rem; padding: 1.3rem 1.9rem; }
.story-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--card-bg); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.story-card:hover { border-color: var(--accent-ink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.story-card-image { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--paper-raised); }
.story-card-body { padding: 0.9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; }
.story-card-category { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber); }
.story-card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.story-card-dek { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .story-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; } }
