/* ========== Article Styles ========== */
.header-link {
  color: white;
  text-decoration: none;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* TOC */
.article-toc {
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.article-toc ol {
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.article-toc a {
  color: var(--primary);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* Sections */
.article section {
  margin-bottom: 40px;
}

.article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  margin-bottom: 16px;
}

.article p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.info-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.info-card .example {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  -webkit-overflow-scrolling: touch;
}

.keigo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 320px;
}

.keigo-table th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.keigo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

.keigo-table tbody tr:hover {
  background: var(--primary-bg);
}

.ng-table th:first-child {
  background: var(--wrong);
}

.ng-table th:nth-child(2) {
  background: var(--correct);
}

.ng-table th:nth-child(3) {
  background: #666;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-bg), #E8E6FF);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.cta-section h2 {
  border-bottom: none;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
  .article-title { font-size: 1.2rem; }
  .article h2 { font-size: 1.1rem; }
  .keigo-table { font-size: 0.82rem; }
  .keigo-table td, .keigo-table th { padding: 8px 10px; }
  .cta-section { padding: 24px 16px; }
}

@media (min-width: 768px) {
  .info-cards { flex-direction: row; }
  .info-card { flex: 1; }
  .article-title { font-size: 1.7rem; }
}
