/* Listening and grammar share primary actions; downloads remain secondary. */
.hero .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 530px;
  gap: 10px;
  margin-top: 26px;
}
.hero .hero-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 10px;
  box-shadow: none;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink);
  font: 500 14px/1.45 var(--reading-font, system-ui);
  text-align: center;
  transform: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}
.hero .hero-actions > .hero-button {
  background: #244c67;
  color: #fff9eb;
  border-color: transparent;
  box-shadow: 0 3px 10px #163d5314;
}
.hero .hero-actions .action-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero .hero-actions .action-label {
  display: block;
  min-width: 0;
  transform: none;
}
.hero .hero-actions > a:hover {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--ink) 50%, transparent);
  box-shadow: none;
  transform: none;
}
.hero .hero-actions > .hero-button:hover {
  background: #315e78;
  border-color: transparent;
}
.hero .hero-actions > a:active {
  background: color-mix(in srgb, var(--paper) 85%, var(--ink));
}
.hero .hero-actions > .hero-button:active {
  background: #1a3c53;
}
.hero .hero-actions > a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
html[data-theme="dark"] .hero .hero-actions > .hero-button {
  background: #9ec4db;
  color: #142531;
}
html[data-theme="dark"] .hero .hero-actions > .hero-button:hover {
  background: #bed8e7;
}
html[data-theme="dark"] .hero .hero-actions > .hero-secondary:hover {
  background: #30434c;
}
@media (max-width: 900px) {
  .hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 390px;
    margin-top: 22px;
  }
  .hero .hero-actions > .hero-button {
    grid-column: auto;
  }
  .hero .hero-actions > a {
    min-height: 46px;
    padding: 11px 10px;
    font-size: 13px;
    gap: 8px;
  }
  .hero .hero-actions > .hero-button {
    min-height: 48px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-actions > a {
    transition: none;
  }
}
