/* ==========================================================================
   YPIC New Style Web: shared base for YPIC websites (TechWise, IT Support, ...)
   Sister of NewStyle (systems). Same neutrals and brand rules, tuned for reading
   and browsing: large type, generous space, frosted nav, soft gray bands.
   Each site sets only --nw-accent (includes/config.php). Classes are prefixed "nw-".
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --nw-accent: #0a66d6;
  --nw-accent-hover: color-mix(in oklab, var(--nw-accent) 85%, #000);
  --nw-accent-soft: color-mix(in oklab, var(--nw-accent) 10%, #fff);
  --nw-accent-line: color-mix(in oklab, var(--nw-accent) 35%, #fff);

  --nw-bg: #fff;
  --nw-bg-2: #f5f5f7;          /* gray band */
  --nw-bg-3: #e8e8ed;
  --nw-ink: #1d1d1f;
  --nw-ink-2: #5e5e63;         /* secondary text, 5.9:1 on white */
  --nw-ink-3: #6e6e73;         /* captions, 4.9:1 on white */
  --nw-line: #d2d2d7;
  --nw-line-soft: #e5e5ea;

  --nw-dark: #0b0b0d;          /* dark band */
  --nw-dark-2: #1c1c1f;
  --nw-dark-ink: #f5f5f7;
  --nw-dark-ink-2: #a1a1a6;

  --nw-ok: #1d7a3d; --nw-ok-bg: #e7f4ec;
  --nw-warn: #8a5300; --nw-warn-bg: #fdf3dd;
  --nw-bad: #c4281c; --nw-bad-bg: #fdecea;

  --nw-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nw-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nw-wrap: 1120px;
  --nw-wrap-wide: 1320px;
  --nw-read: 680px;
  --nw-gutter: 24px;
  --nw-section: 112px;
  --nw-nav-h: 52px;

  --nw-r-sm: 12px;
  --nw-r: 20px;
  --nw-r-lg: 28px;
  --nw-shadow: 0 2px 6px rgb(0 0 0 / .04), 0 12px 32px -8px rgb(0 0 0 / .10);
  --nw-shadow-lg: 0 4px 12px rgb(0 0 0 / .05), 0 32px 64px -16px rgb(0 0 0 / .18);
  --nw-ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nw-nav-h) + 16px); }
body.nw {
  margin: 0;
  font: 17px/1.47 var(--nw-font);
  letter-spacing: -.011em;
  color: var(--nw-ink);
  background: var(--nw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--nw-accent);
  accent-color: var(--nw-accent);
}
.nw [hidden] { display: none !important; }
.nw ::selection { background: var(--nw-accent-line); color: var(--nw-ink); }
.nw a { color: var(--nw-accent); text-decoration: none; }
.nw a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.nw h1, .nw h2, .nw h3, .nw h4 { margin: 0; font-family: var(--nw-font-display); font-weight: 600; color: inherit; text-wrap: balance; }
.nw p { margin: 0; }
.nw img { max-width: 100%; }
.nw :focus-visible { outline: 2px solid var(--nw-accent); outline-offset: 3px; border-radius: 6px; }
.nw * { scrollbar-width: thin; scrollbar-color: #c7c7cc transparent; }
.nw-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.nw-icon.lg { width: 28px; height: 28px; }
.nw-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; border-radius: 10px; background: var(--nw-bg); box-shadow: var(--nw-shadow); }
.nw-skip:focus { top: 12px; }
.nw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type scale ---------- */
.nw-display { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.04; letter-spacing: -.028em; }
.nw-h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.025em; }
.nw-h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.022em; }
.nw-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.016em; }
.nw-lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; letter-spacing: -.014em; color: var(--nw-ink-2); max-width: 40ch; }
.nw-caption { font-size: 14px; line-height: 1.43; color: var(--nw-ink-3); letter-spacing: -.006em; }
.nw-center { text-align: center; }
.nw-center .nw-lead { margin-left: auto; margin-right: auto; }

/* ---------- 4. Layout ---------- */
.nw-wrap { width: 100%; max-width: calc(var(--nw-wrap) + var(--nw-gutter) * 2); margin: 0 auto; padding: 0 var(--nw-gutter); }
.nw-wrap.wide { max-width: calc(var(--nw-wrap-wide) + var(--nw-gutter) * 2); }
.nw-wrap.read { max-width: calc(var(--nw-read) + var(--nw-gutter) * 2); }
.nw-section { padding: var(--nw-section) 0; }
.nw-section.tight { padding: calc(var(--nw-section) * .6) 0; }
.nw-band { background: var(--nw-bg-2); }
.nw-dark { background: var(--nw-dark); color: var(--nw-dark-ink); }
.nw-dark .nw-lead, .nw-dark .nw-caption { color: var(--nw-dark-ink-2); }
.nw-dark a:not(.nw-btn) { color: color-mix(in oklab, var(--nw-accent) 55%, #fff); }
.nw-sechead { margin-bottom: 48px; }
.nw-sechead .nw-lead { margin-top: 16px; }
.nw-sechead.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }

/* ---------- 5. Navigation (frosted) ---------- */
.nw-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgb(251 251 253 / .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(0 0 0 / .08);
}
.nw-nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nw-nav-h); max-width: calc(var(--nw-wrap-wide) + var(--nw-gutter) * 2); margin: 0 auto; padding: 0 var(--nw-gutter); }
.nw-wordmark { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--nw-font-display); letter-spacing: -.02em; color: var(--nw-ink) !important; text-decoration: none !important; }
.nw-wordmark-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--nw-accent); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15); position: relative; }
.nw-wordmark-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transform: scale(.55); }
.nw-nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nw-nav-links a { padding: 6px 12px; border-radius: 980px; font-size: 14px; color: rgb(29 29 31 / .78); letter-spacing: -.01em; transition: color .2s, background .2s; }
.nw-nav-links a:hover { color: var(--nw-ink); text-decoration: none; background: rgb(0 0 0 / .04); }
.nw-nav-links a[aria-current="page"] { color: var(--nw-ink); font-weight: 600; }
.nw-nav-actions { display: flex; align-items: center; gap: 8px; }
.nw-nav-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgb(29 29 31 / .78); cursor: pointer; }
.nw-nav-icon:hover { background: rgb(0 0 0 / .05); color: var(--nw-ink); }
.nw-nav-icon .nw-icon { width: 18px; height: 18px; }
.nw-nav-menu { display: none; }
.nw-searchbar { border-top: 1px solid rgb(0 0 0 / .06); animation: nw-drop .35s var(--nw-ease); }
.nw-searchbar-inner { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px var(--nw-gutter); color: var(--nw-ink-3); }
.nw-searchbar input { flex: 1; border: 0; background: none; font: 400 24px/1.2 var(--nw-font-display); letter-spacing: -.02em; color: var(--nw-ink); outline: none; }
.nw-searchbar input::placeholder { color: #8e8e93; }

/* ---------- 6. Buttons and links ---------- */
.nw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border: 1px solid var(--nw-accent); border-radius: 980px;
  background: var(--nw-accent); color: #fff !important;
  font: 500 17px/1 var(--nw-font); letter-spacing: -.016em;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--nw-ease);
}
.nw-btn:hover { background: var(--nw-accent-hover); border-color: var(--nw-accent-hover); }
.nw-btn:active { transform: scale(.98); }
.nw-btn.ghost { background: transparent; color: var(--nw-accent) !important; }
.nw-btn.ghost:hover { background: var(--nw-accent-soft); }
.nw-btn.light { background: #fff; border-color: #fff; color: var(--nw-ink) !important; }
.nw-btn.light:hover { background: #e8e8ed; border-color: #e8e8ed; }
.nw-btn-sm { min-height: 30px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.nw-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.nw-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: nw-spin .7s linear infinite; }
.nw-more { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; letter-spacing: -.016em; }
.nw-more::after { content: ""; width: 7px; height: 7px; margin-left: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: transform .25s var(--nw-ease); }
.nw-more:hover { text-decoration: none; }
.nw-more:hover::after { transform: translateX(3px) rotate(45deg); }
.nw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.nw-center .nw-actions { justify-content: center; }

/* ---------- 7. Hero ---------- */
.nw-hero { position: relative; overflow: hidden; padding: 96px 0 0; background: linear-gradient(180deg, #fbfbfd 0%, #fff 60%); }
.nw-hero .nw-display { max-width: 12ch; margin: 0 auto; }
.nw-hero .nw-lead { margin-top: 20px; }
.nw-hero-search { position: relative; max-width: 560px; margin: 36px auto 0; }
.nw-hero-search .nw-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--nw-ink-3); pointer-events: none; }
.nw-hero-search input {
  width: 100%; height: 60px; padding: 0 140px 0 56px;
  border: 1px solid var(--nw-line); border-radius: 980px;
  background: #fff; color: var(--nw-ink);
  font: 400 18px/1 var(--nw-font); letter-spacing: -.016em;
  box-shadow: var(--nw-shadow);
  transition: border-color .2s, box-shadow .2s;
}
.nw-hero-search input::placeholder { color: #8e8e93; }
.nw-hero-search input:focus { outline: none; border-color: var(--nw-accent); box-shadow: var(--nw-shadow), 0 0 0 4px var(--nw-accent-soft); }
.nw-hero-search .nw-btn { position: absolute; right: 7px; top: 7px; min-height: 46px; }
.nw-hero-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.nw-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--nw-line); border-radius: 980px; background: #fff; color: var(--nw-ink-2) !important; font-size: 14px; letter-spacing: -.01em; text-decoration: none !important; transition: border-color .2s, color .2s, background .2s; cursor: pointer; }
.nw-chip:hover { border-color: var(--nw-ink-3); color: var(--nw-ink) !important; }
.nw-chip[aria-pressed="true"] { background: var(--nw-ink); border-color: var(--nw-ink); color: #fff !important; }

/* Hero stage: a composed stack of real TechWise content, drifting apart on scroll */
.nw-stage { position: relative; height: 440px; max-width: 980px; margin: 72px auto 0; perspective: 1400px; }
.nw-float {
  position: absolute; background: #fff; border-radius: var(--nw-r);
  box-shadow: var(--nw-shadow-lg); border: 1px solid rgb(0 0 0 / .05);
  padding: 22px; text-align: left; font-size: 15px;
  transform: translate3d(0, calc(var(--nw-drift, 0) * var(--d, 0) * 1px), 0);
  will-change: transform;
}
.nw-float h3 { font-size: 19px; letter-spacing: -.016em; margin: 10px 0 6px; }
.nw-float p { color: var(--nw-ink-2); font-size: 14px; }
.nw-float .nw-pill { margin-bottom: 2px; }
.nw-float-main { left: 50%; top: 24px; width: 420px; margin-left: -210px; z-index: 3; padding: 0; overflow: hidden; --d: -0.10; }
.nw-float-main .nw-shot { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, var(--nw-accent) 0%, color-mix(in oklab, var(--nw-accent) 60%, #000) 100%); color: #fff; }
.nw-float-main .nw-shot .nw-kbd-row { display: flex; gap: 10px; }
.nw-float-main .nw-float-body { padding: 20px 22px 22px; }
.nw-float-ticket { left: 2%; top: 120px; width: 280px; z-index: 2; --d: 0.12; }
.nw-float-course { right: 2%; top: 80px; width: 290px; z-index: 2; --d: 0.20; }
.nw-kbd { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 16px; border-radius: 14px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .18); font: 600 26px/1 var(--nw-font-display); letter-spacing: -.02em; }
.nw-kbd-plus { align-self: center; font-size: 24px; opacity: .7; }

/* Pills */
.nw-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 980px; background: var(--nw-bg-2); color: var(--nw-ink-2); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.nw-pill.accent { background: var(--nw-accent-soft); color: var(--nw-accent-hover); }
.nw-pill.ok { background: var(--nw-ok-bg); color: var(--nw-ok); }
.nw-pill.warn { background: var(--nw-warn-bg); color: var(--nw-warn); }
.nw-pill.bad { background: var(--nw-bad-bg); color: var(--nw-bad); }
.nw-pill .nw-icon { width: 14px; height: 14px; }

/* Ticket steps inside floats and the support page */
.nw-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.nw-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nw-ink-2); }
.nw-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--nw-line); flex: none; }
.nw-steps li.done { color: var(--nw-ink); }
.nw-steps li.done::before { background: var(--nw-ok); border-color: var(--nw-ok); }
.nw-steps li.now { color: var(--nw-ink); font-weight: 600; }
.nw-steps li.now::before { border-color: var(--nw-accent); box-shadow: 0 0 0 4px var(--nw-accent-soft); }

.nw-meter { height: 6px; border-radius: 6px; background: var(--nw-bg-3); overflow: hidden; margin-top: 14px; }
.nw-meter i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--nw-accent); }

/* ---------- 8. Tiles ---------- */
.nw-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.nw-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 300px; padding: 36px;
  border-radius: var(--nw-r-lg); background: var(--nw-bg);
  color: var(--nw-ink) !important; text-decoration: none !important;
  transition: transform .5s var(--nw-ease), box-shadow .5s var(--nw-ease);
}
.nw-band .nw-tile { background: #fff; }
.nw-tile:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow); }
.nw-tile .nw-tile-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 16px; background: var(--nw-bg-2); color: var(--nw-ink); }
.nw-tile h3 { margin-top: 40px; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.nw-tile p { margin-top: 10px; color: var(--nw-ink-2); max-width: 34ch; }
.nw-tile .nw-more { margin-top: 18px; color: var(--nw-accent); }
.nw-tile.span-3 { grid-column: span 3; }
.nw-tile.span-2 { grid-column: span 2; }
.nw-tile.span-4 { grid-column: span 4; }
.nw-tile.feature { background: var(--nw-accent) !important; color: #fff !important; min-height: 380px; }
.nw-tile.feature p, .nw-tile.feature .nw-more { color: rgb(255 255 255 / .86); }
.nw-tile.feature .nw-tile-icon { background: rgb(255 255 255 / .16); color: #fff; }
.nw-tile.feature h3 { font-size: clamp(32px, 3.4vw, 44px); }

/* ---------- 9. Cards (tips, courses) ---------- */
.nw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nw-card { display: flex; flex-direction: column; border-radius: var(--nw-r); background: var(--nw-bg); overflow: hidden; color: var(--nw-ink) !important; text-decoration: none !important; transition: transform .5s var(--nw-ease), box-shadow .5s var(--nw-ease); border: 1px solid var(--nw-line-soft); }
.nw-band .nw-card { border-color: transparent; }
.nw-card:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow); }
.nw-card-art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--art, var(--nw-bg-2)); color: var(--art-ink, var(--nw-ink)); overflow: hidden; }
.nw-card-art .nw-icon { width: 56px; height: 56px; stroke-width: 1.5; }
.nw-card-art .nw-art-label { position: absolute; left: 16px; bottom: 14px; font-size: 13px; font-weight: 600; opacity: .8; }
.nw-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.nw-card-body h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.018em; }
.nw-card-body p { color: var(--nw-ink-2); font-size: 15px; }
.nw-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--nw-ink-3); }

/* Art tints: muted, from the shared palette */
.art-blue   { --art: #e6effc; --art-ink: #0b4fa8; }
.art-teal   { --art: #e1f2ef; --art-ink: #0b5e57; }
.art-amber  { --art: #fbf0dc; --art-ink: #8a5300; }
.art-rose   { --art: #fbe7ec; --art-ink: #9c1c45; }
.art-violet { --art: #eee8f8; --art-ink: #5a3496; }
.art-ink    { --art: #1d1d1f; --art-ink: #f5f5f7; }

/* ---------- 10. Security feature (dark) ---------- */
.nw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.nw-mail {
  position: relative; border-radius: var(--nw-r); background: var(--nw-dark-2);
  border: 1px solid rgb(255 255 255 / .08); padding: 28px; font-size: 15px;
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / .6);
}
.nw-mail-head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / .1); color: var(--nw-dark-ink-2); font-size: 14px; }
.nw-mail-head b { color: var(--nw-dark-ink); font-weight: 600; }
.nw-mail-body { padding-top: 18px; color: var(--nw-dark-ink); line-height: 1.55; }
.nw-mail-body p + p { margin-top: 12px; }
.nw-flag { position: relative; border-radius: 4px; box-shadow: 0 0 0 2px #ff6b5b; background: rgb(255 107 91 / .12); padding: 0 3px; }
.nw-flag i { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff6b5b; color: #1d1d1f; font: 700 12px/1 var(--nw-font); font-style: normal; }
.nw-fakebtn { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 8px; background: #2f6fde; color: #fff; font-weight: 600; font-size: 14px; }
.nw-flags { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: flag; }
.nw-flags li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.nw-flags li::before { counter-increment: flag; content: counter(flag); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ff6b5b; color: #1d1d1f; font-weight: 700; font-size: 14px; }
.nw-flags b { display: block; font-size: 17px; }
.nw-flags span { color: var(--nw-dark-ink-2); font-size: 15px; }

/* ---------- 11. Forms (support request) ---------- */
.nw-form { display: grid; gap: 22px; }
.nw-field { display: grid; gap: 8px; }
.nw-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nw-label .nw-opt { font-weight: 400; color: var(--nw-ink-3); }
.nw-hint { font-size: 13px; color: var(--nw-ink-3); }
.nw-input, .nw-select, .nw-textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--nw-line); border-radius: var(--nw-r-sm);
  background: #fff; color: var(--nw-ink);
  font: 400 17px/1.3 var(--nw-font); letter-spacing: -.016em;
  transition: border-color .2s, box-shadow .2s;
}
.nw-textarea { min-height: 140px; resize: vertical; }
.nw-select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.nw-input::placeholder, .nw-textarea::placeholder { color: #8e8e93; }
.nw-input:focus, .nw-select:focus, .nw-textarea:focus { outline: none; border-color: var(--nw-accent); box-shadow: 0 0 0 4px var(--nw-accent-soft); }
.nw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.nw-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; }
.nw-topics legend { padding: 0; margin-bottom: 10px; }
.nw-topic { position: relative; }
.nw-topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nw-topic span {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 18px; border: 1px solid var(--nw-line); border-radius: 16px; background: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.nw-topic span small { font-weight: 400; color: var(--nw-ink-3); font-size: 13px; }
.nw-topic span .nw-icon { color: var(--nw-ink-2); }
.nw-topic input:hover + span { border-color: var(--nw-ink-3); }
.nw-topic input:checked + span { border-color: var(--nw-accent); box-shadow: 0 0 0 1px var(--nw-accent); background: var(--nw-accent-soft); }
.nw-topic input:checked + span .nw-icon { color: var(--nw-accent); }
.nw-topic input:focus-visible + span { outline: 2px solid var(--nw-accent); outline-offset: 3px; }

.nw-panel { background: #fff; border-radius: var(--nw-r-lg); padding: 44px; box-shadow: var(--nw-shadow); }
.nw-aside { position: sticky; top: calc(var(--nw-nav-h) + 32px); display: grid; gap: 20px; }
.nw-aside-card { border-radius: var(--nw-r); background: #fff; padding: 28px; }
.nw-aside-card h3 { font-size: 19px; letter-spacing: -.016em; margin-bottom: 4px; }
.nw-numbered { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.nw-numbered li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: 15px; color: var(--nw-ink-2); }
.nw-numbered li b { display: block; color: var(--nw-ink); font-size: 16px; }
.nw-numbered li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nw-bg-2); color: var(--nw-ink); font-weight: 600; font-size: 14px; }
.nw-support { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.nw-lookup { display: flex; gap: 12px; max-width: 520px; margin: 28px auto 0; }
.nw-lookup .nw-input { border-radius: 980px; padding-left: 22px; }

/* ---------- 12. Article (reading) ---------- */
.nw-article-head { padding: 72px 0 40px; }
.nw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--nw-ink-3); }
.nw-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--nw-line); }
.nw-crumbs a { color: var(--nw-ink-2); }
.nw-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; font-size: 14px; color: var(--nw-ink-3); }
.nw-prose { font-size: 19px; line-height: 1.58; letter-spacing: -.014em; }
.nw-prose > * + * { margin-top: 1.1em; }
.nw-prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.022em; margin-top: 2em; }
.nw-prose h3 { font-size: 23px; letter-spacing: -.018em; margin-top: 1.6em; }
.nw-prose ul, .nw-prose ol { padding-left: 1.2em; }
.nw-prose li + li { margin-top: .45em; }
.nw-prose strong { font-weight: 600; }
.nw-prose kbd { display: inline-block; min-width: 1.8em; padding: 1px 7px; border: 1px solid var(--nw-line); border-bottom-width: 2px; border-radius: 6px; background: var(--nw-bg-2); font: 600 .8em/1.5 var(--nw-font); text-align: center; letter-spacing: 0; }
.nw-callout { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 22px 24px; border-radius: var(--nw-r); background: var(--nw-bg-2); font-size: 17px; }
.nw-callout .nw-icon { color: var(--nw-accent); margin-top: 2px; }
.nw-callout.warn { background: var(--nw-warn-bg); }
.nw-callout.warn .nw-icon { color: var(--nw-warn); }
.nw-callout b { display: block; margin-bottom: 2px; }
.nw-figure { margin: 2em calc(var(--nw-gutter) * -1); }
.nw-figure-art { border-radius: var(--nw-r-lg); padding: 40px; background: var(--nw-bg-2); }
.nw-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--nw-ink-3); text-align: center; }
.nw-helpful { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 24px 28px; border-radius: var(--nw-r); border: 1px solid var(--nw-line-soft); }
.nw-helpful b { font-size: 17px; }

/* Mini mock used inside a figure: a sign-in screen with a 2-step prompt */
.nw-phone { width: 260px; margin: 0 auto; padding: 14px; border-radius: 40px; background: #1d1d1f; box-shadow: var(--nw-shadow-lg); }
.nw-phone-screen { border-radius: 28px; background: #fff; padding: 36px 22px 28px; text-align: center; }
.nw-phone-screen .nw-icon { width: 40px; height: 40px; color: var(--nw-accent); }
.nw-phone-screen b { display: block; margin-top: 14px; font-size: 17px; letter-spacing: -.016em; }
.nw-phone-screen p { margin-top: 6px; font-size: 13px; color: var(--nw-ink-2); }
.nw-phone-num { margin: 18px auto 0; font: 600 44px/1 var(--nw-font-display); letter-spacing: .02em; }
.nw-phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.nw-phone-btns span { padding: 10px 0; border-radius: 12px; background: var(--nw-bg-2); font-size: 14px; font-weight: 600; }
.nw-phone-btns span:last-child { background: var(--nw-accent); color: #fff; }

/* ---------- 13. Closing CTA ---------- */
.nw-cta { text-align: center; }
.nw-cta .nw-h1 { max-width: 14ch; margin: 0 auto; }

/* ---------- 14. Footer ---------- */
.nw-footer { background: var(--nw-bg-2); padding: 56px 0 40px; font-size: 13px; color: var(--nw-ink-3); }
.nw-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-bottom: 32px; border-bottom: 1px solid var(--nw-line); }
/* ARIZONA@WORK logo (Brand Style Guide, Jan 2025): official artwork only, never retyped or recolored;
   min 1.25in (120px) wide; clear space on every side = height of "ARIZONA" (~7% of width); keep the AJC line. */
.nw-logo { display: block; box-sizing: content-box; width: 180px; height: auto; padding: 13px; margin: -13px; flex: none; align-self: flex-start; object-fit: contain; }
.nw-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px 56px; }
.nw-footer-cols h2 { font: 600 13px/1.3 var(--nw-font); color: var(--nw-ink); margin-bottom: 10px; letter-spacing: -.005em; }
.nw-footer-cols a { display: block; padding: 3px 0; color: var(--nw-ink-2); }
.nw-footer-legal { display: grid; gap: 8px; padding-top: 24px; max-width: 120ch; line-height: 1.5; }
.nw-footer-legal p:first-child { color: var(--nw-ink-2); }

/* ---------- 15. Toasts ---------- */
.nw-toasts { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.nw-toast { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 980px; background: rgb(29 29 31 / .92); color: #fff; font-size: 15px; box-shadow: var(--nw-shadow-lg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: nw-rise .45s var(--nw-ease); }
.nw-toast .nw-icon { color: #7fd69b; width: 18px; height: 18px; }
.nw-toast.out { animation: nw-fade .25s ease-in forwards; }

/* ---------- 16. Motion ---------- */
/* One grammar: content rises 24px into place as it enters the viewport. Visible by default;
   JS adds .nw-js only when motion is allowed, so nothing is ever hidden without it. */
.nw-js .nw-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--nw-ease), transform .9s var(--nw-ease); transition-delay: var(--delay, 0s); }
.nw-js .nw-reveal.is-in { opacity: 1; transform: none; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
@keyframes nw-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes nw-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes nw-fade { to { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .nw *, .nw *::before, .nw *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .nw-float { transform: none !important; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1068px) {
  :root { --nw-section: 88px; }
  .nw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-tile.span-2, .nw-tile.span-3, .nw-tile.span-4 { grid-column: span 1; }
  .nw-tile.feature { grid-column: 1 / -1; }
  .nw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .nw-support { grid-template-columns: minmax(0, 1fr); }
  .nw-aside { position: static; grid-template-columns: 1fr 1fr; }
  .nw-float-ticket { left: -2%; }
  .nw-float-course { right: -2%; }
}

@media (max-width: 834px) {
  .nw-nav-links {
    position: fixed; inset: var(--nw-nav-h) 0 auto 0; z-index: 99;
    display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--nw-gutter) 24px;
    height: calc(100vh - var(--nw-nav-h)); height: calc(100dvh - var(--nw-nav-h)); overflow-y: auto;
    background: #fbfbfd; /* solid: a fixed child of the frosted bar cannot blur on its own */
  }
  .nw-nav-links.is-open { display: flex; animation: nw-drop .35s var(--nw-ease); }
  .nw-nav-links a { padding: 14px 0; border-radius: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--nw-ink); border-bottom: 1px solid var(--nw-line-soft); }
  .nw-nav-links a:hover { background: none; }
  .nw-nav-menu { display: inline-grid; }
  .nw-nav-actions { margin-left: auto; }
  .nw-stage { height: 380px; }
  .nw-float-ticket, .nw-float-course { display: none; }
  .nw-float-main { width: min(420px, 100%); left: 0; right: 0; margin: 0 auto; }
}

@media (max-width: 734px) {
  :root { --nw-section: 72px; --nw-gutter: 20px; }
  body.nw { font-size: 17px; }
  .nw-nav-actions .nw-btn-sm { display: none; }
  .nw-hero { padding-top: 64px; }
  .nw-hero-search input { height: 56px; padding-right: 20px; font-size: 17px; }
  .nw-hero-search .nw-btn { display: none; }
  .nw-stage { height: 340px; margin-top: 48px; }
  .nw-tiles, .nw-cards { grid-template-columns: minmax(0, 1fr); }
  .nw-tile { min-height: 240px; padding: 28px; }
  .nw-tile h3 { font-size: 24px; margin-top: 28px; }
  .nw-sechead { margin-bottom: 32px; }
  .nw-panel { padding: 24px; border-radius: var(--nw-r); }
  .nw-topics { grid-template-columns: 1fr 1fr; }
  .nw-row2 { grid-template-columns: 1fr; }
  .nw-aside { grid-template-columns: 1fr; }
  .nw-lookup { flex-direction: column; }
  .nw-prose { font-size: 18px; }
  .nw-prose h2 { font-size: 27px; }
  .nw-figure { margin-left: 0; margin-right: 0; }
  .nw-figure-art { padding: 24px; }
  .nw-mail { padding: 20px; }
  .nw-footer-cols { grid-template-columns: 1fr 1fr; }
}

/* small inline icons */
.nw-card-meta .nw-icon, .nw-pill .nw-icon, .nw-chip .nw-icon { width: 15px; height: 15px; }

/* heading → lead rhythm, and centered closing CTAs */
.nw h1 + .nw-lead, .nw h2 + .nw-lead { margin-top: 18px; }
.nw-cta .nw-lead { margin-left: auto; margin-right: auto; }
.nw-cta .nw-actions { justify-content: center; }

