/* Pilot Badges (civilian site) additions on top of site/pb/css/pb.css. */
.pc-hdr nav { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: flex-end; white-space: normal; }
.pc-hdr nav a + a { margin-left: 0; }
@media (max-width: 899px) {
  .pc-hdr { position: static; }
  .pc-hdr .wrap { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; }
  .pc-hdr nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 0 12px; }
  .pc-hdr nav a { font-size: 14px; padding: 6px 0; }
}
.pc-hero { display: grid; gap: 20px; align-items: center; padding: 28px 0 12px; }
.pc-hero-tag { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
@media (min-width: 900px) { .pc-hero { grid-template-columns: 1.1fr 1fr; } }
.why b a { color: inherit; }

/* The designer (/design, site/pc/js/pc-designer.js) */
.pcd .preview canvas { cursor: pointer; }
.pcd .tip { text-align: center; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.selbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r); padding: 6px; }
.selname { font-weight: 700; margin-right: 4px; width: 100%; text-align: center; font-size: 14px; }
.tb { min-width: 40px; min-height: 40px; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 600 15px var(--font); cursor: pointer; touch-action: manipulation; }
.tb[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.tb[disabled] { opacity: .4; cursor: default; }
.pclines { display: grid; gap: 12px; }
.pcl label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.pcl .opt { font-weight: 400; }
.pcl input[type=text] { width: 100%; text-transform: none; }   /* exactly as typed (pb.css shows caps) */
.pcrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.pcrow select { flex: 1 1 140px; min-width: 0; min-height: 40px; border-radius: var(--r-sm); background: var(--surface-2);
  color: var(--ink); border: 1px solid var(--line); padding: 0 8px; font-size: 16px; }
.pcwings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcwings .wingopt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); cursor: pointer; }
.wnone { height: 44px; width: 70%; border: 1px dashed var(--line); border-radius: 6px; display: flex; align-items: center;
  justify-content: center; color: var(--ink-2); font-size: 24px; }
.wnone.wup { border-style: solid; }
.pcrange { display: flex; gap: 8px; align-items: center; }
.pcrange input { flex: 1; min-width: 0; }
.acpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.acopt { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm); padding: 6px; cursor: pointer; }
.acopt img { width: 100%; height: 40px; object-fit: contain; filter: invert(1) opacity(.85); display: block; }
.acopt[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.pcside + .pcside { margin-top: 12px; }
.rights { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.rights input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pccombos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pccombos .chip.combo { flex-direction: row; align-items: center; gap: 8px; }
.sw2 { width: 34px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); flex: none; }
.sw2 i { width: 18px; height: 6px; border-radius: 2px; display: block; }
@media (min-width: 900px) { .pccombos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  /* keep the sticky preview short on a phone: one scrolling row of buttons */
  .selbar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 4px; gap: 4px; }
  .selname { width: auto; flex: none; margin: 0 4px; }
  .selbar .tb { flex: none; min-width: 38px; min-height: 38px; padding: 2px 8px; }
  .pcd .preview .size { display: none; }
  .pcrow select { flex-basis: 100%; }
}

/* Wing designs (2026-10-23): /wings page and the designer's "More wing designs" picker */
.pcmore { margin-top: 12px; }
.pctabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.pctabs .tb { min-height: 36px; font-size: 14px; }
/* More wing designs: a button that opens the full-screen gallery (2026-10-30) */
.pcbrowse { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent-soft); color: var(--ink);
  font: inherit; cursor: pointer; touch-action: manipulation; }
.pcbrowse-t { font-weight: 700; font-size: 17px; }
.pcbrowse-s { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.pcbrowse-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) { .pcbrowse { grid-template-columns: 1fr; } .pcbrowse-go { grid-column: 1; grid-row: auto; margin-top: 4px; } }
html.wg-open, html.wg-open body { overflow: hidden; }
.wg { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--bg); }
.wg[hidden] { display: none; }
.wg-top { padding: 12px 16px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; }
.wg-head h2 { margin: 0; font-size: 20px; }
.wg-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-size: 18px; cursor: pointer; flex: none; }
.wg-cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; max-width: 1200px; margin: 0 auto; scrollbar-width: none; }
.wg-cats::-webkit-scrollbar { display: none; }
.wg-cats .tb { flex: none; white-space: nowrap; min-height: 40px; }
.wg-n { color: var(--ink-2); font-weight: 400; font-size: 13px; }
.wg-grid { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px;
  display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
@media (min-width: 640px) { .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; width: 100%; margin: 0 auto; } }
.wgcard { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.wgcard canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 6px; background: #1c1c1c; opacity: .35; transition: opacity .2s; }
.wgcard.drawn canvas { opacity: 1; background: none; }
.wgcard-t { font-size: 15px; line-height: 1.3; }
.wgcard-t b { color: var(--accent); margin-right: 4px; }
.wgcard:hover { border-color: var(--ink-2); }
.wgcard[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.wg-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface); }
.wg-picked { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-use { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-sm); background: var(--accent);
  color: var(--accent-ink); font: 700 16px var(--font); cursor: pointer; }
.wg-use[disabled] { opacity: .4; cursor: default; }
.wjump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.wjump .chip { text-decoration: none; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.wcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.wcard:hover, .wcard:focus-visible { border-color: var(--accent); }
.wcard img { width: 100%; height: auto; display: block; }
.wcard span { font-size: 14px; }
.wcard .go { color: var(--accent); font-weight: 600; }
h2[id] { scroll-margin-top: 16px; }
