/* Extracted from pages/kana/advanced/historical-katakana/index.html; edit the source CSS file directly. */
:root {
  --ak-accent: var(--gold);
  --ak-accent-light: var(--gold-light);
  --ak-accent-ghost: var(--gold-ghost);
}
/* Function Shift Timeline */
.hk-timeline-scroll {
  overflow-x: auto;
  padding-bottom: var(--space-3);
  -webkit-overflow-scrolling: touch;
}
.hk-timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  min-width: 900px;
}
.hk-timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--shu-dim),
    var(--gold-dim),
    var(--amethyst-dim),
    var(--jade-dim)
  );
}
.hk-era {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  cursor: pointer;
  transition: background var(--dur-fast);
  border-radius: var(--radius-md);
}
.hk-era:hover {
  background: var(--ink-3);
}
.hk-era.active {
  background: var(--gold-ghost);
}
.hk-era-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink-1);
  border: 3px solid;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
  transition: transform var(--dur-fast);
}
.hk-era:hover .hk-era-dot,
.hk-era.active .hk-era-dot {
  transform: scale(1.3);
}
.hk-era-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ghost);
  margin-bottom: 4px;
}
.hk-era-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.hk-era-func {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
}
/* Era Detail Pane */
.hk-era-detail {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: none;
  animation: ak-fadein 0.2s ease;
}
.hk-era-detail.visible {
  display: block;
}
@keyframes ak-fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hk-ed-era-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}
.hk-example-doc {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-family: var(--font-display);
  line-height: 2;
  margin: var(--space-2) 0;
}
/* Function comparison table */
.hk-func-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hk-func-table th {
  text-align: left;
  padding: 8px var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
}
.hk-func-table td {
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.hk-func-table tr:last-child td {
  border-bottom: none;
}
.hk-func-table tr:hover td {
  background: var(--ink-3);
}
/* Modern functions grid */
.hk-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
}
.hk-modern-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.hk-mc-title {
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.hk-mc-example {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}
.hk-mc-desc {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}
/* Kunten demo */
.hk-kunten-demo {
  background: linear-gradient(135deg, var(--ink-3), var(--gold-ghost));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.hk-kunten-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 2.2;
  color: var(--text);
  letter-spacing: 0.1em;
}
.hk-kunten-anno {
  font-size: 11px;
  color: var(--gold-light);
  vertical-align: super;
}
