:root {
  --bg: #0c0d10;
  --fg: #e4e6ea;
  --muted: #7d828a;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.08);
  --card: #161820;
  --card-hover: #1c1e28;
  --border: #25272e;
  --amber: #f5c542;
  --red: #f07070;
  --surface: #111318;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

/* ============ Header ============ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 0;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

header h1 a {
  color: var(--accent);
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

/* ============ Nav ============ */
nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  border-top: 1px solid var(--border);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: transparent;
  transition: all 0.12s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

/* ============ Search bar ============ */
.search-bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

#search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

#search-input:focus {
  border-color: var(--accent);
}

#search-input::placeholder {
  color: var(--muted);
}

.search-clear {
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 4px;
  user-select: none;
}

.search-clear:hover {
  color: var(--fg);
}

.search-count {
  color: var(--accent);
  font-size: 0.75rem;
  white-space: nowrap;
}

.clickable-tag {
  cursor: pointer;
  transition: background 0.1s;
}

.clickable-tag:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============ View toggle ============ */
.view-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.view-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 5px 9px;
  line-height: 1;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.view-btn:hover {
  color: var(--fg);
  border-color: #555;
}

.view-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* List view overrides */
.view-list .article-list {
  gap: 2px;
}

.view-list .article {
  padding: 0.45rem 1rem;
  background: transparent;
  border-color: transparent;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.view-list .article:hover {
  background: var(--card);
  border-color: var(--border);
}

.view-list .summary {
  display: none;
}

.view-list .title-original {
  display: none;
}

.view-list .article .title {
  font-size: 0.875rem;
  margin-bottom: 3px;
  -webkit-line-clamp: 2;
}

.view-list .article-header {
  margin-bottom: 3px;
}

.view-list .tags .tag {
  font-size: 0.65rem;
  padding: 1px 6px;
}

.view-list .article .tags {
  margin-top: 3px;
}

/* ============ Main ============ */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* ============ Section ============ */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title .count {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ============ Article card ============ */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: background 0.12s, border-color 0.12s;
  position: relative;
  cursor: pointer;
}

.article:hover {
  background: var(--card-hover);
  border-color: #33363e;
}

/* Article header: source + date + importance */
.article-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.source-badge {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.68rem;
  padding: 1px 6px;
  background: var(--accent-dim);
  border-radius: 3px;
  text-decoration: none;
}
a.source-badge:hover {
  opacity: 0.8;
}

.article-header .date {
  color: var(--muted);
}

.importance {
  color: var(--amber);
  font-weight: 700;
  margin-left: auto;
}

/* ============ Source badge colors ============ */
/* Anthropic: 紫 */
[data-source^="anthropic"],
[data-source^="claude"] {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
}
/* OpenAI: 緑 */
[data-source^="openai"] {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}
/* Google: 青 */
[data-source^="google"] {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}
/* arXiv / HuggingFace (research): オレンジ */
[data-source^="arxiv"],
[data-source^="hf"] {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.08);
}
/* Meta / Llama: 青緑 */
[data-source^="gh-meta"] {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
/* DeepSeek: 水色 */
[data-source^="gh-deepseek"] {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}
/* Mistral: 珊瑚 */
[data-source^="gh-mistral"],
[data-source^="mistral"] {
  color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
/* Qwen / Alibaba: ピンク */
[data-source^="gh-qwen"] {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
}
/* Cohere: 黄緑 */
[data-source^="cohere"] {
  color: #a3e635;
  background: rgba(163, 230, 53, 0.08);
}
/* Stability AI: マゼンタ */
[data-source^="stability"] {
  color: #e879f9;
  background: rgba(232, 121, 249, 0.08);
}

/* Title — stretched link (entire card is clickable) */
.article .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  display: block;
  line-height: 1.45;
}

.article .title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article:hover .title {
  color: var(--accent);
}

/* elements that should stay above the stretched link overlay */
.article .tags,
.article .source-badge,
.article .clickable-tag {
  position: relative;
  z-index: 1;
}

.title-original {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
  opacity: 0.65;
}

/* Summary */
.summary {
  margin-top: 8px;
  white-space: pre-line;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #b4b9c2;
}

/* Commentary */
.commentary {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(245, 197, 66, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #9da2ab;
}

.commentary-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 3px;
  margin-right: 4px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.tag {
  background: var(--border);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 500;
}

/* Importance borders */
.importance-5 { border-left: 3px solid var(--red); }
.importance-4 { border-left: 3px solid var(--amber); }
.importance-3 { border-left: 3px solid var(--accent); }
.importance-2 { border-left: 3px solid #3d4048; }
.importance-1 { border-left: 3px solid #2a2d33; opacity: 0.75; }
.importance-0 { border-left: 3px solid transparent; opacity: 0.5; }

/* ============ Compact list (unsummarized) ============ */
.article-list.compact {
  gap: 2px;
}

.article-compact {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: background 0.1s;
}

.article-compact:hover {
  background: var(--card);
}

.article-compact a {
  color: var(--fg);
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-compact a:hover {
  color: var(--accent);
}

.meta-inline {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ Article detail page ============ */
.article-detail {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.detail-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.detail-date {
  color: var(--muted);
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.detail-original-title {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.detail-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.detail-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.detail-summary {
  white-space: pre-line;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #c8cdd4;
}

.detail-commentary {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #b0b5bc;
}

.audience-tags {
  display: flex;
  gap: 8px;
}

.audience-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

.audience-developer { background: rgba(94, 234, 212, 0.08); color: #5eead4; }
.audience-researcher { background: rgba(167, 139, 250, 0.08); color: #a78bfa; }
.audience-business { background: rgba(245, 197, 66, 0.08); color: #f5c542; }

.detail-source-link {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-source-link a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.detail-source-link a:hover {
  text-decoration: underline;
}

.detail-source-url {
  color: var(--muted);
  font-size: 0.7rem;
  word-break: break-all;
}

.detail-nav {
  margin-top: 1.5rem;
}

.detail-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.detail-nav a:hover {
  color: var(--accent);
}

/* ============ Article pagination ============ */
.article-pagination {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagination-prev,
.pagination-next {
  flex: 1;
}

.pagination-next {
  text-align: right;
}

.pagination-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.pagination-link:hover {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.04);
}

.pagination-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.pagination-title {
  font-size: 0.88rem;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .article-pagination {
    flex-direction: column;
  }
  .pagination-next {
    text-align: left;
  }
}

/* ============ Pro section ============ */
.pro-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.03), rgba(94, 234, 212, 0.03));
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: 10px;
  position: relative;
}

.pro-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #f5c542, #e8a817);
  color: #0c0d10;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pro-section h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f5c542;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.pro-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #c0c5ce;
}

.pro-content h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber);
  margin: 1.2rem 0 0.4rem;
  border: none;
  padding: 0;
}

.pro-content h2:first-child {
  margin-top: 0;
}

.pro-content p {
  margin: 0.4rem 0;
}

.pro-content ul, .pro-content ol {
  padding-left: 1.2rem;
  margin: 0.4rem 0;
}

/* ============ Related articles ============ */
.related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-item {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.related-item a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.related-item a:hover {
  color: var(--accent);
}

.related-meta {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ============ Source page ============ */
.source-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.source-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
}

.source-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.source-meta a { color: var(--accent); }

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

/* ============ Legal pages ============ */
.legal-page { line-height: 1.8; }
.legal-page h2 { margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.legal-page h3 { margin-top: 1.5rem; color: var(--accent); }
.legal-page h4 { margin-top: 1rem; color: var(--muted); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
.legal-page th, .legal-page td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.legal-page th { background: var(--card); color: var(--accent); white-space: nowrap; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-updated { color: var(--muted); font-size: 0.85rem; }
.legal-page hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============ Footer ============ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  line-height: 2;
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .header-inner { padding: 0 1rem 0.75rem; }
  header h1 { font-size: 1.3rem; }
  nav { padding: 0.5rem 1rem; gap: 4px; }
  nav a { font-size: 0.65rem; padding: 3px 7px; }
  main { padding: 1rem 1rem 2rem; }
  .article { padding: 0.85rem 1rem; }
  .article .title { font-size: 0.92rem; }
  .article-compact { flex-direction: column; gap: 2px; }
}

/* ============ Pro Gate ============ */
.pro-section {
  position: relative;
}

.pro-gated {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  max-height: 200px;
  overflow: hidden;
}

.pro-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 60%);
}

.pro-gate-inner {
  text-align: center;
  padding: 1.5rem;
}

.pro-gate-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pro-gate-message {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pro-gate-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.pro-gate-btn:hover { opacity: 0.85; }

/* ============ Glossary Tooltips ============ */
.glossary-term {
  border-bottom: 1px dashed var(--accent);
  cursor: help;
  text-decoration: none;
  position: relative;
  display: inline;
}

.glossary-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--fg);
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.glossary-term:hover::after,
.glossary-term:focus::after {
  opacity: 1;
}

/* スマホ: タップしても消えないようにフォーカス維持 */
@media (hover: none) {
  .glossary-term:active::after {
    opacity: 1;
  }
}

/* ============ Glossary Sidebar ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.article-layout-full {
  grid-template-columns: 1fr;
}

.glossary-sidebar {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.glossary-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 3rem);
}

.glossary-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}

.glossary-sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.glossary-sidebar-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
  line-height: 1;
}

.glossary-sidebar-toggle:hover { color: var(--fg); }

@media (min-width: 861px) {
  .glossary-sidebar-toggle { display: none; }
}

.glossary-sidebar-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.glossary-sidebar-item {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.glossary-sidebar-item:last-child { border-bottom: none; }

.glossary-sidebar-term {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.glossary-sidebar-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.glossary-sidebar-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.glossary-all-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}

.glossary-all-link:hover { text-decoration: underline; }

/* FABボタン（サイドバーが閉じているとき） */
.glossary-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 50;
}

/* スマホ: サイドバーを下部ドロワーに */
@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .glossary-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 50vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }

  .glossary-sidebar.open {
    transform: translateY(0);
  }

  .glossary-sidebar.open .glossary-sidebar-toggle {
    display: block;
  }

  .glossary-fab {
    display: block;
  }
}

/* ============ Glossary Page ============ */
.glossary-page h2 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.glossary-search-bar {
  margin: 1rem 0 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.glossary-search-bar input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--fg);
  font-size: 0.9rem;
}

.glossary-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.glossary-group { margin-bottom: 2rem; }

.glossary-group-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.glossary-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.glossary-entry-term {
  font-weight: 600;
  color: var(--fg);
}

.glossary-entry-desc { color: var(--muted); line-height: 1.5; }

.glossary-entry-articles {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.glossary-entry-articles a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 0.5rem;
}

.glossary-entry-articles a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   会員機能 / 認証 / pricing
   ═══════════════════════════════════════════════ */

/* Pro nav link */
nav .nav-pro {
  margin-left: auto;
  background: var(--accent);
  color: #fff !important;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
nav .nav-pro:hover { opacity: 0.85; }

/* Pro gate login hint */
.pro-gate-login { margin-top: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.pro-gate-login a { color: #fff; text-decoration: underline; }

/* Members page */
.members-main { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

.member-status-bar {
  display: flex; align-items: center; gap: 1rem;
  background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px;
  padding: 0.6rem 1rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: #2e7d32;
}
.member-status-bar span { flex: 1; }
.logout-btn {
  background: none; border: 1px solid #a5d6a7; border-radius: 4px;
  padding: 0.25rem 0.75rem; cursor: pointer; color: #2e7d32; font-size: 0.8rem;
}
.logout-btn:hover { background: #c8e6c9; }

.members-hero { text-align: center; padding: 2.5rem 1rem; }
.members-hero h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #6c63ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.members-hero p { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }

.section-heading {
  font-size: 1.1rem; font-weight: 600; margin: 2rem 0 1.2rem; color: var(--fg);
  border-bottom: 2px solid var(--border); padding-bottom: 0.5rem;
}

.pricing-section { margin-bottom: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; position: relative; display: flex; flex-direction: column; gap: 1rem;
}
.pricing-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pricing-card-founding { border-color: #f59e0b; }

.pricing-card-badge {
  position: absolute; top: -0.6rem; left: 1rem;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 4px; letter-spacing: 0.04em;
}
.founding-badge { background: #f59e0b; }

.pricing-card-header { display: flex; flex-direction: column; gap: 0.25rem; }
.plan-name { font-size: 1rem; font-weight: 700; color: var(--fg); }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--fg); }
.plan-period { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.plan-price-annual { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

.plan-features { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.plan-features li { font-size: 0.875rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.feature-ok::before { content: "✓"; color: #22c55e; position: absolute; left: 0; font-weight: 700; }
.feature-no::before { content: "✗"; color: var(--border); position: absolute; left: 0; }
.feature-no { opacity: 0.5; }

.plan-btn {
  display: block; text-align: center; padding: 0.65rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.15s;
}
.plan-btn:hover { opacity: 0.85; }
.plan-btn-primary { background: var(--accent); color: #fff; }
.plan-btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--fg); }
.plan-btn-founding { background: #f59e0b; color: #fff; }
.plan-note { font-size: 0.75rem; color: var(--muted); margin: 0; line-height: 1.5; }
.plan-notice { font-size: 0.75rem; color: var(--muted); margin: 0.75rem 0 0; text-align: center; line-height: 1.5; }

.auth-section {
  max-width: 480px; margin: 0 auto 3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 0.75rem; background: none; border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--muted); font-weight: 500; transition: background 0.15s;
}
.auth-tab:hover { background: var(--bg); }
.auth-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; background: var(--surface); }

.auth-panel { padding: 1.5rem; }
.auth-panel h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.auth-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 0.6rem; }
.auth-form label { font-size: 0.82rem; font-weight: 600; color: var(--fg); }
.auth-form input {
  padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--fg); font-size: 0.9rem; width: 100%; box-sizing: border-box;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }

.auth-error {
  font-size: 0.82rem; color: #ef4444; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 6px; padding: 0.5rem 0.75rem;
}
.auth-submit {
  margin-top: 0.25rem; padding: 0.65rem; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.85; }
.auth-submit:disabled { opacity: 0.5; cursor: default; }
.auth-terms { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.auth-terms a { color: var(--accent); }

.logged-in-info { text-align: center; padding: 1rem 0; }
.logged-in-icon { font-size: 2.5rem; color: #22c55e; margin-bottom: 0.5rem; }
.logged-in-info h3 { margin-bottom: 0.25rem; }
.logged-in-info p { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0; }

.faq-section { margin-bottom: 3rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-item summary {
  padding: 0.85rem 1rem; cursor: pointer; font-weight: 500; font-size: 0.9rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1rem 0.85rem; font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center;
}
.newsletter-cta-inner { max-width: 520px; margin: 0 auto; }
.newsletter-cta h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.newsletter-cta p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 1.25rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto 0.75rem; }
.newsletter-form input {
  flex: 1; padding: 0.6rem 0.85rem; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; background: rgba(255,255,255,0.08); color: #fff; font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
  padding: 0.6rem 1.2rem; background: var(--accent); color: #fff; border: none;
  border-radius: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 0.9rem;
}
.newsletter-form button:hover { opacity: 0.85; }
.newsletter-form button:disabled { opacity: 0.5; cursor: default; }
.newsletter-msg { font-size: 0.85rem; margin-top: 0.5rem; }
.newsletter-msg-ok { color: #86efac; }
.newsletter-msg-err { color: #fca5a5; }
.newsletter-pro-link { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.75rem; }
.newsletter-pro-link a { color: rgba(255,255,255,0.7); }

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .members-main { padding: 1rem 1rem 3rem; }
}

/* ============ Nav Dropdown ============ */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
  padding: 0.35rem 1rem 0.5rem;
}
.site-nav a {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--border);
  color: var(--fg);
}
.nav-group {
  position: relative;
  display: inline-flex;
}
.nav-group-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: none;
  background: none;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  font-family: inherit;
}
.nav-group-btn:hover {
  background: var(--border);
  color: var(--fg);
}
.nav-group-arrow { font-size: 0.6rem; margin-left: 2px; }
.nav-group-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 100;
}
.nav-group-dropdown a {
  display: block;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0;
}
.nav-group-dropdown a:hover, .nav-group-dropdown a.active {
  background: var(--border);
  color: var(--fg);
}
.nav-group.open .nav-group-dropdown { display: block; }
.nav-group:hover .nav-group-dropdown { display: block; }

/* ============ Load More button ============ */
.load-more-wrap { text-align: center; padding: 1.5rem 0 0.5rem; }
.load-more-btn {
  display: inline-block;
  padding: 0.55rem 2rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.load-more-btn:hover { background: var(--border); color: var(--fg); }

/* ============ About page ============ */
.about-main { max-width: 800px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.about-hero { text-align: center; padding: 2rem 0 2.5rem; }
.about-hero h2 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem;
}
.about-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.about-section:last-child { border-bottom: none; }
.about-section h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--accent);
}
.about-content { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
.about-content p { margin: 0 0 0.75rem; }
.about-content strong { color: var(--fg); }
.about-sources-table, .about-importance-table, .about-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.about-sources-table th, .about-importance-table th, .about-plan-table th {
  background: var(--border);
  padding: 0.45rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
}
.about-sources-table td, .about-importance-table td, .about-plan-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.about-sources-table td:first-child, .about-category {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.about-sources-table a { color: var(--accent); text-decoration: none; }
.about-sources-table a:hover { text-decoration: underline; }
.importance-cell { text-align: center; }
.about-plan-table td:nth-child(2), .about-plan-table td:nth-child(3), .about-plan-table td:nth-child(4) {
  text-align: center; color: var(--fg);
}
.about-note { font-size: 0.78rem; color: var(--muted); opacity: 0.7; margin-top: 0.5rem; }
.about-cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.about-cta-link:hover { opacity: 0.85; }
.nav-about { font-size: 0.78rem !important; opacity: 0.7; }

/* ============ Archive Gate (48h) ============ */
.archive-gate {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 50%);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  z-index: 10;
  margin-top: -60px; /* overlap the blurred body above */
}
.archive-gate-inner { max-width: 480px; }
.archive-gate-title {
  font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0 0.35rem;
}
.archive-gate-sub {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem;
}
.archive-gate-actions { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.archive-gate-login { font-size: 0.82rem; color: var(--muted); }
.archive-gate-login a { color: var(--accent); text-decoration: underline; }

/* ============ Sidebar Pro Gate ============ */
.sidebar-pro-gate {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.75rem;
  height: 100%;
  min-height: 180px;
}
.sidebar-pro-gate-title {
  font-size: 0.82rem; color: var(--muted); margin: 0.25rem 0 0.5rem;
}
.pro-gate-btn-sm {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.9rem !important;
}

/* ============ Article CTA banners ============ */
.article-cta {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  border: 1px solid #c7d7f5;
}
.article-cta-pro {
  background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
}
.article-cta-inner { text-align: center; }
.article-cta-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.3rem; }
.article-cta-sub { font-size: 0.83rem; color: var(--muted); margin: 0 0 1rem; }
.article-cta-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.article-cta-btn:hover { opacity: 0.85; }
.article-cta-btn-pro {
  background: linear-gradient(135deg, var(--accent), #6c63ff);
}

@media (max-width: 600px) {
  .archive-gate { margin-top: -40px; }
  .article-cta { padding: 1rem 1rem; }
}

/* ── billing toggle (Pro plan monthly/yearly) ── */
.plan-billing-toggle { display: flex; gap: 0.5rem; margin: 0.75rem 0; justify-content: center; }
.billing-toggle {
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.billing-toggle.active { background: var(--accent); color: #fff; }

/* ── payment success page ── */
.payment-success-section {
  max-width: 480px;
  margin: 4rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.payment-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
  margin: 0 auto 1.25rem;
}
.payment-success-section h2 { margin: 0 0 0.75rem; }
.payment-success-section p { color: var(--muted); margin: 0 0 1.5rem; }

/* ── deep analysis lazy load ── */
.deep-analysis-loading { color: var(--muted); font-style: italic; padding: 1rem 0; }
.deep-analysis-error { color: #f87171; padding: 0.5rem 0; }

/* ── hamburger menu ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px; min-height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 9px 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 100;
    gap: 0;
  }
  .nav-menu.open { display: flex; }

  .site-nav { position: relative; }

  .nav-menu > a,
  .nav-menu .nav-group-btn {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    min-height: 44px;
    line-height: 1.3;
  }

  .nav-group { width: 100%; }
  .nav-group-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg);
    padding: 0 0 0 1.5rem;
    display: none;
  }
  .nav-group.open .nav-group-dropdown { display: block; }
  .nav-group-dropdown a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: block;
  }
}

/* ── search no results ── */
.search-no-results {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   Responsive — comprehensive mobile support
   ═══════════════════════════════════════════════ */

/* ── 480px: very small phones ── */
@media (max-width: 480px) {
  header h1 { font-size: 1.15rem; }
  .tagline { font-size: 0.72rem; }
  .article .title { font-size: 0.88rem; }
  .article-meta { font-size: 0.7rem; }

  /* about tables: horizontal scroll */
  .about-sources-table,
  .about-importance-table,
  .about-plan-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }
  .about-plan-table th,
  .about-plan-table td { padding: 0.4rem 0.5rem; white-space: nowrap; }
  .about-sources-table th,
  .about-sources-table td { padding: 0.4rem 0.5rem; }

  /* about page section padding */
  .about-hero { padding: 1.5rem 0 1rem; }
  .about-hero h2 { font-size: 1.3rem; }
  .about-section h3 { font-size: 1rem; }
  .about-content { font-size: 0.88rem; }

  /* members hero */
  .pricing-hero h2 { font-size: 1.4rem; }
  .pricing-hero p { font-size: 0.88rem; }
  .plan-card { padding: 1.25rem 1rem; }
  .plan-name { font-size: 1rem; }
  .plan-price { font-size: 2rem; }
  .plan-features li { font-size: 0.82rem; }
  .plan-notice { font-size: 0.78rem; }

  /* glossary page: stack term/desc */
  .glossary-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  /* article detail */
  .detail-title { font-size: 1.1rem; }
  .detail-section { font-size: 0.88rem; }
  .article-detail { padding: 1rem; }

  /* legal / privacy / tos tables */
  main.legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8rem;
  }

  /* source page */
  .source-header h2 { font-size: 1.1rem; }
  .source-meta { font-size: 0.75rem; word-break: break-all; }

  /* footer */
  footer { font-size: 0.7rem; padding: 1rem; }
  footer p { margin: 0.25rem 0; }

  /* search bar */
  .search-bar input { font-size: 0.85rem; padding: 0.5rem 0.65rem; }
  .search-bar button { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

  /* members: plan billing toggle */
  .plan-billing-toggle { flex-wrap: wrap; justify-content: center; }
  .billing-toggle { font-size: 0.78rem; padding: 0.3rem 0.85rem; }
}

/* ── 640px: phones (supplement existing block) ── */
@media (max-width: 640px) {
  /* header tagline */
  .tagline { font-size: 0.75rem; }
  .header-inner { gap: 0.15rem; }

  /* about page */
  .about-main { padding: 1rem 1rem 3rem; }
  .about-sources-table,
  .about-importance-table,
  .about-plan-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .about-plan-table th,
  .about-plan-table td { white-space: nowrap; font-size: 0.8rem; padding: 0.4rem 0.6rem; }

  /* glossary page entry: stack on small screens */
  .glossary-entry { grid-template-columns: 1fr; gap: 0.2rem; }

  /* source page */
  .source-header h2 { font-size: 1.2rem; }

  /* members page */
  .pricing-hero { padding: 2rem 1rem 1.5rem; }
  .pricing-hero h2 { font-size: 1.5rem; }
  .plan-notice { font-size: 0.8rem; margin-top: 0.6rem; }

  /* article detail on mobile */
  .article-detail { padding: 1rem 1rem; }
  .detail-title { font-size: 1.15rem; line-height: 1.45; }

  /* legal tables */
  main.legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* FAQ */
  .faq-item summary { font-size: 0.85rem; }

  /* newsletter CTA in footer */
  .newsletter-cta { padding: 1.75rem 1rem; }
  .newsletter-cta h3 { font-size: 1.05rem; }
}
