/*
Theme Name:   NiroTronix
Theme URI:    https://nirotronix.com
Description:  Child theme of PopularFX for nirotronix.com. All custom CSS lives here so theme updates never overwrite it.
Author:       Abdallah Shehawey
Template:     popularfx
Version:      1.1.0
Text Domain:  nirotronix
*/

:root {
  --niro-accent: #00a8e8;
  --niro-accent-deep: #0072b7;
  --niro-ink: #0b1622;
  --niro-ink-soft: #16283c;
  --niro-text: #33475c;
  --niro-muted: #6b7f93;
  --niro-line: #e3e9f0;
  --niro-soft: #f4f7fb;
  --niro-radius: 14px;
  --niro-gutter: clamp(1.1rem, 3.2vw, 4rem);
  --niro-shadow: 0 1px 2px rgba(11, 22, 34, .05), 0 14px 34px -16px rgba(11, 22, 34, .28);
}

body {
  background-color: #fff;
  color: var(--niro-text);
}

/* Shared -------------------------------------------------------------- */

/* Full-bleed: the page uses the whole viewport and only keeps a gutter. Blocks
   that have to stay readable (hero copy, section intros) cap themselves in ch
   instead, so long lines never depend on the window being narrow. */
.niro-wrap {
  width: 100%;
  padding-inline: var(--niro-gutter);
}

.niro-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.niro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.niro-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.niro-btn-sm {
  padding: .55rem 1rem;
  font-size: .875rem;
}

.niro-btn-primary {
  background: linear-gradient(135deg, var(--niro-accent) 0%, var(--niro-accent-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 114, 183, .9);
}

.niro-btn-primary:hover,
.niro-btn-primary:focus {
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(0, 114, 183, 1);
}

.niro-btn-ghost {
  border-color: var(--niro-line);
  background: #fff;
  color: var(--niro-ink);
}

.niro-btn-ghost:hover,
.niro-btn-ghost:focus {
  border-color: var(--niro-accent);
  color: var(--niro-accent-deep);
}

.niro-btn-light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.niro-btn-light:hover,
.niro-btn-light:focus {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

/* Top bar ------------------------------------------------------------- */

.niro-topbar {
  background: var(--niro-ink);
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}

.niro-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}

.niro-topbar-text {
  margin: 0;
  padding: .4rem 0;
}

.niro-topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
}

.niro-topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  text-decoration: none;
}

.niro-topbar-contact a:hover {
  color: var(--niro-accent);
}

.niro-brand-icon {
  width: 1em;
  height: 1em;
}

.niro-topbar-social,
.niro-social {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niro-topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .72);
}

.niro-topbar-social a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.niro-topbar-social .niro-brand-icon {
  width: 14px;
  height: 14px;
}

.niro-social {
  margin-top: 1.4rem;
}

.niro-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: rgba(255, 255, 255, .8);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.niro-social a:hover {
  border-color: var(--niro-accent);
  background: rgba(0, 168, 232, .14);
  color: #fff;
}

.niro-social .niro-brand-icon {
  width: 17px;
  height: 17px;
}

/* Header -------------------------------------------------------------- */

.niro-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--niro-line);
}

body.admin-bar .niro-header {
  top: 32px;
}

.niro-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.niro-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}

/* WooCommerce ships `.woocommerce-page img { height: auto }`, which outranks a
   single-class rule and blew the header mark up to full size on shop pages. */
.niro-brand-mark,
.niro-header .niro-brand-mark,
.niro-footer .niro-brand-mark {
  width: auto;
  height: 38px;
}

.niro-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.niro-brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #55636f;
}

.niro-brand-name span {
  color: var(--niro-accent-deep);
}

.niro-brand-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--niro-muted);
}

.niro-nav .niro-menu,
.niro-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niro-nav li {
  position: relative;
}

.niro-nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 8px;
  color: var(--niro-ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.niro-nav a:hover,
.niro-nav .current-menu-item > a {
  background: var(--niro-soft);
  color: var(--niro-accent-deep);
}

.niro-nav .sub-menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  min-width: 200px;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--niro-line);
  border-radius: 12px;
  box-shadow: var(--niro-shadow);
}

.niro-nav li:hover > .sub-menu,
.niro-nav li:focus-within > .sub-menu {
  display: flex;
}

.niro-header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.niro-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--niro-line);
  border-radius: 50%;
  color: var(--niro-ink);
}

.niro-cart:hover {
  border-color: var(--niro-accent);
  color: var(--niro-accent-deep);
}

.niro-cart .niro-icon {
  width: 20px;
  height: 20px;
}

.niro-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--niro-accent-deep);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* The parent theme floats and offsets .menu-toggle by 25px under 768px, which
   pushes it out of the flex row — reset the placement, keep the class so the
   parent's navigation.js keeps driving the drawer. */
.niro-header .menu-toggle {
  display: none;
  position: static;
  top: auto;
  right: auto;
  float: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--niro-line);
  border-radius: 12px;
  background: #fff;
  color: var(--niro-ink);
  cursor: pointer;
}

.niro-header .menu-toggle .niro-icon {
  width: 22px;
  height: 22px;
}

/* Hero ---------------------------------------------------------------- */

.niro-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 15%, rgba(0, 168, 232, .28), transparent 60%),
    linear-gradient(160deg, #0b1622 0%, #12263c 55%, #0d1a29 100%);
  color: #fff;
}

.niro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 40% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 40% 40%, #000 0%, transparent 100%);
  pointer-events: none;
}

.niro-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(3rem, 5vw, 5.5rem);
}

.niro-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(0, 168, 232, .45);
  border-radius: 999px;
  background: rgba(0, 168, 232, .12);
  color: #7fd6ff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.niro-hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}

/* Keep the highlighted phrase whole so the headline breaks before it rather
   than orphaning its last word. Not below 640px, where two long words can be
   wider than the viewport. */
@media (min-width: 641px) {
  .niro-hl {
    white-space: nowrap;
  }
}

.niro-hl {
  background: linear-gradient(120deg, #43c6ff 0%, #00a8e8 55%, #b9c7d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.niro-hero-text {
  max-width: 44ch;
  margin: 0 0 2rem;
  font-size: 1.03rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .76);
}

.niro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.6rem;
}

.niro-hero-actions .niro-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.niro-hero-actions .niro-btn-ghost:hover {
  border-color: var(--niro-accent);
  color: #7fd6ff;
}

.niro-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.niro-hero-stats strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.niro-hero-stats span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
}

.niro-hero-art {
  justify-self: center;
}

.niro-hero-art img {
  display: block;
  width: min(100%, clamp(320px, 30vw, 600px));
  height: auto;
  filter: drop-shadow(0 40px 55px rgba(0, 0, 0, .55));
  transform: rotate(-4deg);
}

/* Sections ------------------------------------------------------------ */

.niro-section {
  padding-block: clamp(3rem, 5vw, 6rem);
}

.niro-section-soft {
  background: var(--niro-soft);
  border-block: 1px solid var(--niro-line);
}

.niro-section-head {
  max-width: 62ch;
  margin: 0 0 2.6rem;
}

.niro-section-title {
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--niro-ink);
}

.niro-section-sub {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--niro-muted);
}

/* Product grid -------------------------------------------------------- */

.niro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.niro-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--niro-line);
  border-radius: var(--niro-radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.niro-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 168, 232, .5);
  box-shadow: var(--niro-shadow);
}

/* A fixed height, not an aspect-ratio: the board photos are a mix of portrait
   and landscape, and a percentage height inside an aspect-ratio box resolves to
   auto, which let the taller images stretch their card's media area. */
.niro-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--niro-line);
}

.niro-card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.niro-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.35rem;
}

.niro-card-sku {
  margin: 0 0 .35rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--niro-accent-deep);
}

.niro-card-title {
  margin: 0 0 .9rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.niro-card-title a {
  color: var(--niro-ink);
  text-decoration: none;
}

.niro-card-title a:hover {
  color: var(--niro-accent-deep);
}

.niro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.niro-chips li {
  padding: .28rem .6rem;
  border: 1px solid var(--niro-line);
  border-radius: 999px;
  background: var(--niro-soft);
  font-size: .74rem;
  font-weight: 600;
  color: var(--niro-muted);
}

.niro-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.niro-price,
.niro-price .amount {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--niro-ink);
}

.niro-price del {
  font-size: .85rem;
  font-weight: 500;
  color: var(--niro-muted);
}

@media (min-width: 1100px) {
  .niro-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Features ------------------------------------------------------------ */

.niro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.niro-feature {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--niro-line);
  border-radius: var(--niro-radius);
}

.niro-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 168, 232, .16), rgba(0, 114, 183, .1));
  color: var(--niro-accent-deep);
}

.niro-feature-icon .niro-icon {
  width: 22px;
  height: 22px;
}

.niro-feature h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--niro-ink);
}

.niro-feature p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--niro-muted);
}

@media (min-width: 1100px) {
  .niro-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Comparison table ---------------------------------------------------- */

.niro-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--niro-line);
  border-radius: var(--niro-radius);
}

.niro-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .92rem;
}

.niro-compare th,
.niro-compare td {
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--niro-line);
  text-align: left;
  vertical-align: middle;
}

.niro-compare thead th {
  background: var(--niro-soft);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--niro-ink);
}

.niro-compare thead th a {
  color: inherit;
  text-decoration: none;
}

.niro-compare thead th a:hover {
  color: var(--niro-accent-deep);
}

.niro-compare tbody th {
  width: 200px;
  font-weight: 700;
  color: var(--niro-ink);
}

.niro-compare tbody tr:last-child th,
.niro-compare tbody tr:last-child td {
  border-bottom: 0;
}

.niro-compare-price td {
  font-weight: 800;
  color: var(--niro-ink);
}

/* Applications -------------------------------------------------------- */

.niro-uses {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niro-uses li {
  padding: .7rem 1.15rem;
  background: #fff;
  border: 1px solid var(--niro-line);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--niro-ink);
}

/* Editor content on the Home page ------------------------------------- */

.niro-page-content .entry-content {
  font-size: 1rem;
  line-height: 1.8;
}

/* Closing CTA --------------------------------------------------------- */

.niro-cta {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--niro-accent-deep) 0%, #0b1622 100%);
  color: #fff;
}

.niro-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.niro-cta h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}

.niro-cta p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.niro-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.niro-cta-actions .niro-btn-primary {
  background: #fff;
  color: var(--niro-accent-deep);
  box-shadow: none;
}

.niro-cta-actions .niro-btn-primary:hover {
  color: var(--niro-ink);
}

/* Footer -------------------------------------------------------------- */

.niro-footer {
  margin-top: 0;
  background: var(--niro-ink);
  color: rgba(255, 255, 255, .68);
}

.niro-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem 3rem;
}

.niro-brand-invert .niro-brand-name {
  color: #fff;
}

.niro-brand-invert .niro-brand-name span {
  color: var(--niro-accent);
}

.niro-brand-invert .niro-brand-tag {
  color: rgba(255, 255, 255, .5);
}

.niro-footer-blurb {
  max-width: 40ch;
  margin: 1.1rem 0 0;
  font-size: .92rem;
  line-height: 1.75;
}

.niro-footer-title {
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.niro-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.niro-footer-col li + li {
  margin-top: .6rem;
}

.niro-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: inherit;
  font-size: .93rem;
  text-decoration: none;
}

.niro-footer-col a:hover {
  color: var(--niro-accent);
}

.niro-footer-address {
  font-size: .93rem;
  line-height: 1.6;
}

.niro-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.niro-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.25rem;
  font-size: .85rem;
}

.niro-footer-bottom p {
  margin: 0;
}

.niro-footer-legal a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
}

.niro-footer-legal a:hover {
  color: var(--niro-accent);
}

/* Shop archive ---------------------------------------------------------
   The board photos are a mix of portrait and landscape, so WooCommerce's own
   `height: auto` staggers the grid. Same contained, fixed-height box as the
   home page cards. The `html` prefix only exists to outrank WooCommerce's own
   rule, which is otherwise identical in specificity. It has to be `html` and
   not `body`: WooCommerce puts the `.woocommerce` class on <body> itself, so a
   `body .woocommerce` descendant selector matches nothing. */

html .woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}

html .woocommerce ul.products li.product a img {
  height: 200px;
  margin-bottom: 1rem;
  object-fit: contain;
}

html .woocommerce ul.products li.product .woocommerce-loop-product__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

html .woocommerce ul.products li.product .price {
  color: var(--niro-ink);
  font-weight: 800;
}

/* The parent theme runs .site-main edge to edge, which no longer lines up with
   the header now that the gutter is a viewport-relative clamp. */
.site-main {
  padding-inline: var(--niro-gutter);
}

/* Product spec table rendered by [niro_specs] and the datasheet tab ---- */

.niro-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.niro-specs th,
.niro-specs td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--niro-line);
  text-align: start;
}

.niro-specs th {
  width: 40%;
  font-weight: 600;
  background: rgba(0, 168, 232, 0.06);
}

.niro-datasheet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  background: var(--niro-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.niro-datasheet-link:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .niro-hero-inner {
    grid-template-columns: 1fr;
    padding-block: 3.5rem 3rem;
  }

  .niro-hero-art {
    order: -1;
  }

  .niro-hero-art img {
    width: min(72%, 300px);
  }

  .niro-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .niro-header-inner {
    min-height: 66px;
    gap: .75rem;
  }

  .niro-header .menu-toggle {
    display: inline-flex;
  }

  .niro-header-cta {
    display: none;
  }

  .niro-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .6rem 1.25rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid var(--niro-line);
    box-shadow: var(--niro-shadow);
  }

  .niro-nav.hidden-mobile {
    display: none;
  }

  .niro-nav .niro-menu,
  .niro-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .niro-nav a {
    padding: .8rem .5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--niro-line);
  }

  .niro-nav .sub-menu {
    position: static;
    display: flex;
    padding: 0 0 0 1rem;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  /* Two rows of site chrome before any content is too much on a small phone;
     the same accounts are in the footer. */
  .niro-topbar-social {
    display: none;
  }
}

@media (max-width: 640px) {
  .niro-brand-tag {
    display: none;
  }

  .niro-hero-stats {
    gap: 1.5rem;
  }

  .niro-hero-stats li {
    flex: 1 1 40%;
  }

  .niro-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .niro-topbar-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 782px) {
  body.admin-bar .niro-header {
    top: 46px;
  }
}
