/* 採用済み12・13・19のみ。ホーム入口はui-home.cssで管理。 */

/* Beginner guide: simple explanatory rows rather than a card grid. */
html[data-ui="comfortable"] .home-beginner-guide {
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-ui="comfortable"] .home-beginner-kicker { font-size: 13px; }
html[data-ui="comfortable"] .home-beginner-title { font-size: 20px; }
html[data-ui="comfortable"] .home-beginner-lead { font-size: 14px; line-height: 1.65; }
html[data-ui="comfortable"] .home-beginner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
html[data-ui="comfortable"] .home-beginner-card {
  min-height: 64px;
  align-items: center;
  padding: 11px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
html[data-ui="comfortable"] .home-beginner-card:active { transform: scale(.98); background: var(--line); }
html[data-ui="comfortable"] .home-beginner-card.is-disabled:active { transform: none; background: var(--paper-dim); }
html[data-ui="comfortable"] .home-beginner-icon { background: transparent; color: var(--ink-soft); }
html[data-ui="comfortable"] .home-beginner-card-title { color: var(--ink); font-size: 15px; font-weight: 700; }
html[data-ui="comfortable"] .home-beginner-card-desc { font-size: 14px; line-height: 1.55; }
html[data-ui="comfortable"] .home-beginner-card-arrow { color: var(--ink-soft); }

/* Recent changes are reading content, with the same typography as the tools. */
html[data-ui="comfortable"] .update-codeblock {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
}
html[data-ui="comfortable"] .update-codeblock .codeblock-bar,
html[data-ui="comfortable"] .update-codeblock .log-prompt,
html[data-ui="comfortable"] .update-codeblock .log-cursor { display: none; }
html[data-ui="comfortable"] .update-codeblock .log-cursor { animation: none; }
html[data-ui="comfortable"] .codeblock-body {
  padding: 4px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
}
html[data-ui="comfortable"] .log-line {
  gap: 4px 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
html[data-ui="comfortable"] .log-date { color: var(--ink-soft); font-size: 13px; opacity: 1; }
html[data-ui="comfortable"] .log-title { color: var(--ink); }
html[data-ui="comfortable"] .log-line-highlight { background: var(--warning-bg); }
html[data-ui="comfortable"] .log-line-highlight .log-title { color: var(--ink); font-weight: 700; }

/* Plain section introductions. Standalone pages keep the heading for assistive technology. */
html[data-ui="comfortable"] .tab-intro {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-ui="comfortable"] #panel-berry > .tab-intro { padding: 0; }
html[data-ui="comfortable"] .tab-intro h2 { margin: 0 0 5px; font-size: 20px; line-height: 1.35; }
html[data-ui="comfortable"] .tab-intro p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
html[data-ui="comfortable"][data-standalone-page] .tab-intro h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Event timeline list badges stay inside each item; calendar table sizing is untouched. */
html[data-ui="comfortable"] .timeline,
html[data-ui="comfortable"] .timeline .month-section,
html[data-ui="comfortable"] .timeline .date-group,
html[data-ui="comfortable"] .timeline .update-item { box-sizing: border-box; min-width: 0; max-width: 100%; }
html[data-ui="comfortable"] .timeline .update-item-row { min-width: 0; flex-wrap: wrap; }
html[data-ui="comfortable"] .timeline .cat-tag-group {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
html[data-ui="comfortable"] .timeline .update-title {
  flex: 1 1 16em;
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
html[data-ui="comfortable"] .timeline .detail-hint {
  flex: 0 0 auto;
  min-width: max-content;
  align-self: flex-start;
  margin-left: auto;
  font-size: 12px;
}
html[data-ui="comfortable"] .timeline .cat-tag { font-size: 12px; }

/* Narrow comparison and ingredient tools reflow before they can widen the page. */
@media (max-width: 760px) {
  html[data-ui="comfortable"] .home-beginner-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  html[data-ui="comfortable"] .ingcalc__toggle-row { flex-wrap: wrap; align-items: stretch; }
  html[data-ui="comfortable"] .ingcalc__typesel { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; gap: 8px; }
  html[data-ui="comfortable"] .ingcalc__typebtns { margin-left: 0; }
  html[data-ui="comfortable"] .ingcalc__pctbtn { min-height: 40px; margin-left: auto; font-size: 12px; }
}
