/* NIHub and NI Suite: real NIOS screenshots with an app selector. */
.ns { background: #f2f0ea; --ns-accent: #8855cb; }
.ns-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; margin-bottom: 48px; }
.ns-heading h2 span { color: #8b8e82; }
.ns-intro { padding-bottom: 4px; }
.ns-intro > p { max-width: 47ch; color: #70756a; font-size: 16px; line-height: 1.8; }
.ns-support { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 12px; color: #59694f; }
.ns-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ns-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 22px 6px 19px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #343b32; font: inherit; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.ns-app img { width: 42px; height: 42px; margin-bottom: 10px; transition: transform .25s; }
.ns-app b { font-size: 14px; font-weight: 600; letter-spacing: -.025em; }
.ns-app small { font-size: 10px; line-height: 1.5; color: #73796d; }
@media (hover: hover) {
  .ns-app:hover { background: #ffffff80; transform: translateY(-3px); }
  .ns-app:hover img { transform: translateY(-2px); }
}
.ns-app[aria-pressed="true"] { background: #fff; border-color: #dedbd5; box-shadow: 0 5px 14px -8px #39332b35; }
.ns-app[aria-pressed="true"]::after { content: ''; position: absolute; bottom: 0; left: 35%; right: 35%; height: 2px; background: var(--ns-accent); border-radius: 2px; }
.ns-app:focus-visible { outline-color: #8855cb; }
.ns-showcase { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: clamp(25px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 40px); margin-top: 22px; background: #e9e6de; border: 1px solid #dedbd25c; border-radius: 20px; }
.ns-preview { min-width: 0; }
.ns-preview-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 10px; color: #7a7c71; }
.ns-preview-label > span:first-child { display: inline-flex; align-items: center; gap: 9px; color: #4e5a47; }
.ns-screen { overflow: hidden; border-radius: 10px; border: 4px solid #faf9f6; background: #d9c4b0; box-shadow: 0 20px 35px -22px #51453688, 0 0 0 1px #59534416; }
.ns-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ns-preview figcaption { margin-top: 17px; color: #7c8075; font-size: 10px; }
.ns-detail { min-width: 0; padding-block: 20px; }
.ns-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.ns-head img { width: 56px; height: 56px; }
.ns-kicker { color: #6e7366; font: 10px/1.5 var(--mono); letter-spacing: .04em; }
.ns-detail h3 { font-size: clamp(23px, 2.2vw, 31px); line-height: 1.18; text-wrap: initial; }
.ns-text { margin-top: 18px; color: #707568; font-size: 13px; line-height: 1.8; }
.ns-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.ns-tags li { padding: 5px 9px; border: 1px solid #555e4326; border-radius: 5px; color: #67705c; font-size: 10px; }
.ns-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #292b2b1c; color: #73796d; font-size: 11px; }
.ns-foot > span:first-child { display: flex; align-items: center; gap: 12px; }
.ns-foot b { font: 22px/1 var(--mono); letter-spacing: -.07em; color: #59644f; }
.ns.is-switching .ns-detail { animation: ns-enter .28s ease-out; }
@keyframes ns-enter { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) { .ns-showcase { min-height: 425px; } }
@media (max-width: 1000px) {
  .ns-app small { font-size: 9px; }
  .ns-showcase { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ns-heading { gap: 30px; }
  .ns-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ns-app { padding: 16px 8px 14px; }
  .ns-app img { width: 36px; height: 36px; margin-bottom: 5px; }
  .ns-app small { font-size: 10px; }
  .ns-showcase { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ns-head { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 16px; }
  .ns-head img { width: 38px; height: 38px; }
  .ns-detail { padding: 16px 0 6px; }
  .ns-detail h3 { font-size: 28px; }
  .ns-detail h3 br { display: none; }
  .ns-text { max-width: 65ch; font-size: 14px; margin-top: 12px; }
  .ns-tags { margin-top: 18px; }
  .ns-foot { flex-wrap: wrap; justify-content: flex-start; gap: 14px 28px; }
}
@media (max-width: 600px) {
  .ns-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 25px; }
  .ns-intro > p { font-size: 14px; }
  .ns-support { margin-top: 16px; font-size: 11px; }
  .ns-app { padding-inline: 2px; }
  .ns-app b { font-size: 12px; }
  .ns-app small { font-size: 9px; }
  .ns-grid { gap: 5px; }
  .ns-showcase { padding: 18px; border-radius: 14px; }
  .ns-screen { border-width: 3px; border-radius: 7px; }
  .ns-preview-label > span:last-child { display: none; }
  .ns-preview figcaption { margin-top: 12px; font-size: 9px; }
  .ns-detail h3 { font-size: 25px; }
  .ns-text { font-size: 13px; }
  .ns-foot { font-size: 10px; gap: 12px; }
  .ns-foot > span:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-app, .ns-app img { transition: none; }
  .ns.is-switching .ns-detail { animation: none; }
}
