:root {
  --paper: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #1E252B;
  --ink-2: #4A5560;
  --ink-3: #7C8893;
  --line: #DCE2E7;
  --graphite: #3A4148;      /* buttons */
  --graphite-hover: #2C3238;
  --steel: #5E7488;         /* gray-blue accent */
  --steel-soft: #E6ECF1;
  --signal: #F2791C;        /* counts and status */
  --signal-soft: #FFF1E5;
  --quadro: #E3B000;        /* 577 nm, hemoglobin */
  --mela: #A3213A;          /* 694 nm ruby, melanin */
  --derma: #2F78A8;         /* 2940 nm, water */
  --general: #7C8893;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); font-feature-settings: "tnum" 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
#app { outline: none; min-height: calc(100vh - 64px); padding-bottom: 80px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; color: var(--graphite); }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--steel-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--steel-soft); }
.top-actions, #userSlot { display: flex; align-items: center; gap: 10px; }
.lang-wrap { position: relative; display: inline-flex; align-items: center; color: var(--steel); }
.lang-wrap .globe { position: absolute; left: 9px; width: 16px; height: 16px; pointer-events: none; }
.lang { appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E7488' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 10px 6px; border-radius: var(--radius); padding: 6px 28px 6px 32px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--steel); }
.lang:hover { border-color: var(--steel); }
.me-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--steel); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--graphite); background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 10px 18px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--graphite-hover); }
.btn.ghost { background: transparent; color: var(--graphite); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--graphite); background: var(--surface); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 13px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px var(--steel-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: var(--radius); cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--graphite); }
.check:has(input:checked) { border-color: var(--graphite); }
.error { color: #B3261E; font-size: 14px; min-height: 1.4em; margin: 0 0 12px; }

/* device swatches */
.dev { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dev::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--general)); }
.c-dermablate { --c: var(--derma); }
.c-melastar { --c: var(--mela); }
.c-quadrostar { --c: var(--quadro); }
.c-general { --c: var(--general); }

/* page banner (consistent at top of every member page) */
.banner { background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.banner .wrap { padding-top: 32px; padding-bottom: 24px; }
.banner h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
.banner p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.banner-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- spectrum (signature element) ---------- */
.spectrum { width: 100%; height: auto; overflow: visible; }
.spectrum text { font-family: var(--font); }
.spectrum .tick { fill: var(--ink-3); font-size: 11px; }
.spectrum .axis { stroke: var(--line); stroke-width: 1; }
.spectrum .mk { cursor: pointer; }
.spectrum .mk .stem { stroke-width: 2; }
.spectrum .mk .name { font-size: 15px; font-weight: 700; fill: var(--ink); }
.spectrum .mk .nm { font-size: 13px; fill: var(--ink-2); font-weight: 500; }
.spectrum .mk .target { font-size: 12px; fill: var(--ink-3); }
.spectrum .mk .count { font-size: 12px; fill: var(--signal); font-weight: 700; }
.spectrum .mk:hover .name, .spectrum .mk:focus .name { fill: var(--steel); }
.spectrum .mk:focus { outline: none; }
.spectrum .mk:focus-visible .halo { stroke: var(--steel); stroke-width: 2; }
.spectrum .mk.dim { opacity: .35; }

/* ---------- landing ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 18ch; font-weight: 750; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-spectrum { margin: 56px 0 16px; padding: 28px 28px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.hero-spectrum figcaption { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 24px 0 0; padding: 0; list-style: none; }
.stats b { display: block; font-size: 32px; color: var(--signal); line-height: 1.1; letter-spacing: -0.02em; }
.stats span { color: var(--ink-2); font-size: 14px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); margin-top: 48px; }
.how h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--ink-2); }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0 0; border-top: 1px solid var(--line); align-items: start; }
.join h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
.join p { color: var(--ink-2); margin: 0 0 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--graphite); }

/* ---------- feed ---------- */
.feed-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.search { max-width: 260px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.item { display: grid; grid-template-columns: 4px 1fr auto; gap: 0 18px; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item:hover { background: #FAFBFC; }
.item .bar { background: var(--c); border-radius: 0 3px 3px 0; }
.item .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.item h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.item .excerpt { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .side { text-align: right; font-size: 13px; color: var(--ink-3); display: grid; gap: 4px; align-content: start; white-space: nowrap; }
.item .side b { color: var(--signal); font-size: 15px; }
.type { font-weight: 700; color: var(--steel); }
.status { color: var(--signal); font-weight: 700; }
.thumbs { display: flex; gap: 6px; margin-top: 10px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 16px; }
.aside h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink-2); }
.aside section { margin-bottom: 32px; }
.mini-event { display: block; text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); }
.mini-event b { display: block; }
.mini-event span { font-size: 13px; color: var(--ink-3); }
.date { color: var(--signal); font-weight: 700; font-size: 13px; }

/* ---------- post ---------- */
.post { max-width: 780px; }
.post h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; margin: 8px 0 12px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.byline b { color: var(--ink); }
.body { white-space: pre-wrap; font-size: 16px; line-height: 1.75; margin-bottom: 28px; }
.params { width: 100%; border-collapse: collapse; margin: 0 0 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; }
.params caption { text-align: left; font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0 0 8px; }
.params th, .params td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.params tr:last-child th, .params tr:last-child td { border-bottom: 0; }
.params th { width: 38%; color: var(--ink-2); font-weight: 500; background: #FAFBFC; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 28px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.post-actions { display: flex; gap: 10px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.post-actions .spacer { flex: 1; }
.replies h2 { font-size: 18px; margin: 0 0 16px; }
.reply { padding: 18px 0; border-bottom: 1px solid var(--line); }
.reply.answer { border-left: 3px solid var(--signal); padding-left: 16px; background: var(--signal-soft); border-radius: 0 6px 6px 0; border-bottom: 0; margin-bottom: 8px; }
.reply-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; color: var(--ink-3); }
.reply-head b { color: var(--ink); }
.reply p { margin: 0; white-space: pre-wrap; }
.reply .btn { margin-top: 10px; }
.reply-form { margin-top: 24px; }
.reply-form textarea { min-height: 110px; }

/* ---------- write ---------- */
.write { max-width: 780px; }
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 20px; background: var(--surface); text-align: center; color: var(--ink-2); cursor: pointer; }
.dropzone:hover { border-color: var(--steel); }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.previews figure { margin: 0; position: relative; }
.previews img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.previews button { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(30,37,43,.8); color: #fff; border-radius: 4px; font-size: 12px; padding: 2px 6px; cursor: pointer; }
.consent { background: var(--signal-soft); border: 1px solid #F8D3B3; border-radius: 10px; padding: 16px; margin: 16px 0 24px; font-size: 14px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--signal); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }

/* ---------- meetups ---------- */
.events { display: grid; gap: 16px; max-width: 860px; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; align-items: start; }
.event .when { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.event .when b { display: block; font-size: 30px; line-height: 1; color: var(--signal); letter-spacing: -0.02em; }
.event .when span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.event h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.event .where { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; }
.event .note { margin: 0 0 10px; font-size: 14px; white-space: pre-wrap; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people .avatar { width: 28px; height: 28px; font-size: 11px; }
.event.past { opacity: .6; }
.section-title { font-size: 15px; color: var(--ink-2); margin: 32px 0 12px; }
details.add { max-width: 860px; margin-bottom: 24px; }
details.add summary { cursor: pointer; list-style: none; display: inline-flex; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { margin-bottom: 16px; }

/* ---------- members ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.member .avatar { width: 40px; height: 40px; }
.member h3 { margin: 0; font-size: 16px; }
.member p { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.member .devs { display: flex; gap: 10px; flex-wrap: wrap; }

/* toast, lightbox */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--graphite); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
#lightbox::backdrop { background: rgba(20,25,30,.85); }
#lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
#lightbox .btn { margin: 12px auto 0; display: flex; color: #fff; border-color: rgba(255,255,255,.4); }

.back { display: inline-flex; gap: 6px; text-decoration: none; color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.back:hover { color: var(--ink); }

@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; }
  .aside { order: -1; }
  .aside section:not(.keep) { display: none; }
  .how, .join { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .wrap, .topbar-in { padding: 0 16px; }
  .topbar-in { gap: 12px; }
  .brand span { display: none; }
  .nav a { padding: 8px; font-size: 14px; }
  .me-chip span { display: none; }
  .row2, .param-grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 4px 1fr; padding-right: 16px; }
  .item .side { grid-column: 2; text-align: left; display: flex; gap: 12px; margin-top: 8px; }
  .event { grid-template-columns: 64px 1fr; }
  .event .actions { grid-column: 1 / -1; }
  .hero { padding-top: 40px; }
  .hero-spectrum { padding: 16px 0 8px 12px; }
  .spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-right: -16px; }
  .spec-scroll svg { min-width: 760px; }
  .hero-spectrum figcaption { padding-right: 12px; }
  .lang { padding-right: 24px; }
  .search { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-spectrum .mk { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-spectrum .mk:nth-of-type(2) { animation-delay: .12s; }
  .hero-spectrum .mk:nth-of-type(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

.going-count { font-size: 13px; color: var(--ink-2); align-self: center; margin-left: 4px; }
.going-count b { color: var(--signal); }
.side b { color: var(--signal); font-size: 15px; }

/* ===== site structure v0.2 ===== */
.topbar-in { gap: 20px; }
.nav { align-items: center; }
.nav a, .dd-btn { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.dd { position: relative; }
.dd-btn { border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 500; font-size: 15px; }
.dd-btn svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
.dd-btn:hover, .dd-btn[aria-current="page"] { background: var(--steel-soft); color: var(--ink); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: none; box-shadow: 0 10px 30px rgba(30,37,43,.10); z-index: 30; }
.dd-btn[aria-expanded="true"] + .dd-menu { display: grid; }
@media (hover: hover) and (min-width: 1081px) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; } }
.dd-menu a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 9px 10px; }
.dd-menu a small { color: var(--ink-3); font-size: 12px; }
.dd-note { margin: 4px 10px 6px; font-size: 12px; color: var(--ink-3); }
.lock { font-size: 11px; font-weight: 600; color: var(--steel); background: var(--steel-soft); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 7px 10px; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--graphite); }
.menu-btn svg { width: 18px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#userSlot .btn.small { white-space: nowrap; }

/* home */
.home-hero { padding: 64px 0 24px; background: linear-gradient(var(--surface), var(--paper)); }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 20ch; font-weight: 750; }
.home-hero .lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0 0 28px; }
.map-wrap { margin-top: 40px; position: relative; }
.worldmap { width: 100%; height: auto; display: block; }
.worldmap .land { fill: none; stroke: #C9D3DC; stroke-width: 3.4; stroke-linecap: round; }
.worldmap .cap { fill: none; stroke: var(--steel); stroke-width: 4; stroke-linecap: round; opacity: .55; }
.worldmap .member .core { fill: var(--signal); stroke: #fff; stroke-width: 1.5; }
.worldmap .member .ring { fill: var(--signal); opacity: .18; }
.worldmap .member { cursor: default; outline: none; }
.worldmap .member:focus-visible .core { stroke: var(--ink); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .worldmap .member .ring { transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out calc(var(--i) * .08s) 1 both; }
  @keyframes ping { 0% { transform: scale(.2); opacity: .6; } 100% { transform: scale(1); opacity: .18; } }
}
.map-wrap figcaption { position: absolute; left: 24px; bottom: 8px; max-width: 300px; }
.map-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 12px; }
.map-title b { color: var(--signal); font-size: 28px; }
.map-wrap .stats { gap: 28px; margin: 0 0 10px; }
.map-wrap .stats b { font-size: 24px; }
.map-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.home-devices { padding: 56px 0 24px; }
.home-devices h2, .home-events h2, .prose h2, .device-body h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-lede { color: var(--ink-2); margin: 0 0 24px; }
.dev-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.dev-col { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 22px; }
.dev-col:hover { border-color: var(--c); }
.dev-col h3 { margin: 8px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.dev-col p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.dev-col .more { font-weight: 600; font-size: 14px; color: var(--steel); }
.home-video { margin: 48px 0 0; background: #11161B; }
.home-video video { display: block; width: 100%; max-height: 72vh; object-fit: cover; }
.home-events { padding: 8px 0 56px; }
.home-events .banner-flex { align-items: center; margin-bottom: 16px; }
.event-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-row .mini-event { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.muted { color: var(--ink-3); }
.join-band { background: var(--graphite); color: #fff; padding: 48px 0; }
.join-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.join-band h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.join-band p { margin: 0; color: #C9D3DC; }
.join-band .btn { background: var(--signal); border-color: var(--signal); }

/* about / prose */
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose .hero-spectrum { margin: 40px 0; }

/* device page */
.device-banner { border-top: 5px solid var(--c); }
.device-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.device-head h1 { font-size: 40px; margin: 6px 0 12px; }
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin: 24px 0 0; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.device-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--steel-soft) 0 12px, #EEF2F5 12px 24px); display: grid; place-items: center; color: var(--ink-3); font-size: 14px; border: 1px solid var(--line); overflow: hidden; }
.device-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.device-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.device-body h2 { font-size: 20px; margin-top: 8px; }
.tags { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--surface); border: 1px solid var(--c, var(--line)); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.tags.quiet li { border-color: var(--line); color: var(--ink-2); }
.device-body .hero-spectrum { margin-top: 8px; padding: 16px; }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: start; }
.auth-side { color: var(--ink-2); padding-top: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 32px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; }
.foot-brand b { color: var(--graphite); }
.foot-brand p { color: var(--ink-3); font-size: 13px; max-width: 56ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.foot-nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.foot-nav a:hover { color: var(--ink); }
.foot-copy { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; margin: 0; }
#app { min-height: auto; padding-bottom: 72px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { flex-wrap: wrap; }
  .nav { order: 10; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .nav a, .dd-btn { width: 100%; justify-content: space-between; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: grid; }
  .dd-btn svg { display: none; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .dev-cols, .event-row, .device-head, .device-body, .auth, .foot { grid-template-columns: 1fr; }
  .map-wrap figcaption { position: static; max-width: none; margin-top: 16px; }
}
@media (max-width: 680px) {
  #userSlot .btn.ghost { display: none; }
  .home-hero { padding-top: 36px; }
  .lang { max-width: 120px; }
}
@media (max-width: 1080px) {
  .topbar-in { height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .nav.open { background: var(--surface); max-height: calc(100vh - 80px); overflow-y: auto; }
  .brand span { display: none; }
}
.home-devices + .home-video + .how { border-top: 0; margin-top: 0; }

.device-photo { position: relative; }
.device-photo img { position: absolute; inset: 0; }

/* ===== v0.3 ASCP brand ===== */
.wordmark-sm { font-weight: 800; letter-spacing: 0.04em; color: var(--graphite); font-size: 15px; }
.wordmark-sm em { font-style: normal; font-weight: 500; letter-spacing: 0.14em; color: var(--steel); font-size: 12px; margin-left: 4px; }
.center { text-align: center; }
.home-hero .center .lede { margin-left: auto; margin-right: auto; }
.home-hero .center .hero-actions { justify-content: center; }
.wordmark { margin: 8px auto 20px; max-width: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.wm-top { font-size: clamp(72px, 13vw, 168px); font-weight: 900; letter-spacing: -0.045em; color: var(--ink); display: inline-flex; align-items: center; gap: .12em; }
.wm-dots { display: inline-flex; flex-direction: column; gap: .07em; margin-right: .02em; }
.wm-dots i { width: .13em; height: .13em; border-radius: 50%; background: var(--c); display: block; }
.wm-bottom { font-size: clamp(15px, 2.15vw, 27px); font-weight: 600; letter-spacing: 0.52em; margin-right: -0.52em; color: var(--steel); padding-top: .5em; border-top: 2px solid var(--ink); width: 100%; text-align: center; }
.home-hero h1.wordmark { font-size: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .wm-dots i { animation: dotIn .6s cubic-bezier(.2,.8,.2,1) both; }
  .wm-dots i:nth-child(2) { animation-delay: .1s; } .wm-dots i:nth-child(3) { animation-delay: .2s; }
  @keyframes dotIn { from { transform: scale(0); } }
}

/* menu cards */
.home-menu { padding: 48px 0 8px; }
.menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.menu-cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.menu-card { --c: var(--general); display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.menu-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.menu-card:hover { border-color: var(--c); transform: translateY(-2px); }
.menu-card .kicker { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.menu-card .mc-title { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 4px; color: var(--ink); }
.menu-card.big .mc-title { font-size: clamp(36px, 4vw, 52px); }
.menu-card .mc-sub { font-size: 15px; font-weight: 600; color: var(--c); }
.menu-card p { color: var(--ink-2); margin: 14px 0 18px; font-size: 15px; flex: 1; }
.menu-card .more { font-weight: 700; font-size: 14px; color: var(--graphite); }
.menu-cards.two .menu-card .mc-title { font-size: 28px; }

/* board preview */
.home-board { padding: 48px 0 8px; }
.home-board .banner-flex { align-items: flex-end; margin-bottom: 8px; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.board-mini h3 { margin: 0; font-size: 18px; }
.board-mini .more { font-size: 14px; color: var(--steel); text-decoration: none; font-weight: 600; }
.board-mini ul { list-style: none; margin: 12px 0 0; padding: 0; }
.board-mini li a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.board-mini .ttl { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-mini .when { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.board-mini .dev::before { width: 8px; height: 8px; }
.banner-actions { display: flex; gap: 8px; }
.h1-dev { font-size: 15px; vertical-align: middle; margin-left: 8px; }
.photo-lock { font-size: 13px; color: var(--steel); margin: 8px 0 0; }

/* video: same width as content, smaller */
.home-video { margin: 48px auto 0; background: none; }
.home-video video { width: 100%; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #11161B; display: block; }

/* device page specs */
.device-short { display: inline-block; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; color: #fff; background: var(--c); border-radius: 6px; padding: 3px 10px; }
.params.spec th { width: 34%; }
.params.clinical th { background: #FAFBFC; font-size: 13px; color: var(--ink-2); }
.params.clinical td { vertical-align: top; font-size: 14px; }
.params.clinical td.src { color: var(--ink-3); font-size: 13px; }
.fine { font-size: 13px; color: var(--ink-3); margin: -16px 0 32px; }

/* other lasers */
.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
.other { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.other h3 { margin: 0 0 4px; font-size: 18px; }
.other .tech { color: var(--steel); font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.other p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* distributors */
.dist-country h2 { font-size: 20px; margin: 32px 0 12px; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.dist h3 { margin: 0 0 8px; font-size: 18px; }
.dist .devs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dist .devs span { font-size: 12px; background: var(--steel-soft); color: var(--steel); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.dist dl { margin: 0; display: grid; gap: 6px; }
.dist dl div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
.dist dt { color: var(--ink-3); }
.dist dd { margin: 0; overflow-wrap: anywhere; }
.dist .note { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.dist details.edit { margin-top: 12px; }
.dist details.edit summary { cursor: pointer; font-size: 14px; color: var(--steel); }
.dist-form { margin: 12px 0; }

@media (max-width: 900px) {
  .menu-cards, .menu-cards.two, .board-cols { grid-template-columns: 1fr; }
  .wm-bottom { letter-spacing: 0.3em; margin-right: -0.3em; }
}
/* v0.3 fixes */
.wm-bottom { white-space: nowrap; width: auto; letter-spacing: 0.34em; margin-right: -0.34em; font-size: clamp(13px, 2vw, 24px); }
.wordmark { align-items: stretch; }
.wm-top { justify-content: center; }
.home-board { padding: 48px 24px 8px; }
.home-events { padding: 8px 24px 56px; }
.how.wrap { padding-left: 24px; padding-right: 24px; }
.home-video.wrap { padding: 0 24px; }
.nav { gap: 0; }
.nav a, .dd-btn { padding: 8px 9px; font-size: 14.5px; }
.brand { gap: 8px; }
.wordmark-sm em { display: none; }
@media (min-width: 1300px) { .wordmark-sm em { display: inline; } }
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 10; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .nav.open { display: flex; background: var(--surface); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav a, .dd-btn { width: 100%; justify-content: space-between; font-size: 15px; padding: 10px 12px; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: grid; }
  .dd-btn svg { display: none; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 680px) { .home-board, .home-events, .how.wrap, .home-video.wrap { padding-left: 16px; padding-right: 16px; } }
.wordmark { align-items: center; }
.wm-bottom { border-top: 0; padding-top: .35em; }
.wm-top { border-bottom: 3px solid var(--ink); padding-bottom: .06em; }
.home-video.wrap { margin-bottom: 56px; }

.tagline { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); margin: 4px auto 28px; }

/* v0.4: map text centered on the map */
.map-wrap figcaption { position: absolute; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -46%); max-width: 460px; width: max-content; text-align: center;
  background: radial-gradient(closest-side, rgba(246,248,250,.96) 62%, rgba(246,248,250,0)); padding: 48px 72px; pointer-events: none; }
.map-wrap .stats { justify-content: center; }
.map-title { font-size: 24px; }
.worldmap .member .core { fill: var(--signal); stroke: #fff; stroke-width: 1.2; }
@media (max-width: 900px) { .map-wrap figcaption { position: static; transform: none; width: auto; max-width: none; padding: 16px 0 0; background: none; } }

/* ===== v0.5 photo-hero layout (centered logo + centered menu over full-bleed media) ===== */
.topbar { position: fixed; left: 0; right: 0; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); transition: background .25s, border-color .25s, color .25s; color: var(--ink); }
body { padding-top: 124px; }
body.is-home { padding-top: 0; }
.topbar-row { max-width: 1280px; margin: 0 auto; padding: 14px 28px 4px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.brand-center { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; line-height: 1; }
.bc-top { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.bc-bottom { font-size: 10.5px; font-weight: 600; letter-spacing: 0.42em; margin-right: -0.42em; margin-top: 6px; opacity: .85; }
.topbar .nav { max-width: 1280px; margin: 0 auto; padding: 6px 28px 10px; display: flex; justify-content: center; gap: 18px; flex-basis: auto; order: 0; }
.topbar .nav a, .topbar .dd-btn { color: inherit; font-size: 15px; font-weight: 600; padding: 8px 10px; background: none; }
.topbar .nav a:hover, .topbar .dd-btn:hover, .topbar .nav a[aria-current="page"], .topbar .dd-btn[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topbar .lock { background: rgba(94,116,136,.15); color: inherit; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--graphite); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 8px; }
.icon-btn svg { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.topbar .lang { background-color: transparent; color: inherit; border-color: rgba(127,140,150,.35); }
.topbar .lang-wrap { color: inherit; }
.topbar .lang option { color: var(--ink); }
.menu-btn { display: none !important; }
/* transparent header over the hero */
.topbar.over { background: linear-gradient(rgba(10,14,18,.55), rgba(10,14,18,0)); border-color: transparent; color: #fff; backdrop-filter: none; }
.topbar.over .pill { background: rgba(255,255,255,.95); color: var(--ink); }
.topbar.over .lang { border-color: rgba(255,255,255,.45); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.topbar.over .avatar { background: rgba(255,255,255,.9); color: var(--ink); }
.dd-menu { color: var(--ink); }

/* drawer (hamburger sitemap) */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(15,20,25,.45); }
.drawer-in { position: absolute; top: 0; right: 0; height: 100%; width: min(720px, 100%); background: var(--surface); padding: 96px 48px 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; align-content: start; overflow-y: auto; }
.dr-col h3 { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; font-weight: 700; }
.dr-col a { display: block; padding: 7px 0; font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.dr-col a:hover { color: var(--steel); }
body.drawer-open { overflow: hidden; }
body.drawer-open .topbar { z-index: 70; }

/* full-bleed hero */
.hero-full { position: relative; height: 100vh; min-height: 560px; max-height: 1080px; overflow: hidden; background: #1B232B radial-gradient(ellipse at 50% 30%, #3A4A58, #12181E 70%); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(8,12,16,.35), rgba(8,12,16,0) 35%, rgba(8,12,16,0) 55%, rgba(8,12,16,.55)); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; padding: 0 24px; }
.hero-tag { margin: 0 auto 28px; font-size: clamp(26px, 4vw, 54px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; max-width: 18ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-cue { display: inline-grid; place-items: center; width: 48px; height: 48px; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 50%; }
.hero-cue svg { width: 18px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .hero-cue { animation: bob 2.4s ease-in-out infinite; } @keyframes bob { 50% { transform: translateY(6px); } } }
.map-section { padding: 72px 0 24px; background: var(--paper); }

@media (max-width: 1080px) {
  .topbar .nav { display: none; }
  body { padding-top: 76px; }
  .topbar-row { padding-bottom: 12px; }
}
@media (max-width: 680px) {
  .topbar-row { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .tb-side:first-child { display: none; }
  .brand-center { align-items: flex-start; }
  .bc-top { font-size: 26px; }
  .bc-bottom { font-size: 8.5px; letter-spacing: .3em; }
  .topbar .lang-wrap { display: none; }
  .drawer-in { grid-template-columns: 1fr; padding: 88px 24px 32px; }
  .hero-full { height: 88vh; }
}
.drawer-in { padding-top: 156px; }
.topbar.over { border-bottom: 0; }
@media (max-width: 1080px) { .drawer-in { padding-top: 104px; } }

/* v0.6: dot map centered in the hero */
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 128px 24px 6vh; gap: 0; bottom: auto; }
.hero-map { width: min(1100px, 88vw); margin-bottom: 2vh; }
.hero-map .worldmap .land { stroke: rgba(255,255,255,.30); }
.hero-map .worldmap .cap { stroke: rgba(255,255,255,.55); opacity: 1; }
.hero-map .worldmap .member .core { stroke: rgba(10,14,18,.6); }
.hero-map .worldmap .member .ring { opacity: .3; }
.hero-tag { margin-bottom: 22px; }
.hero-full { max-height: none; }
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0; }
.stats-strip .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.stats-strip .map-title { font-size: 20px; font-weight: 750; margin: 0; }
.stats-strip .stats { margin: 0; gap: 32px; }
.stats-strip .stats b { font-size: 26px; }
.stats-strip .map-note { margin: 0; flex: 1; min-width: 240px; text-align: right; }
@media (max-width: 900px) { .stats-strip .map-note { text-align: left; } .hero-map { width: 96vw; } }
@media (max-width: 680px) { .hero-content { padding-top: 90px; } }
/* v0.7 device photos */
.mc-img { display: block; height: 220px; margin: -26px -26px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.mc-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.device-photo { background: #fff; }
.device-photo img { padding: 16px; }
.device-photo:has(img) span { display: none; }
.menu-card.c-dermablate { --c: var(--derma); } .menu-card.c-melastar { --c: var(--mela); } .menu-card.c-quadrostar { --c: var(--quadro); } .menu-card.c-general { --c: var(--steel); }
/* v0.8: tagline lower, clear of the video's own captions */
.hero-content { justify-content: center; padding-bottom: 24vh; }
.hero-tag { position: absolute; left: 0; right: 0; bottom: 11vh; margin: 0 auto; padding: 0 24px; max-width: none; font-size: clamp(24px, 3.2vw, 44px); }
.hero-cue { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); }
.hero-shade { background: linear-gradient(rgba(8,12,16,.40), rgba(8,12,16,.05) 30%, rgba(8,12,16,.05) 55%, rgba(8,12,16,.75)); }
@media (prefers-reduced-motion: no-preference) { .hero-cue { animation: bob2 2.4s ease-in-out infinite; } @keyframes bob2 { 50% { transform: translate(-50%, 6px); } } }
@media (max-width: 680px) { .hero-content { padding-bottom: 30vh; } .hero-tag { bottom: 13vh; } }
/* v0.9: tagline even lower */
.hero-tag { bottom: 8.5vh; }
.hero-cue { width: 38px; height: 38px; bottom: 2vh; }
.hero-cue svg { width: 14px; height: 9px; }
@media (max-width: 680px) { .hero-tag { bottom: 10vh; } }
/* v1.0: tagline near the bottom edge */
.hero-tag { bottom: 6vh; }
.hero-cue { width: 30px; height: 30px; bottom: 1vh; border-width: 1px; }
.hero-cue svg { width: 12px; height: 8px; }
@media (max-width: 680px) { .hero-tag { bottom: 7.5vh; } }
/* v1.1: keep the text box full height now that the map is gone, so the tagline stays at the bottom */
.hero-content { inset: 0; top: 0; bottom: 0; padding: 0; }
/* v1.2: backlit glow on the hero tagline */
.hero-tag { isolation: isolate; color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.65), 0 0 18px rgba(255,255,255,.45), 0 0 42px rgba(255,196,140,.55), 0 0 80px rgba(242,121,28,.45); }
.hero-tag::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1000px, 88vw); height: 170px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,214,170,.42), rgba(242,121,28,.20) 55%, rgba(242,121,28,0) 100%); filter: blur(14px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tag::before { animation: backlight 6s ease-in-out infinite; }
  @keyframes backlight { 0%, 100% { opacity: .85; } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
}
@media (max-width: 680px) { .hero-tag::before { height: 200px; } }
/* v1.3: hover dropdown stays open while moving the mouse into it */
@media (hover: hover) and (min-width: 1081px) {
  .topbar .dd-menu { display: grid; visibility: hidden; opacity: 0; top: 100%; margin-top: 8px;
    transition: opacity .15s ease, visibility 0s linear .3s; }
  .topbar .dd-menu::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; height: 16px; } /* hover bridge over the gap */
  .topbar .dd:hover .dd-menu, .topbar .dd:focus-within .dd-menu, .topbar .dd-btn[aria-expanded="true"] + .dd-menu { visibility: visible; opacity: 1; transition-delay: 0s; }
}
/* v1.4: board description on one line on wide screens */
.banner p.one-line, p.one-line { max-width: none; }
.banner-flex > div:first-child { flex: 1 1 auto; min-width: 0; }
@media (min-width: 1000px) { p.one-line { white-space: nowrap; } }
/* v1.5: board — filters, search and write button on one row; no side column */
.board-filters { justify-content: flex-start; flex-wrap: nowrap; gap: 12px; }
.board-filters .search { flex: 1 1 auto; max-width: none; }
.board-filters .btn { flex: none; height: 42px; padding: 0 22px; }
.board-filters .seg { flex: none; }
@media (max-width: 680px) { .board-filters { flex-wrap: wrap; } .board-filters .search { flex-basis: 100%; order: 2; } .board-filters .btn { order: 1; margin-left: auto; } }
/* v1.6: helpful count under each post */
.item .helpful { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.item .helpful svg { width: 15px; height: 15px; fill: currentColor; }
.item .helpful b { color: var(--signal); font-size: 14px; }
.item .helpful.mine { color: var(--signal); }

.profile-side { display: grid; gap: 20px; align-content: start; }
/* v1.8: case sharing split by laser */
.laser-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.laser-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.laser-tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.laser-tab small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.laser-tab:hover { border-color: var(--c, var(--graphite)); }
.laser-tab[aria-current="page"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.laser-tab[aria-current="page"] small { color: #C9D3DC; }
.laser-tab.c-dermablate[aria-current="page"] { background: var(--derma); border-color: var(--derma); }
.laser-tab.c-melastar[aria-current="page"] { background: var(--mela); border-color: var(--mela); }
.laser-tab.c-quadrostar[aria-current="page"] { background: var(--quadro); border-color: var(--quadro); color: var(--ink); }
.laser-tab.c-quadrostar[aria-current="page"] i { background: var(--ink); }
.dd-menu a.dd-sub { padding-left: 24px; font-size: 14px; }
.dd-menu a.dd-sub .dev { font-weight: 800; }
.laser-tab[aria-current="page"] i { background: #fff; }

/* v1.9: desktop menu stays one row between 1081px and 1240px (old mobile rules no longer apply) */
@media (min-width: 1081px) {
  .topbar .nav { flex-direction: row; align-items: center; flex-wrap: nowrap; max-height: none; overflow: visible; background: none; }
  .topbar .nav a, .topbar .dd-btn { width: auto; justify-content: flex-start; font-size: 15px; padding: 8px 10px; }
  .topbar .dd-menu { position: absolute; padding: 6px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30,37,43,.10); }
  .topbar .dd-btn svg { display: inline; }
  .topbar-row { flex-wrap: nowrap; }
}
