/* 読みもの（/articles/）。ページは scripts/articles.mjs が生成する */
.rd-main { padding-top: 24px; padding-bottom: 48px; max-width: 820px; }
.rd-title { font-size: 1.5rem; margin: 0 0 6px; }
.rd-lead { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }

.rd-sec { margin-top: 24px; }
.rd-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rd-sec-h h2 { margin: 0; font-size: 1.2rem; }
.rd-sec-h small { color: var(--muted); font-size: 0.8rem; }

.rd-tip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.rd-tip { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--safe); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.rd-tip h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; }
.rd-tip h3 a, .rd-art h3 a { color: inherit; text-decoration: none; }
.rd-tip h3 a:hover, .rd-art h3 a:hover { color: var(--accent); }
.rd-tip ol { margin: 0; padding-left: 1.3em; font-size: 0.86rem; color: var(--muted); }
.rd-tip p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.rd-more { margin-top: auto; padding-top: 8px; align-self: flex-end; font-size: 0.8rem; font-weight: 700; }

.rd-art { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rd-thumb { background: linear-gradient(135deg, var(--accent), #7a5af8); border-radius: 10px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; min-height: 84px; text-decoration: none; }
.rd-art time, .rd-meta { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-art h3 { margin: 2px 0 4px; font-size: 1.05rem; line-height: 1.5; }
.rd-art p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rd-tags span { font-size: 0.72rem; background: var(--tag-bg); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
@media (max-width: 520px) {
  .rd-art { grid-template-columns: 1fr; gap: 8px; }
  .rd-thumb { min-height: 0; padding: 4px 10px; justify-self: start; font-size: 0.75rem; }
}

/* 個別ページ */
.rd-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 22px 18px; }
.rd-detail.is-tips { border-left: 5px solid var(--safe); }
.rd-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rd-kind { font-weight: 700; color: var(--accent); }
.rd-detail-title { font-size: 1.45rem; line-height: 1.45; margin: 8px 0 4px; }
.rd-summary { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--tag-bg); font-size: 0.9rem; }
.rd-steps { margin: 14px 0 0; padding: 12px 14px 12px 2.2em; border: 1px solid var(--border); border-left: 4px solid var(--safe); border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.rd-body { margin-top: 8px; line-height: 1.9; overflow-wrap: anywhere; }
.rd-body h2 { font-size: 1.15rem; margin: 26px 0 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.rd-body h3 { font-size: 1rem; margin: 18px 0 4px; }
.rd-body p { margin: 10px 0; }
.rd-body ul, .rd-body ol { margin: 8px 0; padding-left: 1.4em; }
.rd-h { font-size: 0.85rem; color: var(--muted); margin: 22px 0 6px; }
.rd-related { list-style: none; margin: 0; padding: 0; }
.rd-related li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; flex-wrap: wrap; }
.rd-related span { color: var(--muted); font-size: 0.78rem; }
.rd-sources { margin: 0; padding-left: 1.2em; font-size: 0.85rem; }
.rd-sources a { word-break: break-all; }
.rd-share { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 0.85rem; }
.rd-share .edit { margin-left: auto; color: var(--muted); }
.rd-main .disclaimer { margin-top: 20px; }
