/* =========================================================
   EN•joy 毎日ひらく柱：今日の2択投票 × 夜間JSON「今朝の旬」
   （patch_daily_hub.css v1）
   ・ホーム縦幅を圧迫しない極薄2列ブロック（PC幅全段対応）
   ・役立ちタブ：夜間リサーチJSON(enjoy_daily_feed.json)統合ボード
   ========================================================= */

.en-dh-svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -0.2em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.en-dh-svg.sm { width: 12px; height: 12px; }

/* --- 🏠 ホーム画面：極薄2列「今日の2択 × 今朝の旬」 --- */
.en-daily-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
html.en-pc-mode #view-home .en-daily-home-grid {
  grid-column: 1 / -1;
}

.en-dh-tile {
  position: relative;
  padding: 10px 11px;
  border-radius: var(--en-radius, 18px);
  background: var(--en-surface);
  border: 1.5px solid var(--en-border);
  box-shadow: var(--en-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.en-dh-tile.is-clickable {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease;
}
.en-dh-tile.is-clickable:active { transform: scale(0.98); }

.en-dh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.en-dh-kicker {
  font-size: 10.5px;
  font-weight: 900;
  color: var(--en-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.en-dh-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: var(--en-surface-2);
  color: var(--en-muted);
  white-space: nowrap;
}
.en-dh-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
html[data-en-color="dark"] .en-dh-badge.done,
html[data-en-color="cool"] .en-dh-badge.done { color: #34d399; }

.en-dh-q {
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.32;
  color: var(--en-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

/* 1タップ2択ボタン */
.en-dh-ab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.en-dh-ab-btn {
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--en-border);
  background: var(--en-surface-2);
  color: var(--en-text);
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.14s;
}
.en-dh-ab-btn:hover {
  border-color: var(--en-accent);
  color: var(--en-accent);
}
.en-dh-ab-btn.picked {
  background: var(--en-accent);
  border-color: var(--en-accent);
  color: #ffffff;
}

/* 投票後のミニパーセントバー */
.en-dh-res-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.en-dh-bar-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
}
.en-dh-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.en-dh-bar-track {
  height: 5px;
  border-radius: 99px;
  background: var(--en-surface-2);
  overflow: hidden;
}
.en-dh-bar-track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--en-muted);
}
.en-dh-bar-line.is-picked .en-dh-bar-track > i {
  background: linear-gradient(90deg, var(--en-accent), #f59e0b);
}

/* 右タイル：今朝の旬ミニ表示 */
.en-dh-shun-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.en-dh-shun-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--en-border);
}
.en-dh-shun-txt {
  min-width: 0;
  flex: 1;
}
.en-dh-shun-name {
  font-size: 12px;
  font-weight: 900;
  color: var(--en-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.en-dh-shun-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--en-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.en-dh-shun-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: var(--en-accent);
}

/* --- 🥬 役立ちタブ：夜間リサーチJSON統合ボード --- */
.en-tips-daily-hub {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: var(--en-radius, 18px);
  background: var(--en-surface);
  border: 1.5px solid var(--en-border);
  box-shadow: var(--en-shadow);
  margin-bottom: 10px;
}
.en-tips-daily-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.en-tips-daily-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--en-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.en-tips-daily-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
}
.en-tips-dtab {
  border: none;
  background: transparent;
  color: var(--en-muted);
  border-radius: 9px;
  padding: 6.5px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.en-tips-dtab.active {
  background: var(--en-surface);
  color: var(--en-accent);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.en-shun-card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 460px) {
  .en-shun-card-list { grid-template-columns: 1fr; }
}
.en-shun-card {
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 13px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
  cursor: pointer;
}
.en-shun-card img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.en-shun-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.en-nut-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.en-nut-chip {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  color: var(--en-text);
}

.en-trend-row {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
}
.en-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.en-trend-score {
  font-size: 10px;
  font-weight: 900;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #ea580c;
}