:root {
  color-scheme: light;
  --canvas: #eef2f7;
  --surface: #fff;
  --ink: #16263b;
  --muted: #42566e;
  --line: #ccd8e5;
  --link: #174d91;
  --navy: #101f32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.17; letter-spacing: -.035em; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, summary):focus-visible { outline: 3px solid #a13928; outline-offset: 4px; }
img, svg { display: block; }
[id] { scroll-margin-top: 12px; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; transform: translateY(-200%); background: #fff; border-radius: 8px; padding: .65rem 1rem; }
.skip:focus { transform: none; }

.topbar, main, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 14px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.12; }
.brand span { font-size: .72rem; font-weight: 650; color: var(--muted); }
.brand strong { display: block; margin-top: 3px; font-size: 1rem; color: var(--ink); }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 8px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.topbar nav .bureau { padding-inline: 13px; border: 1px solid #bacadd; border-radius: 9px; background: var(--surface); }

.hero { display: grid; grid-template-columns: 1.18fr 1fr; overflow: hidden; background: var(--navy); color: #fff; border-radius: 16px; margin: 4px 0 24px; }
.hero-copy { padding: 26px 30px; align-self: center; }
h1 { font-size: clamp(1.95rem, 4.1vw, 3.4rem); line-height: 1.07; }
h1 em { color: #b8f36e; font-style: normal; }
.hero p { margin-top: .65rem; color: #e2ebf5; font-size: .97rem; max-width: 33rem; }
.terrain { position: relative; min-height: 160px; }
.terrain img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.terrain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 46%); }
.terrain figcaption { position: absolute; z-index: 1; bottom: 8px; right: 10px; padding: 2px 7px; border-radius: 4px; background: #101f32ed; font-size: .69rem; color: #fff; }

.section-heading { margin-bottom: 10px; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  --accent: #2259a1;
  --tint: #e8f0fc;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding: 14px 15px 10px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}
.tool-card.radio { --accent: #67449b; --tint: #f0e9fa; }
.tool-card.logbook { --accent: #126751; --tint: #e3f4ed; }
.tool-card.simulate { --accent: #944916; --tint: #fcf0df; }
.tool-card.photo { --accent: #116579; --tint: #dff1f6; }
.tool-card.records { --accent: #435675; --tint: #e8edf7; }
.anchor { position: absolute; top: 0; }
.card-head { display: flex; align-items: center; gap: .64rem; }
.tool-icon { display: grid; flex: 0 0 39px; height: 39px; place-items: center; background: var(--tint); color: var(--accent); border-radius: 9px; }
.tool-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tool-card > p:not(.access-note) { color: var(--muted); margin: 8px 0 11px; font-size: .87rem; line-height: 1.4; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: .65rem; margin-top: auto; min-height: 42px; max-width: 100%; padding: 7px 11px; border-radius: 8px; background: var(--accent); color: #fff; font-size: .83rem; font-weight: 750; text-decoration: none; }
.button:hover { text-decoration: underline; filter: brightness(.9); }
.card-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: 13px; min-width: 0; margin-top: 2px; }
.card-links a, .access-note { font-size: .77rem; }
.card-links a { display: inline-flex; align-items: center; min-height: 34px; font-weight: 650; color: var(--accent); }
.access-note { min-height: 34px; display: flex; align-items: center; margin-top: 2px; color: var(--muted); }

.extras, .help { margin-top: 24px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.resource-grid article { padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfe; min-width: 0; }
.resource-grid h3 { font-size: .99rem; }
.resource-grid p { margin-top: 3px; color: var(--muted); font-size: .81rem; }
.resource-grid a { display: flex; align-items: center; gap: .3rem; min-height: 35px; font-size: .78rem; font-weight: 650; }
.help { display: grid; grid-template-columns: 1fr 1.45fr; gap: 20px; padding: 17px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.help p { color: var(--muted); font-size: .85rem; margin-top: 5px; max-width: 27rem; }
.help a { font-size: .85rem; font-weight: 650; }
#private-tools { min-height: 42px; display: inline-flex; align-items: center; }
.answers details + details { border-top: 1px solid var(--line); }
.answers summary { min-height: 37px; padding: 8px 0; font-size: .87rem; font-weight: 650; cursor: pointer; }
.answers p { margin: 0 0 10px; max-width: none; }
footer { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 14px; padding: 0 0 16px; font-size: .8rem; }
footer a { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); }

@media (max-width: 860px) {
  .tools-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .topbar, main, footer { width: calc(100% - 24px); }
  .topbar { padding-block: 9px; flex-wrap: wrap; }
  .topbar nav { gap: 2px 4px; }
  .topbar nav a, .topbar nav .bureau { min-height: 44px; padding-inline: 8px; }
  .hero { margin-top: 2px; margin-bottom: 17px; grid-template-columns: 1fr; border-radius: 12px; }
  .hero-copy { padding: 16px; }
  .hero p { margin-top: .4rem; font-size: .88rem; }
  .terrain { min-height: 69px; }
  .terrain::after { background: linear-gradient(180deg, var(--navy), transparent 64%); }
  .tool-card { padding: 12px 12px 7px; }
  .button, .card-links a, .resource-grid a, .answers summary, #private-tools { min-height: 44px; }
  .tools-grid { grid-template-columns: 1fr; gap: 9px; }
  .resource-grid { gap: 8px; }
  .help { grid-template-columns: 1fr; gap: 4px; }
  .extras, .help { margin-top: 17px; }
}


/* Direct entry to the FPV workshop, visible above the application grid. */
.fpv-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 14px;
  margin: 0 0 16px;
  border: 1px solid #b7cfc0;
  border-left: 4px solid #286344;
  border-radius: 10px;
  background: #e8f2ec;
}
.fpv-feature > div { flex: 1 1 340px; min-width: 0; }
.fpv-feature h2 { font-size: 1.14rem; }
.fpv-feature p { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.fpv-feature .button { --accent: #215f41; margin-top: 0; min-height: 44px; }
