/* Montserrat, self-hosted — the design loaded it from fonts.googleapis.com,
 * a third-party request on every page of a public Italian site. These are the
 * exact files Google serves (variable, weights 400-800, SIL OFL 1.1 — see
 * fonts/OFL.txt). unicode-range keeps latin-ext from downloading unless a
 * character actually needs it, so Italian text fetches only the 35 KB latin
 * file. */
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;   /* variable: one file covers 400-800 */
  font-display: swap;
  src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;   /* variable: one file covers 400-800 */
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nexxum Help — everything the baked design does not already carry inline.
 *
 * The design pages style themselves with inline styles, so the rules here that
 * need to win on small screens are !important by necessity, not by habit. */

.nx-panel[hidden] { display: none; }

[data-nx-acc] { cursor: pointer; }
[data-nx-acc]:focus-visible {
  outline: 2px solid #135BEC;
  outline-offset: 2px;
  border-radius: 12px;
}

#nx-q:focus { border-color: #135BEC; }

#nx-results a:hover { background: #f7f9fc; text-decoration: none; }

/* The article body is authored at a fixed 760px with several wide grids
 * (5- and 6-column mockups). Rather than reflow layouts the design never
 * defined, let anything genuinely too wide scroll inside the column. */
.nx-article > div[style*="grid-template-columns"],
.nx-article > div[style*="display:flex"] { max-width: 100%; }

@media (max-width: 900px) {
  /* The sidebar is position:fixed at 220px with the content padded to match.
   * Below this width there is no room for both. */
  .nx-sidebar { display: none !important; }
  .nx-main { padding-left: 0 !important; }
  .nx-article { padding: 20px 16px 48px !important; }
  .nx-topbar { padding: 12px 16px !important; gap: 10px !important; }
  .nx-topbar a[href^="mailto:"] { display: none !important; }

  /* Several mockups are grids of fixed pixel columns (a FID table row, a
   * services header) that cannot reflow. Constrain them to the column and let
   * the mockup itself scroll, rather than pushing the whole page sideways. */
  .nx-article [style*="grid-template-columns"] {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 620px) {
  .nx-article h1 { font-size: 24px !important; }

  /* Proportional grids (1fr/minmax columns of cards) stack instead of
   * scrolling — they are prose-like content, not diagrams. The fixed-pixel
   * mockups keep their shape and scroll, per the rule above. */
  .nx-article div[style*="minmax(0,1fr)"]:not([style*="px "]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Flex rows of equal-width cards (the 6-step coaching flow, badge rows) are
   * authored to sit on one line; on a phone they wrap instead of overflowing. */
  .nx-article div[style*="display:flex"] { flex-wrap: wrap !important; }
}

@media print {
  .no-print, .nx-sidebar, .nx-topbar { display: none !important; }
  .nx-main { padding-left: 0 !important; }
  .nx-article { max-width: none !important; padding: 0 !important; }
  .nx-panel[hidden] { display: block !important; }  /* print the full article */
  body { background: #fff !important; }
}
