/* Shared navigation and resource cards: calm hierarchy, generous click targets. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fly-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.site-header__inner { min-height: 88px; }
.site-title img { width: auto; height: 52px; max-height: 52px; }
.site-nav { gap: 1rem; }
.site-nav .fly-primary-links { gap: .3rem; }
.fly-primary-links > li > a, .fly-nav-group > summary { padding-inline: .8rem; border-radius: 8px; font-size: .92rem; }
.fly-nav-group > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.fly-nav-group[open] > summary::after { content: ''; transform: translateY(2px) rotate(225deg); }
.fly-nav-group.is-current-section > summary, .fly-primary-links > li > a[aria-current=page] { color: #174f8f; background: #eef4fb; }
.fly-nav-group > summary:hover, .fly-primary-links > li > a:hover { background: #f0f5fa; }
.site-nav .fly-nav-group > ul { top: calc(100% + .5rem); width: 260px; border-radius: 12px; padding: .5rem; box-shadow: 0 12px 32px #10243a15; }
.fly-nav-group > ul a { border-radius: 7px; font-size: .9rem; }
.fly-nav-search { position: relative; }
.fly-nav-search > summary { display: flex; align-items: center; gap: .45rem; list-style: none; min-height: 44px; padding: .45rem .75rem; border: 1px solid #dbe4ee; border-radius: 8px; font-size: .9rem; }
.fly-nav-search > summary::-webkit-details-marker { display: none; }
.fly-nav-search[open] > summary, .fly-nav-search > summary:hover { background: #eef4fb; }
.fly-search-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; padding: 1rem; width: min(360px, calc(100vw - 2rem)); background: white; border: 1px solid #dbe4ee; border-radius: 12px; box-shadow: 0 12px 32px #10243a15; }
.header-search .search-form { gap: .5rem; }
.header-search .search-form label { flex: 1; min-width: 0; }
.header-search input[type=search] { width: 100%; min-height: 44px; padding: .6rem .7rem; font: inherit; }
.header-search input[type=submit] { min-height: 44px; border-color: #1f5ea8; background: #1f5ea8; color: white; }
.menu-toggle { border-radius: 8px; padding-inline: 1rem; }

.fly-hero { padding-block: clamp(2.8rem, 5vw, 4.2rem); background: #10243a; }
.fly-hero h1 { max-width: 760px; font-size: clamp(2.3rem, 4.6vw, 3.65rem); letter-spacing: -.035em; line-height: 1.09; }
.fly-hero p:not(.fly-eyebrow) { max-width: 650px; font-size: 1.1rem; line-height: 1.7; }
.fly-hero .fly-actions { margin: 1.6rem 0 0; }
.fly-hero .button { display: inline-flex; gap: 1rem; align-items: center; min-height: 48px; padding: .75rem 1rem; border-radius: 8px; font-size: .94rem; }
.fly-hero .button:hover { background: #fff; }
.fly-hero .fly-secondary:hover { background: #244765; }
.fly-home-section { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.fly-home-section:last-child { border-bottom: 0; }
.fly-start { scroll-margin-top: 1.5rem; }
.fly-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.fly-section-heading .fly-eyebrow { color: #436080; font-size: .72rem !important; margin: 0 0 .55rem; }
.fly-section-heading h2 { font-size: clamp(1.5rem, 2.5vw, 1.95rem); line-height: 1.25; letter-spacing: -.025em; margin: 0; }
.fly-section-heading p:not(.fly-eyebrow) { color: var(--color-muted); margin: .7rem 0 0; }
.fly-section-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; flex-shrink: 0; font-size: .9rem; font-weight: 650; text-decoration: none; }
.fly-section-link:hover { text-decoration: underline; }
.fly-resource-grid { gap: 1.15rem; }
.fly-home-section .fly-resource-grid { margin: 0; }
.fly-grid-three, .fly-home-tools .fly-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fly-card.fly-resource { --resource-bg: #edf3fa; --resource-ink: #142a43; --resource-muted: #435b74; --resource-accent: #1c579b; --resource-line: #cbdbea; padding: 1.5rem; border-radius: 12px; border-color: var(--resource-line); background: var(--resource-bg); color: var(--resource-ink); box-shadow: none; transition: border-color .15s ease; }
.fly-card.fly-resource:hover { background: var(--resource-bg); border-color: var(--resource-accent); box-shadow: none; }
.fly-card.fly-resource { position: relative; }
.fly-resource .fly-resource-action { font-weight: 650; text-decoration: none; min-height: 44px; }
.fly-resource-action::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.fly-resource-action:focus-visible { outline: none; }
.fly-resource-action:focus-visible::after { outline: 3px solid #155db0; outline-offset: 3px; }
.fly-start .fly-resource:first-child .fly-resource-action:focus-visible::after,
.fly-home-research .fly-resource:first-child .fly-resource-action:focus-visible::after,
body.page .entry-content > .fly-resource-grid > .fly-resource:first-child .fly-resource-action:focus-visible::after { outline-color: #fff; outline-offset: -6px; }
.fly-resource .fly-resource-top { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.15rem; }
.fly-resource .fly-resource-icon, .fly-resource-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; margin: 0; border: 1px solid #d7e6f5; border-radius: 11px; background: #edf4fc; color: #285d96; }
.fly-resource .fly-resource-label { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--resource-muted); line-height: 1.5; }
.fly-resource h2, .fly-resource h3 { margin: 0 0 .7rem; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.015em; color: var(--resource-ink); }
.fly-resource p { color: var(--resource-muted); margin: 0 0 1.25rem; font-size: .94rem; line-height: 1.7; }
.fly-resource .fly-resource-action { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding-top: .9rem; margin-top: auto; border-top: 1px solid var(--resource-line); font-size: .88rem; color: var(--resource-accent); }
.fly-start .fly-resource { border-top: 3px solid #93b6de; }
.fly-start .fly-resource:nth-child(2) { border-top-color: #93baac; }
.fly-start .fly-resource:nth-child(2) .fly-resource-icon { background: #edf5f1; color: #286454; border-color: #d8e8df; }
.fly-start .fly-resource:nth-child(3) { border-top-color: #93b6de; }
.fly-start .fly-resource:nth-child(3) .fly-resource-icon { background: #dae8f8; color: #285d96; border-color: #bed2e9; }
.fly-directory-callout { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; margin-top: 1.2rem; border: 1px solid #d9e5f1; border-radius: 12px; background: #f3f7fc; text-decoration: none; color: var(--color-text); }
.fly-directory-callout > span:nth-child(2) { flex: 1; }
.fly-directory-callout strong { display: block; line-height: 1.4; }
.fly-directory-callout > span:nth-child(2) > span { display: block; margin-top: .3rem; font-size: .9rem; color: var(--color-muted); }
.fly-callout-action { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 650; color: #1c579b; }
.fly-directory-callout:hover { border-color: #8daed3; background: #edf4fb; }
.fly-contribute { display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.fly-contribute > div:first-child { max-width: 650px; }
.fly-contribute h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.fly-contribute p { color: var(--color-muted); margin-bottom: 0; font-size: .93rem; }
.fly-contribute .fly-trust-links { flex-direction: column; gap: .4rem; flex-shrink: 0; }
.fly-trust-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }

.fly-listing { width: min(100% - 2rem, var(--container-wide)); }
.fly-listing .entry-header { max-width: 760px; }
.fly-listing-intro { max-width: 720px; color: var(--color-muted); margin-bottom: 1.5rem; }
.fly-topic-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.fly-topic-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #d7e1ed; border-radius: 8px; background: #fff; color: #415973; font-size: .85rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.fly-topic-nav a:hover { border-color: #8daed3; background: #f1f6fc; }
.fly-topic-nav a[aria-current=page] { border-color: #1f5ea8; background: #1f5ea8; color: #fff; }
.posts-grid { align-items: stretch; }
.post-card { padding: 0; min-width: 0; background: #fff; border: 1px solid #d5e0ec; border-radius: 14px; box-shadow: 0 4px 16px #13203305; }
.post-card__link { height: 100%; display: flex; flex-direction: column; border-radius: 14px; text-decoration: none; color: var(--color-text); }
.post-card:hover { border-color: #8daed3; box-shadow: 0 8px 24px #1320330c; }
.post-card__image { margin: 0; border-radius: 13px 13px 0 0; }
.post-card__image img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-card__body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 1.4rem; }
.post-card__category { display: inline-block; max-width: 100%; padding: .25rem .65rem; margin-bottom: 1rem; border-radius: 6px; background: #edf4fb; color: #285986; font-size: .7rem; font-weight: 650; line-height: 1.5; }
.post-card h2, .post-card h3 { margin: 0 0 .7rem; font-size: 1.18rem; line-height: 1.4; letter-spacing: -.015em; }
.post-card__link:hover h2, .post-card__link:hover h3 { color: #1f5ea8; }
.post-card p.post-card__excerpt { margin: 0 0 1.25rem; color: var(--color-muted); font-size: .92rem; line-height: 1.7; }
.post-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; gap: .6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #e4ebf3; }
.post-card__action { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 650; color: #1c579b; }
.post-card__action .fly-icon { width: 18px; height: 18px; }
.post-card__footer time { color: #57677c; font-size: .75rem; }
.fly-next-resources { margin-block: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.fly-next-resources > h2 { margin: 0; font-size: 1.45rem; }
.fly-next-resources > p { color: var(--color-muted); font-size: .95rem; }
/* Distinct solid surfaces, open editorial lists and compact resource rows. */
.fly-start .fly-resource:first-child,
.fly-home-research .fly-resource:first-child,
body.page .entry-content > .fly-resource-grid > .fly-resource:first-child {
  --resource-bg: #142a43; --resource-ink: #fff; --resource-muted: #d4dfec; --resource-accent: #c5defb; --resource-line: #49617b; border-color: #142a43;
}
.fly-start .fly-resource:first-child .fly-resource-icon,
.fly-home-research .fly-resource:first-child .fly-resource-icon,
body.page .entry-content > .fly-resource-grid > .fly-resource:first-child .fly-resource-icon { color: #dceafb; background: #263f5b; border-color: #49617b; }
.fly-start .fly-resource:nth-child(2),
body.page .entry-content > .fly-resource-grid > .fly-resource:nth-child(3) { --resource-bg: #edf4ee; --resource-ink: #203d33; --resource-muted: #426155; --resource-accent: #286454; --resource-line: #c8ded0; }
.fly-start .fly-resource:first-child:focus-visible,
.fly-home-research .fly-resource:first-child:focus-visible,
body.page .entry-content > .fly-resource-grid > .fly-resource:first-child:focus-visible { outline-color: #fff; outline-offset: -6px; }
.fly-home-tools .fly-resource-grid { grid-template-columns: 1fr; gap: 0; padding: .25rem 1.5rem; border-radius: 12px; background: #edf3fa; }
.fly-home-tools .fly-card.fly-resource { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; column-gap: 2rem; padding: 1.4rem 0; border: 0; border-bottom: 1px solid #cbdbea; border-radius: 0; background: transparent; }
.fly-home-tools .fly-resource:last-child { border-bottom: 0; }
.fly-home-tools .fly-resource:hover { background: #e2ecf7; }
.fly-home-tools .fly-resource-top { grid-column: 1; grid-row: 1; margin: 0 0 .6rem; }
.fly-home-tools .fly-resource h3 { grid-column: 1; grid-row: 2; margin: 0; }
.fly-home-tools .fly-resource p { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.fly-home-tools .fly-resource-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; padding: 0; margin: 0; border: 0; }
.fly-home-guides .posts-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr); gap: 0 2.2rem; }
.fly-home-guides .post-card { box-shadow: none; }
.fly-home-guides .post-card:first-child { grid-row: span 5; border: 0; background: #e8f0fa; }
.fly-home-guides .post-card:first-child .post-card__body { padding: 1.8rem; justify-content: center; }
.fly-home-guides .post-card:first-child .post-card__footer { margin-top: 1.5rem; }
.fly-home-guides .post-card:first-child h3 { font-size: 1.85rem; line-height: 1.25; }
.fly-home-guides .post-card:first-child .post-card__category { background: #d6e5f6; }
.fly-home-guides .post-card:nth-child(n+2) { border: 0; border-bottom: 1px solid #d6e1ed; border-radius: 0; background: transparent; }
.fly-home-guides .post-card:nth-child(n+2) .post-card__link { border-radius: 0; }
.fly-home-guides .post-card:nth-child(n+2) .post-card__image,
.fly-home-guides .post-card:nth-child(n+2) .post-card__excerpt { display: none; }
.fly-home-guides .post-card:nth-child(n+2) .post-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: 1.25rem 0; align-items: center; }
.fly-home-guides .post-card:nth-child(n+2) .post-card__category { grid-column: 1; grid-row: 1; background: transparent; padding: 0; margin: 0; }
.fly-home-guides .post-card:nth-child(n+2) h3 { grid-column: 1; grid-row: 2; font-size: 1.05rem; margin: 0; }
.fly-home-guides .post-card:nth-child(n+2) .post-card__footer { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: .4rem; width: auto; border: 0; padding: 0; margin: 0; }
.fly-home-research .fly-resource-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
.fly-home-research .fly-resource:first-child { padding: 2rem; }
.fly-home-research .fly-resource:first-child h3 { font-size: 1.6rem; }
.fly-home-research .fly-resource:first-child .fly-resource-action { align-self: flex-start; padding: .7rem 1rem; border: 0; border-radius: 6px; background: #fff; color: #142a43; margin-top: .5rem; }
.fly-home-research .fly-resource:nth-child(2) { --resource-bg: transparent; padding: 1.3rem 0 1.3rem 2rem; border: 0; border-left: 1px solid #cbdbea; border-radius: 0; }
.fly-home-research .fly-resource:nth-child(2) .fly-resource-icon { display: none; }
.fly-next-resources { padding: 1.5rem; border: 0; border-radius: 12px; background: #edf3fa; }
.fly-next-resources .fly-resource-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
.fly-next-resources .fly-card.fly-resource { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1.5rem; padding: 1.2rem 0; border: 0; border-top: 1px solid #cbdbea; border-radius: 0; background: transparent; }
.fly-next-resources .fly-resource-top { grid-column: 1; grid-row: 1; margin: 0 0 .5rem; }
.fly-next-resources .fly-resource-icon { display: none; }
.fly-next-resources .fly-resource h3 { grid-column: 1; grid-row: 2; font-size: 1.12rem; }
.fly-next-resources .fly-resource p { grid-column: 1; grid-row: 3; margin: 0; }
.fly-next-resources .fly-resource-action { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 0; border: 0; max-width: 190px; }
.site-footer { background: #f5f8fc; padding-block: 2.5rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.fly-footer-brand { color: #243c56; font-weight: 650; }
.fly-footer-brand p { color: var(--color-muted); font-size: .85rem; font-weight: 400; max-width: 42ch; margin: .8rem 0 0; }
.fly-footer-brand p:last-child { font-size: .76rem; }
.site-footer nav strong { color: #243c56; font-size: .86rem; }
.site-footer nav ul { flex-direction: column; gap: 0; margin-top: .65rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; line-height: 1.5; }
.site-footer .footer-topics { display: block; }

@media (min-width: 1100px) {
  .fly-listing .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  body.page .entry-content > .fly-resource-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.page .entry-content > .fly-resource-grid > .fly-resource { grid-column: span 2; }
  body.page .entry-content > .fly-resource-grid > .fly-resource:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header__inner { gap: .5rem; }
  .site-title a { gap: .4rem; }
  .site-title img { height: 40px; }
  .site-nav { gap: .4rem; }
  .fly-primary-links > li > a, .fly-nav-group > summary { padding-inline: .55rem; }
  .fly-nav-search > summary { padding-inline: .6rem; }
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fly-grid-three { grid-template-columns: 1fr; }
  .fly-home-tools .fly-card.fly-resource { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; }
  .fly-home-tools .fly-resource p { grid-column: 1; grid-row: 3; margin-top: .75rem; }
  .fly-home-tools .fly-resource-action { grid-column: 2; grid-row: 1 / span 3; }
  .fly-home-guides .posts-grid, .fly-home-research .fly-resource-grid { grid-template-columns: 1fr; gap: 1rem; }
  .fly-home-guides .post-card:first-child { grid-row: auto; }
  .fly-home-guides .post-card:first-child h3 { font-size: 1.6rem; }
  .fly-home-research .fly-resource:nth-child(2) { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid #cbdbea; }
  .fly-directory-callout { flex-wrap: wrap; }
  .fly-callout-action { flex-basis: 100%; margin-left: 58px; }
  .fly-contribute { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .fly-contribute .fly-trust-links { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 600px) {
  .fly-home-tools .fly-resource-grid { padding-inline: 1.25rem; }
  .fly-home-tools .fly-card.fly-resource, .fly-next-resources .fly-card.fly-resource { grid-template-columns: 1fr; }
  .fly-home-tools .fly-resource-action, .fly-next-resources .fly-resource-action { grid-column: 1; grid-row: 4; margin-top: 1rem; justify-content: flex-start; max-width: none; }
  .fly-home-guides .post-card:nth-child(n+2) .post-card__body { grid-template-columns: 1fr; }
  .fly-home-guides .post-card:nth-child(n+2) .post-card__footer { grid-column: 1; grid-row: 3; flex-direction: row; align-items: center; justify-content: space-between; margin-top: .4rem; }
  .fly-home-research .fly-resource:first-child { padding: 1.5rem; }
}
@media (max-width: 760px) {
  .fly-footer-brand { grid-column: 1 / -1; }
  .site-header__inner { min-height: 74px; padding-block: .65rem; }
  .site-title img { height: 42px; }
  .site-nav { gap: .7rem; padding-bottom: .5rem; }
  .site-nav .fly-primary-links { gap: .25rem; }
  .site-nav .fly-nav-group > ul { padding: .3rem 0 .3rem .75rem; width: 100%; }
  .fly-nav-search { width: 100%; }
  .fly-nav-search > summary { width: 100%; }
  .fly-search-panel { position: static; width: 100%; box-shadow: none; border: 0; padding: .8rem 0 .2rem; }
  .fly-section-heading { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .fly-section-heading:has(.fly-section-link) { margin-bottom: 1rem; }
  .fly-card.fly-resource, .post-card__body { padding: 1.25rem; }
  .fly-directory-callout { padding: 1.1rem; }
  .fly-directory-callout > span:nth-child(2) { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .fly-card.fly-resource { transition: none; } }
@media print {
  .fly-topic-nav, .fly-next-resources { display: none; }
  .fly-card.fly-resource, .post-card { box-shadow: none; break-inside: avoid; }
  .fly-card.fly-resource { --resource-bg: #fff !important; --resource-ink: #142a43 !important; --resource-muted: #435b74 !important; --resource-accent: #1c579b !important; --resource-line: #cbdbea !important; }
}
