/* Shared styles of the ham-radio-apps.com pages.
   Based on the SDR-Receiver page (ham-radio-apps.com/sdr-receiver/), so all pages look like one family.
   Rules: HAM-Radio-Apps/Website/CLAUDE.md */

:root {
  --page: #f5f7fa;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #5a6472;
  --line: #e2e6ec;
  --accent: #0b6bcb;
  --signal: #e6c200;
  --teal: #0a4a6e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --header-h: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0858a8;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
img.screenshot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.header-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.header-inner nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.header-inner nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 2.25rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(10, 74, 110, 0.18);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vfo-tick {
  width: 3px;
  height: 0.9em;
  background: var(--signal);
  border-radius: 1px;
}

.hero h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  font-weight: 720;
}

.tagline {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 580;
  letter-spacing: -0.025em;
}

.lede {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
}

/* One badge with its platform label underneath ("For your Mac") */
.store-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.store-option .platform {
  margin: 0;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: auto;
  height: 44px;
}

.platform {
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  background: radial-gradient(ellipse at center, rgba(10, 74, 110, 0.28), transparent 68%);
  filter: blur(28px);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  cursor: zoom-in;
}

/* Hero with a MacBook and an iPhone in front of it */

.hero-devices {
  padding: 0 6% 4% 0;
}

.hero-devices .device-macbook {
  cursor: zoom-in;
}

/* The iPhone is in Apple's frame (transparent WebP): the shadow follows its shape */
.hero-devices .device-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 19%;
  filter: drop-shadow(0 12px 24px rgba(10, 30, 50, 0.3));
}

/* The brand's radio in front of the MacBook, bottom left (a "station": radio, Mac, iPhone). Optional per page */
.hero-devices.with-radio {
  padding-bottom: 22%;
}

.hero-devices .device-radio {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 48%;
  filter: drop-shadow(0 12px 22px rgba(10, 30, 50, 0.35));
}

/* A tall radio (height more than half its width, e.g. FlexRadio Aurora, TS-890): narrower, so it takes the same room */
.hero-devices .device-radio.tall {
  width: 34%;
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 680;
}

.section-lead {
  margin-top: 0.6rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Highlight cards */

.cards {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Pushes the screenshot to the bottom, so pictures line up across a row */
.card .screenshot {
  margin-top: auto;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #111;
}

.card .card-note {
  font-size: 0.875rem;
}

/* Small platform label on a card or list item ("Mac", "iPad and iPhone") */
.platform-tag {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  background: #edf1f6;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* Why this app: short reasons to buy, in a grid */

.why-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.why-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.1rem;
}

.why-grid h3 {
  font-size: 1.08rem;
  font-weight: 650;
}

.why-grid p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Feature rows: text on one side, the whole picture on the other, switching sides */

.feature-rows {
  margin-top: 1.5rem;
  display: grid;
  gap: 2.75rem;
}

.feature-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.feature-text h3 {
  font-size: 1.35rem;
  font-weight: 650;
}

.feature-text p {
  margin-top: 0.55rem;
  max-width: 34rem;
  color: var(--muted);
}

.feature-text .card-note {
  font-size: 0.875rem;
}

.feature-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.feature-media img {
  cursor: zoom-in;
}

/* Screenshot styles: an iPad or iPhone in Apple's frame (transparent WebP, the frame is the border), a Mac window */
.shot-ipad {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 10px 22px rgba(10, 30, 50, 0.16));
}

/* An iPhone screen next to a bigger picture (e.g. JS8 chat beside CW), overlapping it a little */
.shot-iphone {
  width: 30%;
  max-width: 150px;
  align-self: flex-end;
  filter: drop-shadow(0 10px 22px rgba(10, 30, 50, 0.22));
}

.feature-media .shot-ipad + .shot-iphone,
.feature-media .shot-window + .shot-iphone {
  margin-left: -2.5rem;
}

/* A Mac window with an iPhone in front: the window gives up the iPhone's room */
.feature-media .shot-window:has(+ .shot-iphone) {
  width: 78%;
}

.shot-window {
  width: 100%;
  max-width: 560px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 30, 50, 0.16);
}

/* A strip cut from the panadapter (memory spots), next to an iPhone */
.feature-media.pair {
  align-items: center;
  gap: 1.25rem;
}

.shot-strip {
  width: 64%;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(10, 30, 50, 0.2);
  cursor: zoom-in;
}

/* Logbook: the Mac list and the iPad map side by side */

.logbook-media {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
  justify-items: center;
}

.logbook-media .shot-window {
  max-width: none;
}

.logbook-media .shot-ipad {
  max-width: 300px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  columns: 1;
  column-gap: 2.5rem;
}

.check-list li {
  break-inside: avoid;
  padding: 0.38rem 0 0.38rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Controllers: product photos with captions */

.controller-photos {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.controller-photos figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.controller-photos .wide {
  grid-column: 1 / -1;
}

.controller-photos img {
  max-height: 150px;
  width: auto;
}

.controller-photos figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* What's new: Mac and iOS side by side */

.whats-new {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.whats-new article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.whats-new h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.whats-new .version {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.whats-new ul {
  margin-top: 0.6rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.whats-new li {
  padding: 0.18rem 0;
}

/* Version history page */

.page-head h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 700;
}

.history-columns {
  margin-top: 1.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.history-column h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.history-version {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.1rem;
  margin-bottom: 0.5rem;
}

.history-version summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 620;
}

.history-date {
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.history-version ul {
  margin: 0;
  padding: 0 0 0.9rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.history-version li {
  padding: 0.15rem 0;
}

/* Chips (supported radios) */

.chip-list {
  list-style: none;
  padding: 0;
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9375rem;
}

/* Feature lists in columns (modes, tools, controllers) */

.feature-groups {
  margin-top: 1.35rem;
  display: grid;
  gap: 1.75rem;
}

.feature-groups h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
}

.feature-list li {
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
}

/* "New" tag: outline in the one accent colour. Remove it once a feature is no longer recent. */
.new-tag {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.split {
  display: grid;
  gap: 1.75rem;
}

.split p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* Made by a ham */

.maker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
}

.maker p {
  margin-top: 0.6rem;
  max-width: 44rem;
  color: var(--muted);
}

/* FAQ: <details> works without JavaScript */

.faq {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.15rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.75rem 0.95rem 0;
  position: relative;
  font-weight: 620;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.8rem;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding-bottom: 1rem;
  color: var(--muted);
  max-width: 46rem;
}

/* An order button instead of App Store badges (AOR Scanner: ordered by e-mail) */
.order-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 620;
  text-decoration: none;
}

.order-button:hover {
  background: #0858a8;
  color: #fff;
}

/* A Windows window in the hero (no MacBook) */
.hero-visual .shot-window {
  max-width: none;
}

/* Numbered steps (how to get an app) */
.steps {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  padding-left: 1.4rem;
  color: var(--muted);
}

.steps li {
  padding: 0.3rem 0;
}

.steps strong {
  color: var(--ink);
}

/* Get the app */

.get {
  padding-bottom: 3.25rem;
}

.get-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.35rem;
}

.get-inner h2 {
  text-align: center;
}

/* A Get box with one centred line of text and one badge (SDR-Receiver) */
.get-text {
  margin: 0.55rem auto 1.15rem;
  max-width: 28rem;
  color: var(--muted);
  text-align: center;
}

.get-inner > .store-badge {
  display: table;
  margin-inline: auto;
}

.get-badges {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.get-badges .store-option {
  align-items: center;
}

.requirements {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.requirements li {
  padding: 0.2rem 0;
}

.requirements strong {
  color: var(--ink);
  font-weight: 620;
}

.link-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.trademarks {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 16, 22, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* Breakpoints */

@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Every second row: picture on the left */
  .feature-row:nth-child(even) .feature-media {
    order: -1;
  }

  .logbook-media {
    grid-template-columns: 2.2fr 1fr;
  }

  .check-list {
    columns: 2;
  }

  /* Two or three platforms (SDR-Control: Mac, iPad, iPhone) */
  .whats-new,
  .history-columns {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .controller-photos {
    grid-template-columns: 1fr 1fr 1fr 2fr;
  }

  .controller-photos .wide {
    grid-column: auto;
  }

  .feature-groups {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.5rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .get-inner {
    padding: 2.25rem 2rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 3.25rem 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(17rem, 0.86fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 2.5rem;
  }

  .feature-groups {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------------------
   SDR-Receiver page (ham-radio-apps.com/sdr-receiver/, moved onto the shared CSS 2026-11-05)
   --------------------------------------------------------------------------- */

/* Decoder list in columns */

.decoder-list {
  list-style: none;
  padding: 0;
  margin-top: 1.15rem;
  columns: 1;
  column-gap: 2.5rem;
}

.decoder-list li {
  break-inside: avoid;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

@media (min-width: 700px) {
  .decoder-list {
    columns: 2;
  }
}

/* ---------------------------------------------------------------------------
   Buying guide subpage (choosing-an-sdr.html)
   --------------------------------------------------------------------------- */

.page-head {
  padding-top: 2rem;
}

.page-head h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.page-head .note {
  margin-top: 1.1rem;
}

/* Device cards */

.device-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.device {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* The two editorial picks. A left rule rather than a tint, so it still reads
   as one of the set and not as an advert. */
.device-pick {
  border-left: 3px solid var(--accent);
}

.device-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}

.device-head h3 {
  font-size: 1.18rem;
  font-weight: 650;
}

.device-price {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.device-spec {
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

.device-spec > div {
  display: grid;
  gap: 0.1rem;
}

.device-spec dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.device-spec dd {
  margin: 0;
  font-size: 0.95rem;
}

.device-for,
.device-warn {
  color: var(--muted);
  font-size: 0.96rem;
}

.device-for strong,
.device-warn strong {
  color: var(--ink);
}

/* Which device for which user */

.answer-list {
  margin-top: 1.35rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.answer-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.answer-q {
  font-weight: 620;
}

.answer-a {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Callout */

.callout {
  margin-top: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.callout h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

.callout p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Capability blocks */

.cap-list {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cap h3 {
  font-size: 1.12rem;
  font-weight: 650;
}

.cap-modes {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.cap-needs,
.cap-yes,
.cap-no {
  color: var(--muted);
  font-size: 0.95rem;
}

.cap-needs strong,
.cap-yes strong,
.cap-no strong {
  color: var(--ink);
}

@media (min-width: 700px) {
  .device-grid,
  .cap-list {
    grid-template-columns: 1fr 1fr;
  }

  .device-spec > div {
    grid-template-columns: 9rem 1fr;
    gap: 0.6rem;
    align-items: baseline;
  }

  .answer-list li {
    grid-template-columns: 15rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

/* Main page (ham-radio-apps.com/): banner, brand logos, app cards, news */

.home-hero {
  text-align: center;
}

.home-hero .eyebrow {
  justify-content: center;
  margin-top: 0;
}

.byline {
  margin-top: 0.5rem;
  color: var(--muted);
}

.home-banner {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  margin: 1.75rem auto 0;
  filter: drop-shadow(0 18px 30px rgba(10, 74, 110, 0.18));
}

.brands h2 {
  text-align: center;
}

.brand-logos {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2.5rem;
}

.brand-logos a {
  display: block;
  line-height: 0;
  padding: 0.4rem;
}

/* Each logo's width and height in the HTML give it about the same area; on a phone at most 38 % of the width */
.brand-logos img {
  height: auto;
  max-width: 38vw;
}

.app-cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.app-card-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.app-card-head img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(10, 74, 110, 0.15);
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card h3 {
  margin: 0;
}

/* The link at the bottom of each card, also when the cards in a row differ in height */
.app-card .more-link {
  margin-top: auto;
  padding-top: 0.75rem;
  align-self: flex-start;
}

.app-platforms {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-card > p {
  color: var(--muted);
}

.app-badges {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.app-badges .store-badge img {
  height: 36px;
}

.app-badges .platform {
  font-size: 0.8125rem;
}

.more-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.more-link::after {
  content: " →";
}

.news-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.news-list li {
  padding: 0.3rem 0;
}

.news-list + .link-row {
  justify-content: flex-start;
}

.get-text.wide {
  max-width: 40rem;
}

.get-text.wide p + p {
  margin-top: 0.6rem;
}

.support-head {
  text-align: center;
  margin-top: 1.25rem;
}

.support-head + .requirements {
  margin-top: 0.5rem;
  max-width: 26rem;
}

@media (min-width: 700px) {
  .app-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .app-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* News: the list (news/) and the posts (/<slug>/), made by tools/build_news.py */

.news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.news-cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.news-card a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.news-card a:hover h2 {
  color: var(--accent);
}

.news-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.news-card .post-meta,
.news-card h2,
.news-card p {
  margin-inline: 1.1rem;
}

.news-card h2 {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.news-card p:last-child {
  margin-top: 0.4rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.post-meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-inner {
  max-width: 50rem;
}

.post h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 720;
  line-height: 1.15;
}

.post figure {
  margin: 1.5rem 0;
}

.post figure img {
  width: 100%;
  height: auto;
}

.post-body {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.post-body > * + * {
  margin-top: 1rem;
}

.post-body h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.post-body h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.post-body h4 {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.3rem;
}

.post-body li + li {
  margin-top: 0.35rem;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.post-body blockquote {
  border-left: 3px solid var(--signal);
  padding-left: 1rem;
  color: var(--muted);
}

.post-body code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.25em;
}

/* Wide tables scroll sideways in their box on a phone, never the page */
.table-box {
  overflow-x: auto;
}

.table-box table {
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9375rem;
}

.table-box th,
.table-box td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.post-back {
  margin-top: 2.25rem;
  font-weight: 600;
}

.post-back a::before {
  content: "← ";
}

@media (min-width: 700px) {
  .news-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .news-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature comparison (ham-app-features/, made by tools/build_features.py) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-head .lede + .lede {
  margin-top: 0.75rem;
}

.compare {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare table {
  width: 100%;
  min-width: 46rem;
  border: 0;
  font-size: 0.875rem;
}

.compare th,
.compare td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.4rem;
  text-align: center;
  vertical-align: middle;
}

.compare thead th {
  font-weight: 620;
}

.compare thead tr + tr th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

/* The app's two columns (Mac, iPad iPhone) together: a line before each app */
.compare th[colspan],
.compare tbody td:nth-child(even),
.compare thead tr + tr th:nth-child(even) {
  border-left: 1px solid var(--line);
}

/* The feature name stays visible while the table scrolls sideways */
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
  font-weight: 500;
  min-width: 11rem;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td.yes {
  color: var(--accent);
  font-weight: 700;
}

.compare td.part {
  font-size: 0.75rem;
  font-weight: 600;
}

.compare tbody tr:hover th,
.compare tbody tr:hover td {
  background: #f0f5fb;
}

.section .compare + h2 {
  margin-top: 2.5rem;
}

/* The same column widths in every comparison table */
.compare table {
  table-layout: fixed;
}

.compare thead tr:first-child td {
  width: 26%;
}

/* An e-mail address is never broken at its hyphens */
.mail-link {
  white-space: nowrap;
  font-weight: 600;
}

/* Short lists inside the white cards (ham-app-features): a check mark, no lines */
.card-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  color: var(--muted);
}

.card-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.35rem;
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.features-banner {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(10, 74, 110, 0.18));
}

/* Manuals page (manuals/) */
.lede.wide {
  max-width: 48rem;
}

.manual-tips {
  display: grid;
  gap: 1rem;
}

.manual-tips h2 {
  font-size: 1.125rem;
}

.manual-tips p {
  margin-top: 0.35rem;
  color: var(--muted);
}

/* The manual links in a card: one button per platform */
.manual-links {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.manual-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.manual-links a:hover {
  background: var(--accent);
  color: #fff;
}

.manual-links span {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

@media (min-width: 700px) {
  .manual-tips {
    grid-template-columns: 1fr 1fr;
  }
}
