:root {
  --bg: #f4f6f5;
  --panel-bg: #ffffff;
  --text: #1a1f1c;
  --text-muted: #667069;
  --border: #e1e5e2;
  --accent: #0f4d3a;
  --accent-contrast: #ffffff;
  --badge-warning-bg: #fef3c7; --badge-warning-text: #92610a;
  --badge-good-bg: #dcfce7; --badge-good-text: #166534;
  --badge-neutral-bg: #e5e7eb; --badge-neutral-text: #4b5563;
}

body.dark {
  --bg: #12161a;
  --panel-bg: #1c2126;
  --text: #eef1ef;
  --text-muted: #9aa3a0;
  --border: #2d343a;
  --accent: #34d399;
  --accent-contrast: #0b1210;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 1.6rem; }
.brand h1 { font-size: 1.1rem; margin: 0; }
.subtitle { margin: 2px 0 0; font-size: 0.75rem; color: var(--text-muted); }

.mode-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.mode-btn {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
}
.mode-btn.selected {
  background: var(--accent);
  color: var(--accent-contrast);
}

.banner {
  background: #fef3c7;
  color: #78350f;
  font-size: 0.78rem;
  text-align: center;
  padding: 6px;
}

.app-main {
  display: grid;
  grid-template-columns: 260px 1.4fr 340px;
  grid-template-areas: "control map summary";
  gap: 14px;
  padding: 14px;
}

@media (max-width: 960px) {
  .app-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "summary"
      "control";
  }
}

.control-panel { grid-area: control; display: flex; flex-direction: column; gap: 14px; }
.map-panel { grid-area: map; }
.summary-panel { grid-area: summary; }

.control-panel, .map-panel, .summary-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.control-block h2, .summary-header h2, .trend-block h3 {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.control-hint { font-size: 0.72rem; color: var(--text-muted); margin: 0 0 8px; }

.date-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.date-chip {
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.75rem;
}
.date-chip.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.date-chip.pending { color: var(--text-muted); cursor: not-allowed; }

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.meta-list { margin: 0; font-size: 0.78rem; }
.meta-list div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-muted); }
.meta-list dt { font-weight: 500; color: var(--text); }

#map { height: 460px; width: 100%; border-radius: 8px; }

.image-type-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.image-type-btn {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.75rem;
}
.image-type-btn.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.legend-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #22c55e, #eab308, #ef4444);
}
.legend-bar.grayscale {
  background: linear-gradient(90deg, #111111, #ffffff);
}
/* 2026-11-24: 変動量（青＝遠ざかる、白＝0、赤＝近づく）と干渉縞（色1周）の見本 */
.legend-bar.diverging {
  background: linear-gradient(90deg, #053061, #4393c3, #f7f7f7, #d6604d, #67001f);
}
.legend-bar.cyclic {
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.map-caption { font-size: 0.72rem; color: var(--text-muted); margin: 8px 0 0; }

.summary-header { display: flex; justify-content: space-between; align-items: center; }
.badges { display: flex; gap: 6px; }
.badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--badge-neutral-bg);
  color: var(--badge-neutral-text);
  white-space: nowrap;
}
.badge.warning { background: var(--badge-warning-bg); color: var(--badge-warning-text); }
.badge.good { background: var(--badge-good-bg); color: var(--badge-good-text); }

.stats-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.stat-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.stat-icon { font-size: 1rem; }
.stat-value { font-size: 0.85rem; font-weight: 600; }
.stat-desc { font-size: 0.72rem; color: var(--text-muted); }

.trend-block { margin: 14px 0; }
.trend-chart { min-height: 60px; }
.trend-note { font-size: 0.68rem; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.trend-empty { font-size: 0.72rem; color: var(--text-muted); }

.result-summary { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.action-row { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.share-status { font-size: 0.72rem; color: var(--accent); min-height: 1em; margin-top: 6px; }

.app-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 16px;
}

/* 2026-11-29: 降灰の可能性レイヤー */
.ash-legend { font-size: 0.75rem; line-height: 1.9; }
.ash-swatch { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.ash-swatch.high { background: rgba(90, 80, 75, 0.82); }
.ash-swatch.mid { background: rgba(150, 140, 130, 0.59); }
.ash-details { font-size: 0.75rem; margin: 6px 0; }
.ash-details summary { cursor: pointer; color: var(--accent); }
.ash-details ul { margin: 2px 0 6px; padding-left: 18px; }
.ash-h { margin: 6px 0 0; font-weight: bold; }
.ash-point { color: #c0392b; font-size: 16px; font-weight: bold; text-align: center; line-height: 18px; text-shadow: 0 0 2px #fff; }

/* 2026-11-29: 「まなぶ」タブ */
[hidden] { display: none !important; }
.view-tabs { display: flex; gap: 4px; }
.view-tab { border: 1px solid var(--border); background: transparent; color: var(--text); padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; }
.view-tab.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.help-btn { border: 1px solid var(--border); background: var(--bg); color: var(--accent); width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; line-height: 1; cursor: pointer; margin-left: 6px; vertical-align: middle; padding: 0; }
.learn-view { padding: 14px; }
.learn-wrap { max-width: 860px; margin: 0 auto; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.learn-intro h2, .lesson h2 { font-size: 1.15rem; margin: 0 0 8px; }
.learn-intro p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lesson-card { text-align: left; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; }
.lesson-card:hover { border-color: var(--accent); }
.lesson-card:disabled { opacity: 0.55; cursor: not-allowed; }
.lesson-meta { font-size: 0.72rem; color: var(--text-muted); margin: 0; }
.lesson-level { display: inline-block; background: var(--badge-good-bg); color: var(--badge-good-text); border-radius: 999px; padding: 1px 8px; margin-right: 6px; }
.lesson-title { font-weight: bold; font-size: 0.92rem; }
.lesson-one { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.lesson p { font-size: 0.9rem; line-height: 1.8; }
.lesson .lesson-lead { font-weight: bold; }
.lesson h3 { font-size: 0.9rem; margin: 18px 0 6px; }
.lesson-figure { margin: 10px 0; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.lesson-figure svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; color: var(--text); }
.term { border: none; background: none; padding: 0; font: inherit; color: inherit; border-bottom: 1px dashed var(--accent); cursor: help; }
.term-pop { font-size: 0.8rem !important; background: var(--bg); border-left: 3px solid var(--accent); padding: 6px 10px; margin: 4px 0 10px; }
.back-btn { border: none; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 0.82rem; margin-bottom: 10px; }
.sat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.sat-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.sat-card h4 { margin: 0 0 6px; font-size: 0.92rem; }
.sat-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0 0 6px; font-size: 0.75rem; }
.sat-card dt { color: var(--text-muted); }
.sat-card dd { margin: 0; }
.sat-card p { font-size: 0.75rem !important; line-height: 1.6 !important; margin: 0; }
.lesson-steps { font-size: 0.88rem; line-height: 1.8; padding-left: 20px; }
.lesson-tip { background: var(--badge-warning-bg); color: var(--badge-warning-text); border-radius: 8px; padding: 8px 12px; font-size: 0.82rem !important; }
.try-btn { margin: 8px 0; }
.lesson-links { font-size: 0.85rem; padding-left: 20px; }
.lesson-links a { color: var(--accent); }
.lesson-sources { font-size: 0.72rem !important; color: var(--text-muted); }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.8rem; }
.lesson-nav a { color: var(--accent); text-decoration: none; }
.glossary { margin-top: 20px; }
.glossary h3 { font-size: 0.95rem; margin: 0 0 8px; }
.glossary dl { margin: 0; }
.glossary-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.8rem; }
.glossary dt { font-weight: bold; }
.glossary dd { margin: 0; color: var(--text-muted); }
@media (max-width: 600px) {
  .glossary-row { grid-template-columns: 1fr; gap: 2px; }
  .learn-wrap { padding: 14px; }
}

/* 2026-11-29: スマホ（幅960px以下）の並び。解析日と表示レイヤーを地図の上に、注意書きをいちばん下に */
@media (max-width: 960px) {
  body { display: flex; flex-direction: column; min-height: 100vh; }
  .app-header { order: 1; }
  .app-main, .learn-view { order: 2; }
  .banner { order: 3; margin: 0 14px; border-radius: 8px; }
  .app-footer { order: 4; }
  .app-main {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);   /* 横スクロールの日付が画面幅を押し広げないように */
    grid-template-areas: "date" "layers" "map" "summary" "ash" "data";
  }
  .control-block, .map-panel, .summary-panel { min-width: 0; }
  .control-panel { display: contents; }
  .cb-date { grid-area: date; }
  .cb-layers { grid-area: layers; }
  .ash-block { grid-area: ash; }
  .cb-data { grid-area: data; }
  .control-block { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
  .control-block h2 { margin-bottom: 6px; }
  .cb-date .control-hint { display: none; }
  .date-selector { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .date-chip { flex: 0 0 auto; }
  .cb-layers .layer-toggle { display: inline-flex; margin: 0 12px 4px 0; }
  #map { height: 380px; }
}

/* 2026-11-29: 指で操作する画面で、1本指で地図に触れたときの案内 */
.map-gesture-hint {
  position: absolute; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 0.95rem; font-weight: bold;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.map-gesture-hint.show { opacity: 1; }

/* ---- 2026-11-30: 桜島の鼓動・発射場ピン・活断層 ---- */
.pulse-block { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-bg); }
.pulse-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pulse-head h3 { margin: 0; font-size: 0.9rem; }
.pulse-slider { width: 100%; margin: 10px 0 4px; accent-color: var(--accent); }
.pulse-date { margin: 0 0 6px; font-size: 0.85rem; font-weight: bold; }
.pulse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pulse-label { margin: 0 0 2px; font-size: 0.72rem; color: var(--text-muted); }
@media (max-width: 960px) { .pulse-grid { grid-template-columns: minmax(0, 1fr); } }
.pulse-heart span { display: block; width: 28px; height: 28px; border-radius: 50%; background: rgba(224, 123, 32, 0.85); box-shadow: 0 0 0 4px rgba(224, 123, 32, 0.25); animation: beat var(--beat, 1.6s) ease-in-out infinite; transform: scale(var(--s, 1)); }
.pulse-heart.deflate span { background: rgba(31, 78, 140, 0.85); box-shadow: 0 0 0 4px rgba(31, 78, 140, 0.25); }
@keyframes beat { 0%, 100% { transform: scale(var(--s, 1)); } 15% { transform: scale(calc(var(--s, 1) * 1.25)); } 30% { transform: scale(var(--s, 1)); } 45% { transform: scale(calc(var(--s, 1) * 1.12)); } }
@media (prefers-reduced-motion: reduce) { .pulse-heart span { animation: none; } }
.space-pin { font-size: 20px; line-height: 26px; text-align: center; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4)); }
.fault-note { margin-top: 6px; }
.lesson-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.lesson-photo { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.lesson-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lesson-photo .photo-missing { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); background: var(--badge-neutral-bg); }
.lesson-photo figcaption { padding: 6px 8px; font-size: 0.72rem; line-height: 1.5; }
.lesson-photo .credit { display: block; color: var(--text-muted); }
.sat-card .sat-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; display: block; }
.timeline { list-style: none; padding: 0; margin: 10px 0; border-left: 3px solid var(--accent); }
.timeline li { position: relative; padding: 4px 0 8px 14px; font-size: 0.85rem; line-height: 1.6; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.timeline .tl-date { font-weight: bold; margin-right: 6px; }
.pulse-head .btn { flex: 0 0 auto; width: auto; padding: 6px 14px; }
/* 断面図を横いっぱいに（2026-11-30） */
/* 鼓動：出来事の凡例と表示（2026-11-30） */
.pulse-legend { margin: 2px 0 6px; font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; }
.pulse-legend .lg { font-weight: bold; margin-right: 2px; }
.pulse-legend .lg.v, .pulse-ev.v::before { color: #c0392b; }
.pulse-legend .lg.q, .pulse-ev.q::before { color: #2b6cd9; }
.pulse-events { min-height: 1.4em; margin: 0 0 6px; font-size: 0.78rem; }
.pulse-ev { display: block; }
.pulse-ev::before { content: "┊ "; font-weight: bold; }
/* 2026-11-30: 凡例を1行ずつ、切替ボタンを地図の上に、鼓動の注釈 */
.pulse-legend { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.pulse-legend .lg-sw { flex: 0 0 auto; }
.map-panel .image-type-switch { margin: 0 0 8px; }
.pulse-notes { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.pulse-notes h3 { font-size: 0.85rem; margin: 0 0 6px; }
/* まなぶ：レベルごとの色（2026-11-30） */
.lesson-level.lv-basic { background: #e3edf9; color: #1f4e8c; }
.lesson-level.lv-try   { background: #fdebd6; color: #9a4b0c; }
.lesson-level.lv-adv   { background: #ece4f7; color: #5b3a94; }
body.dark .lesson-level.lv-basic { background: #1d3150; color: #a9c8f0; }
body.dark .lesson-level.lv-try   { background: #4a3017; color: #f5c58f; }
body.dark .lesson-level.lv-adv   { background: #352850; color: #cdb8ef; }
/* 地図のピン */
.map-pin { background: none; border: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35)); }
/* 鼓動の地図表示の試作（案A：基線、案B：波紋） */
.sta-label { font-size: 11px; padding: 1px 5px; }
.sta-arrow { background: none; border: none; }
.sta-arrow span { position: absolute; left: 0; top: 0; display: block; font-size: 24px; line-height: 1; text-align: center; font-weight: bold; text-shadow: 0 0 3px #fff, 0 0 3px #fff; transition: transform 0.3s; }
.pulse-ripple { background: none; border: none; }
.pulse-ripple i { position: absolute; left: 0; top: 0; width: var(--size, 120px); height: var(--size, 120px); margin: calc(var(--size, 120px) / -2) 0 0 calc(var(--size, 120px) / -2); border: 3px solid #e07b20; border-radius: 50%; opacity: 0; pointer-events: none; }
.pulse-ripple.on i { animation: ripple var(--dur, 3s) ease-out infinite; }
.pulse-ripple.on i:nth-child(2) { animation-delay: calc(var(--dur, 3s) / 3); }
.pulse-ripple.on i:nth-child(3) { animation-delay: calc(var(--dur, 3s) * 2 / 3); }
@keyframes ripple { 0% { transform: scale(0.15); opacity: 0.85; } 100% { transform: scale(1); opacity: 0; } }
/* 変動サマリーの前置きと、誤差の範囲の行（2026-11-30） */
.stat-lead { font-size: 0.75rem; color: var(--text-muted); margin: 0 0 6px; line-height: 1.6; }
.stat-row.stat-dim { opacity: 0.6; }
.trend-note .tn-orange { color: #c2621f; font-weight: bold; }
.trend-note .tn-red { color: #c0392b; font-weight: bold; }
body.dark .trend-note .tn-orange { color: #f0a066; }
body.dark .trend-note .tn-red { color: #f08a7e; }

/* 2026-12-01: スマホで写真が枠からはみ出さないように */
.sat-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.sat-card, .lesson-photo { min-width: 0; }
.sat-card img, .lesson-photo img { max-width: 100%; height: auto; }
.sat-card .sat-photo, .lesson-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.lesson-photos { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* 2026-12-01: 鼓動の再生中に下の部分が上下に動かないよう、高さを固定（画面幅ではなく鼓動の枠の幅で切り替え） */
#pulseBlock { container-type: inline-size; }
.pulse-head { min-height: 2.6em; }
.pulse-head h3 { min-width: 0; }
.pulse-grid { grid-template-columns: minmax(0, 1fr); }
.pulse-date { min-height: 6em; }
.pulse-events { height: 6.4em; min-height: 0; overflow: hidden; line-height: 1.6; }
.pulse-ev { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@container (min-width: 560px) {
  .pulse-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .pulse-date { min-height: 3.2em; }
  .pulse-events { height: 3.3em; }
  .pulse-ev { display: block; white-space: nowrap; text-overflow: ellipsis; }
}

/* 2026-12-01: 鼓動の日付と数値を3行に分け、数字の幅をそろえて再生中に文字がずれないように */
.pulse-date { font-variant-numeric: tabular-nums; line-height: 1.6; min-height: 4.8em; }
.pulse-date .pv-line { display: block; }
#pulseValue .pv-line { font-weight: normal; }
@container (max-width: 559px) { .pulse-date { min-height: 6.4em; } }

/* 2026-12-01: 再生ボタンの横に「次の出来事へ」ボタン */
.pulse-btns { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.pulse-btns .btn { flex: 0 0 auto; width: auto; padding: 6px 12px; white-space: nowrap; }
@container (max-width: 559px) {
  .pulse-head { flex-wrap: wrap; }
  .pulse-head h3 { flex: 1 1 100%; }
  .pulse-btns { flex: 1 1 100%; justify-content: flex-end; }
}

/* 2026-12-01: 空白を詰める。日付の欄は3行分、出来事は一番近い1件を最大2行で表示。上下の空きはそれぞれ1行ほど */
.pulse-date { min-height: 4.8em; margin-bottom: 0; }
@container (max-width: 559px) { .pulse-date { min-height: 4.8em; } }
.pulse-events { height: 3.2em; margin: 1.1em 0 0.6em; }
@container (min-width: 560px) { .pulse-events { height: 3.2em; } }
.pulse-ev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
@container (min-width: 560px) { .pulse-ev { display: -webkit-box; white-space: normal; } }

