/* RailCom Pro's page: one thing to look at (its handheld radio, lit up on channel 1), and the rest quiet. */

.railcom-page {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) 0 96px;
}

.rc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

.rc-hero h1 {
  font: 800 clamp(48px, 8vw, 92px) / 0.95 var(--display);
  font-stretch: 82%;
  letter-spacing: -0.02em;
}

.rc-lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--haze);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.rc-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.rc-download svg {
  width: 19px;
  height: 19px;
}

.rc-count {
  margin-top: 14px;
  color: var(--haze);
  font-size: 15px;
}

.rc-count b {
  color: var(--amber);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.rc-get-note {
  color: var(--dim);
  font-size: 15px;
}

/* The handheld radio, as RailCom Pro puts it on screen: an amber display over a speaker grille. */
.rc-radio {
  justify-self: center;
  position: relative;
  width: min(260px, 70vw);
  padding-top: 64px;
}

.rc-radio-antenna {
  position: absolute;
  top: 0;
  left: 26%;
  width: 18px;
  height: 84px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(90deg, #241a46, #3a2c6c 50%, #241a46);
  box-shadow: inset 0 0 0 1px rgba(196, 176, 255, 0.18);
}

.rc-radio-body {
  position: relative;
  padding: 22px 20px 26px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2b2058, #1a1238 70%);
  box-shadow: inset 0 0 0 1px rgba(196, 176, 255, 0.2), 0 28px 60px rgba(4, 2, 14, 0.55);
}

.rc-lcd {
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: radial-gradient(120% 140% at 20% 0%, #3a2a08, #150e03 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 92, 0.25), inset 0 6px 18px rgba(0, 0, 0, 0.55);
  color: var(--amber);
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  text-shadow: 0 0 10px rgba(255, 195, 92, 0.55);
}

.rc-lcd-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rc-lcd-ch {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.rc-lcd-name {
  font-size: 15px;
  letter-spacing: 0.12em;
}

.rc-lcd-talk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.rc-lcd-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.rc-lcd-bars i {
  width: 4px;
  border-radius: 1px;
  background: currentColor;
  animation: rc-talk 1.1s ease-in-out infinite;
}

.rc-lcd-bars i:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.rc-lcd-bars i:nth-child(2) { height: 70%; animation-delay: -0.5s; }
.rc-lcd-bars i:nth-child(3) { height: 100%; animation-delay: -0.8s; }
.rc-lcd-bars i:nth-child(4) { height: 55%; animation-delay: -0.1s; }

@keyframes rc-talk {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.rc-lcd-bars i {
  transform-origin: bottom;
}

@media (prefers-reduced-motion: reduce) {
  .rc-lcd-bars i {
    animation: none;
  }
}

.rc-radio-grille {
  height: 96px;
  margin-top: 20px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(196, 176, 255, 0.22) 1.6px, transparent 2px) 0 0 / 12px 12px;
  opacity: 0.8;
}

/* The rest */
.rc-section {
  margin-top: clamp(56px, 9vw, 104px);
}

/* What's new in the newest version: its notes, as the update that put it out says them. */
.rc-news .rc-news-when {
  margin-top: 4px;
  color: var(--dim);
  font-size: 15px;
}

.rc-news-notes {
  max-width: 46em;
  margin-top: 18px;
  padding-left: 20px;
  border-left: 3px solid var(--amber);
}

.rc-news-notes p {
  margin-top: 10px;
}

.rc-news-notes p:first-child {
  margin-top: 0;
}

.rc-news-notes b {
  color: var(--moon);
  font-weight: 720;
}

.rc-news-all {
  margin-top: 18px;
  font-size: 15.5px;
}

.rc-news-all a {
  color: var(--moon);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.rc-news-all a:hover {
  text-decoration-color: currentColor;
}

.rc-news-test {
  max-width: 46em;
  margin-top: 22px;
}

.rc-news-test summary {
  width: fit-content;
  color: var(--haze);
  font-weight: 650;
  cursor: pointer;
}

.rc-news-test summary:hover {
  color: var(--moon);
}

.rc-news-test .rc-news-notes {
  border-left-color: var(--line-strong);
}

.rc-section h2 {
  font: 750 clamp(26px, 3.2vw, 34px) / 1.15 var(--display);
  font-stretch: 88%;
}

.rc-section p {
  max-width: 40em;
  margin-top: 12px;
  color: var(--haze);
  line-height: 1.6;
}

.rc-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.rc-way {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.rc-way h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 750 22px / 1.2 var(--display);
  font-stretch: 88%;
  color: var(--green);
}

.rc-way-radio h3 {
  color: var(--amber);
}

.rc-way-alert h3 {
  color: var(--pink);
}

.rc-way p {
  margin-top: 10px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 8px;
  color: var(--moon);
  font: 700 15px / 1 var(--text);
}

.rc-keys {
  color: var(--dim) !important;
}

.rc-steps {
  display: grid;
  gap: 14px;
  max-width: 46em;
  margin: 20px 0 0;
  padding-left: 26px;
  color: var(--haze);
  line-height: 1.6;
}

.rc-steps li::marker {
  color: var(--pink);
  font-weight: 800;
}

.rc-steps b {
  color: var(--moon);
}

.rc-steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(196, 176, 255, 0.1);
  color: var(--moon);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.rc-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.rc-pair .button {
  margin-top: 18px;
}

.rc-makers p {
  max-width: 64ch;
  margin-top: 12px;
  color: var(--haze);
}

.rc-makers a,
.rc-pair p a {
  color: var(--moon);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .rc-hero,
  .rc-ways,
  .rc-pair {
    grid-template-columns: 1fr;
  }

  .rc-radio {
    width: min(220px, 64vw);
  }
}
