/* Shared-header wordmark: match Technical Articles */
.site-header .site-brand,
.site-header .site-brand b{
  font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif!important;
  font-weight:600!important;
  letter-spacing:.01em;
}


@font-face{
  font-family:"IBM Plex Sans Condensed";
  src:url("/radio/assets/fonts/IBMPlexSansCondensed-Regular.woff2") format("woff2");
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:"IBM Plex Sans Condensed";
  src:url("/radio/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2");
  font-style:normal;font-weight:600;font-display:swap;
}
@font-face{
  font-family:"Source Sans 3";
  src:url("/radio/assets/fonts/SourceSans3-Regular.ttf.woff2") format("woff2");
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:"Source Sans 3";
  src:url("/radio/assets/fonts/SourceSans3-Semibold.ttf.woff2") format("woff2");
  font-style:normal;font-weight:600;font-display:swap;
}

*{box-sizing:border-box}:root{--amber:#ffc531;--ink:#0b1821;--navy:#07131d;--paper:#f1f0eb;--line:#b3bbc0}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,sans-serif}header{height:70px;display:flex;align-items:center;padding:0 4vw;gap:28px;background:#07131d;color:#b9c5cc}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--amber)}.brand img{height:38px}.brand b{font-size:26px}.langs{margin-left:auto;font:11px monospace}.langs a{padding:6px 8px;text-decoration:none;color:#b9c5cc}.langs a.on{color:var(--amber)}.langs i{font-style:normal}.mainnav{height:46px;display:flex;align-items:stretch;gap:36px;padding:0 4vw;overflow-x:auto;background:#07131d}.mainnav a{display:flex;align-items:center;text-decoration:none;font:11px monospace;white-space:nowrap;color:#b9c5cc}.mainnav .active{color:var(--amber);border-bottom:3px solid var(--amber)}.hero{height:250px;position:relative;overflow:hidden;padding:28px 4vw;background:#0a1823;color:white}.grid{position:absolute;inset:0;background-size:28px 28px;background-image:linear-gradient(#29404e33 1px,transparent 1px),linear-gradient(90deg,#29404e33 1px,transparent 1px)}.hero-in{position:relative;max-width:850px}.crumb{font-size:11px;margin-bottom:22px}.headline{display:flex;gap:48px;align-items:start}.headline h1{font:700 60px/1 monospace;margin:0}.headline p{font:14px monospace;letter-spacing:6px;margin:8px 0;border-bottom:1px solid;padding-bottom:10px}.headline strong{font:20px monospace;padding:8px 0;border-bottom:1px solid;color:var(--amber)}.intro{max-width:700px;font-size:13px;line-height:1.55;margin-top:16px}

/* Gateway B — dark technical panels over a deliberately temporary background treatment */
.gateway-band{position:relative;overflow:hidden;padding:24px 4vw 26px;background:#132431}.gateway-band-bg{position:absolute;inset:0;background:
radial-gradient(ellipse at 70% 20%,rgba(55,113,145,.35),transparent 42%),
linear-gradient(115deg,rgba(4,13,20,.2),rgba(4,13,20,.78)),
repeating-linear-gradient(90deg,transparent 0 39px,rgba(104,154,181,.07) 40px);
opacity:.95}.gateways{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:1500px;margin:auto}.gateways a{min-height:148px;border:1px solid #5c7180;background:rgba(5,18,27,.88);box-shadow:0 7px 18px rgba(0,0,0,.24);padding:18px;color:#eef3f5;text-decoration:none;position:relative;display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:start}.gateways a:hover{border-color:var(--amber);background:rgba(6,22,33,.96)}.gateways img{width:52px;height:52px;object-fit:contain}.gateways b{font:700 16px monospace}.gateways p{font-size:11px;line-height:1.45;color:#b7c6cf;margin:8px 0 0}.gateways span{position:absolute;right:16px;bottom:13px;color:var(--amber);font-size:22px}.gateways a:after{content:"";position:absolute;left:18px;right:18px;bottom:42px;border-top:1px solid rgba(163,184,196,.28)}

main{padding:18px 4vw 42px}.cat{margin:30px 0 42px}.cat>h2{font:700 16px monospace;letter-spacing:1.5px;padding:12px 5px;border-top:1px solid #89969e;border-bottom:1px solid var(--line);margin:0}.resource{display:grid;grid-template-columns:180px minmax(0,1fr) 80px;gap:18px;padding:15px 8px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}.resource:hover{background:#fff}.resource>img{width:180px;height:120px;object-fit:cover;border:1px solid #8f9ba3}.resource small{font:9px monospace;letter-spacing:1px;color:#567080}.resource h3{font:700 16px Arial,sans-serif;margin:8px 0}.resource p{font-size:12px;line-height:1.6;margin:0;max-width:900px;color:#536773}.resource aside{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;font:10px monospace;color:#526775}.resource aside b{font-size:24px;font-weight:400;color:#172c39}footer{min-height:70px;padding:18px 4vw;display:flex;gap:20px;align-items:center;background:#07131d;color:#b9c5cc;font:10px monospace}footer b{color:var(--amber)}

@media(max-width:800px){.gateways{grid-template-columns:1fr}.gateways a{min-height:105px;grid-template-columns:48px 1fr}.gateways img{width:44px;height:44px}}
@media(max-width:700px){header{height:64px;padding:0 14px}.brand img{height:32px}.brand b{font-size:21px}.mainnav{padding:0 14px;gap:25px}.hero{height:auto;min-height:270px;padding:24px 16px}.headline{display:block}.headline h1{font-size:43px}.headline strong{display:inline-block;margin-top:4px}.headline p{font-size:11px;letter-spacing:4px}.gateway-band{padding:16px 12px 18px}.gateways{gap:9px}.gateways a{min-height:88px;padding:13px 14px;grid-template-columns:42px 1fr;gap:11px;align-items:center}.gateways img{width:38px;height:38px}.gateways p{margin:4px 30px 0 0}.gateways a:after{display:none}.gateways span{bottom:auto;top:50%;transform:translateY(-50%);right:13px}main{padding:12px}.cat{margin:26px 0 36px}
/* Mobile articles: image on top, full-width readable description below */
.resource{display:block;margin:14px 0 20px;padding:0;border:1px solid #b8c0c5;background:#f8f7f3}.resource>img{display:block;width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;border:0;border-bottom:1px solid #aeb8be}.resource>div{padding:14px 15px 8px}.resource small{display:block;margin-bottom:7px}.resource h3{font-size:16px;line-height:1.25;margin:0 0 9px}.resource p{font-size:12px;line-height:1.6}.resource aside{padding:8px 15px 13px;display:flex;flex-direction:row;align-items:center;border-top:1px solid #d0d5d8}.resource aside b{font-size:22px}footer{align-items:flex-start;flex-direction:column}}


/* v5 — tighter desktop gateway transition + improved mobile article imagery */

/* Make the gateway zone read as a continuation of the HF hero. */
.gateway-band{
  margin-top:0;
  padding:18px 4vw 20px;
  background:#0a1823;
  border-top:1px solid rgba(122,148,164,.20);
  border-bottom:1px solid #263b48;
}
.gateway-band-bg{
  background:
    linear-gradient(180deg,rgba(10,24,35,.10),rgba(9,23,33,.48)),
    radial-gradient(ellipse at 72% 0%,rgba(55,113,145,.20),transparent 48%),
    repeating-linear-gradient(90deg,transparent 0 39px,rgba(104,154,181,.045) 40px);
}

/* More compact instrument-module treatment on desktop. */
.gateways{
  gap:11px;
}
.gateways a{
  min-height:108px;
  padding:14px 15px;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:start;
  background:rgba(5,18,27,.82);
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.gateways img{
  width:40px;
  height:40px;
}
.gateways b{
  font-size:14px;
  letter-spacing:.25px;
}
.gateways p{
  margin:5px 28px 0 0;
  font-size:10px;
  line-height:1.4;
}
.gateways a:after{
  left:15px;
  right:15px;
  bottom:32px;
}
.gateways span{
  right:14px;
  bottom:7px;
  font-size:19px;
}

@media(max-width:800px){
  .gateway-band{
    padding:15px 12px 17px;
  }
  .gateways a{
    min-height:88px;
    grid-template-columns:42px minmax(0,1fr);
  }
  .gateways img{
    width:38px;
    height:38px;
  }
}

@media(max-width:700px){
  /* Keep the v4 mobile gateway layout that already works well. */
  .gateway-band{
    padding:16px 12px 18px;
  }

  /* The old source thumbnails are mostly close to 3:2.
     Use a less panoramic frame so they no longer look stretched/cropped. */
  .resource>img{
    width:100%;
    height:auto;
    aspect-ratio:3 / 2;
    max-height:240px;
    object-fit:cover;
    object-position:center;
  }
}


/* v8 — article metadata */
.meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}
.meta small{margin:0}
.date-badge{display:inline-block;border:1px solid #d49f17;color:#8a6410;background:rgba(255,197,49,.12);padding:3px 6px;font:700 9px/1 monospace;letter-spacing:.5px;white-space:nowrap}
@media(max-width:700px){.meta{gap:8px;margin-bottom:8px}.date-badge{padding:3px 6px}}

/* v9 — roomier desktop metadata, rounder date badges, larger article imagery */
.date-badge{
  border-radius:999px;
  padding:4px 8px;
}

/* Desktop: give the date breathing room and enlarge the article thumbnail. */
@media(min-width:701px){
  .resource{
    grid-template-columns:240px minmax(0,1fr) 80px;
    gap:22px;
  }
  .resource>img{
    width:240px;
    height:160px;
  }
  .meta{
    gap:0;
    align-items:center;
  }
  .meta .date-badge{
    margin-left:20px;
  }
}

/* Mobile: tags and date stay together on the same metadata row. */
@media(max-width:700px){
  .meta{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .meta::-webkit-scrollbar{display:none}
  .meta small,.meta .date-badge{flex:0 0 auto}
  .date-badge{
    border-radius:999px;
    padding:4px 8px;
  }
}

/* v10 — desktop gateway emphasis + more compact mobile article imagery */
@media(min-width:701px){
  .gateways b{
    font-size:16px;
  }
}

@media(max-width:700px){
  .resource>img{
    width:100%;
    height:auto;
    aspect-ratio:16 / 9;
    max-height:190px;
    object-fit:cover;
    object-position:center;
  }
}

/* v15 — wider panorama view + real article-library container */
@media(min-width:701px){
  /* Preserve the whole width of the generated panorama rather than cropping it
     with cover. The dark HF palette fills any small uncovered vertical area. */
  .hf-visual{
    background-color:#071521;
    background-image:
      linear-gradient(90deg,rgba(3,13,22,.80) 0%,rgba(3,13,22,.53) 43%,rgba(3,13,22,.13) 100%),
      url("../images/hf/hf-hero.png");
    background-size:100% auto;
    background-position:center center;
    background-repeat:no-repeat;
  }

  /* The actual article markup lives directly under main, so constrain the
     document/category blocks themselves rather than guessed wrapper classes. */
  main > .section-title,
  main > .resource{
    width:calc(100% - 144px);
    max-width:1680px;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
  }

  main > .section-title{
    padding-left:0;
    padding-right:0;
  }
}
@media(min-width:1500px){
  main > .section-title,
  main > .resource{
    width:calc(100% - 180px);
  }
}

/* v17 — unified desktop grid + clearer panorama through gateway cards */
@media(min-width:701px){
  :root{
    --hf-content-max:1600px;
    --hf-side-gap:72px;
  }

  /* Use one horizontal content grid for hero, gateway and library. */
  .hero .inner,
  .hero .wrap,
  .gateway-band .inner,
  .gateway-band .wrap,
  .gateways,
  main > .section-title,
  main > .resource{
    width:calc(100% - (2 * var(--hf-side-gap))) !important;
    max-width:var(--hf-content-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box;
  }

  /* The gateway cards should frame the panorama, not hide it. */
  .gateway{
    background:rgba(3,13,22,.23) !important;
    backdrop-filter:blur(.6px);
    -webkit-backdrop-filter:blur(.6px);
  }
  .gateway:hover{
    background:rgba(3,13,22,.32) !important;
  }

  /* Keep article/category separators on the same aligned grid. */
  main > .section-title{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* Preserve the successful compact mobile composition. */
@media(max-width:700px){
  .gateway{
    background:rgba(3,13,22,.34);
  }
}

/* v18 — target the selectors actually used by the HF Central markup */
@media(min-width:701px){
  /* Hero content begins at 4vw; use that same edge for gateway + library. */
  .gateways,
  main .cat{
    width:92vw !important;
    max-width:1500px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* Gateway cards are anchors (.gateways a), not .gateway elements. */
  .gateways a{
    background:rgba(5,18,27,.18) !important;
    backdrop-filter:blur(.35px);
    -webkit-backdrop-filter:blur(.35px);
  }
  .gateways a:hover{
    background:rgba(5,18,27,.28) !important;
  }

  /* Remove the outer main padding so .cat itself controls the common grid. */
  main{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .cat>h2,
  .cat .resource{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* Mobile retains stronger contrast. */
@media(max-width:700px){
  .gateways a{background:rgba(5,18,27,.34) !important}
}

/* v19 — article library inset: .cat already sits inside main, so apply
   explicit desktop side margins to the category container itself. */
@media(min-width:701px){
  main .cat{
    width:auto !important;
    max-width:none !important;
    margin-left:4vw !important;
    margin-right:4vw !important;
  }
  main .cat>h2,
  main .cat .resource{
    width:100% !important;
    box-sizing:border-box;
  }
}

/* v20 — definitive article-library alignment.
   The category blocks are not descendants of <main> in the rendered structure,
   so target .cat directly. Match the Hero's 4vw horizontal inset. */
@media(min-width:701px){
  .cat{
    width:auto !important;
    max-width:none !important;
    margin-left:4vw !important;
    margin-right:4vw !important;
  }
  .cat>h2,
  .cat>.resource{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box;
  }
}

/* v86 — consolidated approved HF Central hero/gateway layer */
.hero,
.gateway-band{
  background-color:#0a1823;
}
.gateway-band{
  border-top:0!important;
}

/* Keep hero and gateway visually continuous while preserving the approved hero image. */
.hero{
  position:relative;
  overflow:hidden;
}
.hero:after{
  pointer-events:none;
}

/* Desktop gateway geometry */
@media(min-width:901px){
  .gateway-band{
    position:relative;
  }
}

/* Mobile retains the established single-column gateway behavior. */
@media(max-width:700px){
  .hero,
  .gateway-band{
    width:100%;
  }
}


/* v85 — consolidated approved HF Central article-library layer */

/* Article field, rails and hero-to-library transition */
main{
  position:relative;
  border-left:18px solid #061722;
  border-right:18px solid #061722;
  background:linear-gradient(
    to bottom,
    #aebdc4 0,
    #c3cdd1 22px,
    #d9dedf 44px,
    #ebe9e4 68px,
    #f4f2ed 92px,
    #f4f2ed 100%
  );
}
.cat{position:relative}

/* Editorial update / footer-boundary transition */
.page-end-transition{
  position:relative;
  border-left:18px solid #061722;
  border-right:18px solid #061722;
  background:linear-gradient(
    to bottom,
    #f4f2ed 0%,
    #eef1f1 24%,
    #dfe7e9 48%,
    #c6d4da 68%,
    #8fa7b2 84%,
    #061722 100%
  );
  color:#53636c;
}
.page-updated{
  max-width:1600px;
  margin:0 auto;
  padding:16px 72px 72px;
  border-right:0;
  text-align:right;
  font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
}
.page-updated__accent{
  display:block;
  width:38px;
  height:2px;
  margin:0 0 7px auto;
  background:#d49a00;
}
.page-updated__label{
  display:block;
  color:#71828b;
  font-size:9px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.13em;
}
.page-updated__date{
  display:block;
  margin-top:2px;
  color:#193746;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.06em;
}

/* Desktop article library */
@media(min-width:901px){
  body{font-family:"Source Sans 3",Arial,sans-serif}
  .hero,.gateway-band,.cat>h2,.resource .meta,.resource aside{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
  }
  .cat>h2{
    margin:0;
    padding:11px 14px 10px;
    border:0;
    border-left:4px solid #d49a00;
    background:#e8edf0;
    color:#16313f;
    font-size:15px;
    font-weight:600;
    line-height:1.1;
    letter-spacing:.08em;
  }
  .resource{
    grid-template-columns:300px minmax(0,1fr) 110px;
    gap:28px;
    min-height:185px;
    padding:22px 0;
    background:transparent;
    border-bottom:1px solid #d5dde1;
    align-items:center;
  }
  .resource:hover{background:transparent}
  .resource>img{
    width:300px;
    height:auto;
    max-height:190px;
    object-fit:contain;
    object-position:center;
    border:0;
    background:#dfe5e8;
  }
  .resource .meta{margin:0 0 7px}
  .resource .meta small{
    color:#8b6a08;
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:10px;
    font-weight:600;
    line-height:1;
    letter-spacing:.11em;
  }
  .resource h3{
    margin:0 0 8px;
    color:#102a39;
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:24px;
    font-weight:600;
    line-height:1.1;
    transition:color .16s ease;
  }
  .resource:hover h3,.resource:focus-visible h3{color:#a56f00}
  .resource p{
    max-width:900px;
    margin:0;
    color:#53636c;
    font-size:14px;
    line-height:1.52;
  }
  .resource aside{
    align-self:stretch;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:10px;
    padding-left:18px;
    border-left:1px solid #d8e0e4;
    color:#72818a;
    font-size:10px;
    font-weight:600;
    letter-spacing:.1em;
  }
  .resource aside span{white-space:nowrap}
  .resource-date{color:#72818a}
  .resource aside b{
    margin-top:7px;
    color:#b98500;
    font-size:25px;
    font-weight:400;
    line-height:1;
    transition:transform .16s ease;
  }
  .resource:hover aside b,.resource:focus-visible aside b{transform:translateX(4px)}
}

/* Tablet/mobile font families */
@media(max-width:900px){
  body{font-family:"Source Sans 3",Arial,sans-serif}
  .cat>h2,.resource .meta,.resource aside{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
  }
  .resource h3{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-weight:600;
  }
  .resource p{font-family:"Source Sans 3",Arial,sans-serif}
  .page-updated{padding-left:28px;padding-right:28px}
}

/* Approved HF Central mobile reading scale */
@media(max-width:700px){
  main,.page-end-transition{border-left:0;border-right:0}
  .page-updated{padding:14px 20px 54px}
  .resource h3{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:22px;
    font-weight:600;
    line-height:1.15;
    margin:0 0 10px;
  }
  .resource p{
    font-family:"Source Sans 3",Arial,sans-serif;
    font-size:16px;
    line-height:1.62;
  }
  .resource .meta small{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:11px;
    line-height:1.25;
  }
  .resource aside{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:11px;
  }
  .cat>h2{
    font-family:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif;
    font-size:18px;
    line-height:1.15;
  }
  .resource>img{
    display:block;
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }
}

/* v98 — authoritative HF hero panorama restoration */
.hf-visual{
  background-color:#071521;
  background-image:
    linear-gradient(90deg,rgba(3,13,22,.80) 0%,rgba(3,13,22,.53) 43%,rgba(3,13,22,.13) 100%),
    url("../images/hf/hf-hero.png");
  background-size:100% auto;
  background-position:center center;
  background-repeat:no-repeat;
}
.hf-visual .hero,
.hf-visual .gateway-band{
  background:transparent!important;
}
@media(max-width:700px){
  /* Match the HF Antennas hero crop: size the panorama to the hero,
     not to HF Central's taller hero-plus-gateway wrapper. */
  .hf-visual{
    background-size:auto 270px;
    background-position:67% top;
  }
}


/* v219 — display category names in uppercase */
.cat>h2{text-transform:uppercase}
