/*
Theme Name: 91Lottery
Description: The 91Lottery theme.
Version: 1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: 91lottery-theme
*/
/* ===== base: page, type, header, hero, content blocks, sidebar card, footer (every network) ===== */
:root { --nx-w: 1180px; --nx-head-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nx-display-font: var(--nx-head-font); --nx-bar-h: 70px; --sf-r: 14px; --sf-r-sm: 10px;
  --nx-card-bg: var(--sf-surface); --nx-card-border: 1px solid var(--sf-border); --nx-card-shadow: var(--sf-shadow); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sf-bg); color: var(--sf-text); font: 400 17px/1.72 system-ui, -apple-system, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--sf-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sf-primary); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--sf-heading); font-family: var(--nx-head-font); line-height: 1.22; font-weight: 800; letter-spacing: -.005em; }
h2[id], h3[id] { scroll-margin-top: 96px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.nx-skip:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; padding: 10px 16px; background: var(--sf-bg); color: var(--sf-text); }
.nx-wrap { width: min(var(--nx-w), calc(100% - 32px)); margin-inline: auto; }
.nx-main { display: block; min-height: 50vh; }

/* ---- buttons ---- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border-radius: var(--sf-r-sm);
  font: 800 14.5px/1 var(--nx-head-font); letter-spacing: .03em; text-transform: uppercase; text-decoration: none !important; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.nx-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.nx-btn-main { background: var(--sf-grad); color: var(--sf-on-primary) !important; box-shadow: 0 8px 20px -10px rgba(var(--sf-primary-rgb), .9); }
.nx-btn-ghost { background: transparent; color: var(--sf-header-text) !important; border-color: rgba(var(--sf-primary-rgb), .75); }
.nx-actions { display: flex; align-items: center; gap: 10px; }

/* ---- header ---- */
.nx-header { position: sticky; top: 0; z-index: 60; background: var(--sf-header-bg); color: var(--sf-header-text); transition: box-shadow .2s ease; }
.nx-header.nx-scrolled { box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .55); }
.admin-bar .nx-header { top: 32px; }
.nx-bar-in { display: flex; align-items: center; gap: 22px; min-height: var(--nx-bar-h); }
.nx-logo { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.nx-logo-img { display: block; height: 48px; width: auto; max-width: min(230px, 46vw); object-fit: contain; }
.nx-logo-text { font: 900 22px/1 var(--nx-display-font); color: var(--sf-header-text); }
.nx-nav { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 0; }
.nx-menu { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nx-menu a { display: block; padding: 9px 12px; border-radius: var(--sf-r-sm); color: var(--sf-header-text); text-decoration: none;
  font: 700 15px/1.2 var(--nx-head-font); }
.nx-menu a:hover, .nx-menu .current-menu-item > a { background: rgba(var(--sf-primary-rgb), .14); }
.nx-actions--bar { margin-left: auto; }
.nx-actions--nav { display: none; }
.nx-burger { display: none; margin-left: auto; width: 46px; height: 42px; padding: 10px; border: 0; border-radius: var(--sf-r-sm);
  background: rgba(var(--sf-primary-rgb), .16); cursor: pointer; flex-direction: column; justify-content: space-between; }
.nx-burger span:not(.screen-reader-text) { display: block; height: 3px; border-radius: 2px; background: var(--sf-header-text); }
@media (max-width: 960px) {
  .nx-burger { display: flex; order: 3; margin-left: 0; }
  .nx-actions--bar { order: 2; }
  .nx-bar-in { gap: 12px; min-height: 64px; }
  .nx-logo-img { height: 40px; }
  .nx-actions--bar .nx-btn-ghost { display: none; }
  .nx-actions--bar { margin-left: auto; }
  .nx-actions--bar .nx-btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .nx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px; background: var(--sf-header-bg); border-top: 1px solid var(--sf-border); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); }
  .nx-nav-open .nx-nav { display: flex; }
  .nx-menu { flex-direction: column; }
  .nx-menu a { padding: 12px 10px; font-size: 16px; }
  .nx-actions--nav { display: flex; }
  .nx-actions--nav .nx-btn { flex: 1; }
}
@media (max-width: 360px) { .nx-actions--bar .nx-btn { padding: 0 10px; font-size: 12px; } }

/* ---- invite code chip (copy on click) ---- */
.nx-code { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border: 1.5px dashed rgba(var(--sf-primary-rgb), .8);
  border-radius: 999px; background: rgba(var(--sf-primary-rgb), .12); color: inherit; font: 600 14px/1.2 var(--nx-head-font); cursor: pointer; }
.nx-code b { font-weight: 900; letter-spacing: .06em; }
.nx-code-k { white-space: nowrap; }
.nx-code-copy { padding: 5px 11px; border-radius: 999px; background: var(--sf-grad); color: var(--sf-on-primary); font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em; }
.nx-code.nx-copied .nx-code-copy::after { content: "ed ✓"; }

/* ---- hero (homepage, inside the content) ---- */
.nx-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--nx-hero, var(--sf-hero-overlay)); }
.nx-hero-bg { position: absolute; inset: 0; z-index: -1; }
.nx-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: luminosity; }
.nx-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .45)); }
.nx-hero-in { display: grid; align-items: center; gap: 28px; padding: 54px 0 0; }
.nx-hero-text { padding-bottom: 54px; min-width: 0; }
.nx-hero-logo { display: block; width: 92px; height: 92px; object-fit: contain; margin: 0 0 18px; border-radius: 22px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.nx-hero .nx-hero-title { margin: 0 0 14px; color: #fff; font-family: var(--nx-display-font); font-weight: 900; font-size: clamp(36px, 6.2vw, 66px);
  line-height: 1.04; text-shadow: 0 3px 18px rgba(0, 0, 0, .45); overflow-wrap: break-word; }
.nx-hero-lead { margin: 0 0 24px; max-width: 620px; font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.nx-hero-lead a { color: #fff; }
.nx-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.nx-hero-btns .nx-btn { min-height: 54px; min-width: 200px; padding: 0 28px; font-size: 16px; border-radius: var(--sf-r); }
.nx-hero .nx-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
.nx-hero .nx-chips, .nx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nx-chips li { margin: 0; }
.nx-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; line-height: 1.2; color: #fff; }
.nx-chips li span { opacity: .82; }
.nx-chips li b { font-weight: 800; }
.nx-hero .nx-code { color: #fff; border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1); }
.nx-hero-visual { position: relative; display: flex; justify-content: center; align-self: end; min-width: 0; }
.nx-hero-visual img { display: block; width: auto; max-width: 100%; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .5)); }
@media (max-width: 860px) {
  .nx-hero-in { grid-template-columns: 1fr !important; padding-top: 36px; text-align: center; }
  .nx-hero-text { padding-bottom: 8px; }
  .nx-hero-logo { margin-inline: auto; width: 80px; height: 80px; }
  .nx-hero-lead { margin-inline: auto; }
  .nx-hero-btns, .nx-chips { justify-content: center; }
  .nx-hero-btns .nx-btn { flex: 1 1 200px; }
  .nx-hero-visual img { max-height: 380px; }
}

/* ---- homepage content below the hero ---- */
.nx-front-content > :not(.nx-hero):not(.alignfull) { width: min(var(--nx-w), calc(100% - 32px)); margin-inline: auto; }
.nx-front-content > .nx-hero + * { margin-top: 38px; }
.nx-front-content { padding-bottom: 40px; }

/* ---- pages and posts: content + platform card ---- */
.nx-layout { display: grid; gap: 40px; padding: 30px 0 56px; align-items: start; }
.nx-article { min-width: 0; }
.nx-aside { align-self: stretch; }
.nx-aside-in { position: sticky; top: calc(var(--nx-bar-h) + 20px); display: grid; gap: 18px; }
.admin-bar .nx-aside-in { top: calc(var(--nx-bar-h) + 52px); }
@media (max-width: 1020px) { .nx-layout { grid-template-columns: minmax(0, 1fr) !important; } .nx-aside { order: 2 !important; }
  .nx-aside-in { position: static; } }
.nx-article-title, .entry-content .sf-article-title { font-family: var(--nx-display-font); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12;
  margin: 6px 0 18px; }

.nx-card { padding: 22px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); box-shadow: var(--nx-card-shadow); }
.nx-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nx-card-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; flex: 0 0 auto; }
.nx-card-name { margin: 0; font: 900 21px/1.15 var(--nx-head-font); color: var(--sf-heading); }
.nx-card-line { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--sf-muted); }
.nx-facts { display: grid; gap: 0; margin: 0 0 16px; }
.nx-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--sf-border); font-size: 15px; }
.nx-facts dt { color: var(--sf-muted); } .nx-facts dd { margin: 0; font-weight: 800; color: var(--sf-heading); text-align: right; }
.nx-card .nx-code { width: 100%; justify-content: space-between; margin-bottom: 14px; color: var(--sf-heading); }
.nx-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-card-actions .nx-btn { padding: 0 10px; }
.nx-card .nx-btn-ghost { color: var(--sf-heading) !important; }
.nx-quick { padding: 18px 20px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); }
.nx-quick-title { margin: 0 0 8px; font: 800 16px/1.3 var(--nx-head-font); color: var(--sf-heading); }
.nx-quick ul { margin: 0; padding: 0; list-style: none; }
.nx-quick li + li { border-top: 1px solid var(--sf-border); }
.nx-quick a { display: block; padding: 9px 0; color: var(--sf-text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.nx-quick a:hover, .nx-quick a[aria-current] { color: var(--sf-link); }
.nx-quick a[aria-current] { font-weight: 800; }

/* ---- content blocks ---- */
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { margin: 1.9em 0 .65em; font-size: clamp(25px, 3.3vw, 33px); }
.entry-content h3 { margin: 1.4em 0 .5em; font-size: clamp(19px, 2.3vw, 22px); }
.entry-content p, .entry-content li { overflow-wrap: break-word; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--sf-primary); font-weight: 800; }
.entry-content strong { color: var(--sf-heading); }
.entry-content img { border-radius: var(--sf-r-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content .wp-block-image { margin-block: 6px 26px; }
.entry-content .wp-block-image.aligncenter, .entry-content .wp-block-image .aligncenter { text-align: center; }
.sf-section-img img, .sf-thumb img { width: 100%; box-shadow: var(--sf-shadow); }
.sf-screen img, .sf-own-img img { box-shadow: none; border-radius: 0; }
.sf-byline { font-size: 14px !important; color: var(--sf-muted); }
.sf-byline a { font-weight: 700; }
.rank-math-breadcrumb { font-size: 14px; color: var(--sf-muted); margin-bottom: 10px; }
.rank-math-breadcrumb a { color: var(--sf-muted); text-decoration: none; } .rank-math-breadcrumb a:hover { color: var(--sf-link); text-decoration: underline; }

/* buttons inside the content */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }
.wp-block-buttons.is-content-justification-center, .wp-block-buttons:not([class*="justification"]) { justify-content: center; }
.wp-block-button__link { display: inline-flex !important; align-items: center; justify-content: center; gap: .6em; min-height: 54px; min-width: 220px;
  padding: 14px 30px; border-radius: var(--sf-r); background: var(--sf-grad) !important; color: var(--sf-on-primary) !important;
  font: 800 16px/1.2 var(--nx-head-font) !important; letter-spacing: .03em; text-decoration: none !important; border: 0;
  box-shadow: 0 12px 26px -12px rgba(var(--sf-primary-rgb), .9); transition: transform .15s ease, filter .15s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wp-block-button__link strong { color: inherit; }

/* cards: every card of a section the same size */
.sf-cards { margin: 18px 0 32px; }
.sf-cards:not(:has(> .wp-block-group__inner-container)), .sf-cards > .wp-block-group__inner-container { display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.sf-cards.sf-cards-1:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: minmax(0, 1fr); }
.sf-cards.sf-cards-2:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-cards.sf-cards-4:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-cards > .wp-block-columns, .sf-cards > .wp-block-group__inner-container > .wp-block-columns { display: contents !important; }
.sf-cards .wp-block-column { margin: 0 !important; height: 100%; min-width: 0; }
@media (max-width: 900px) { .sf-cards.sf-cards-3:not(:has(> .wp-block-group__inner-container)), .sf-cards.sf-cards-4:not(:has(> .wp-block-group__inner-container)) {
  grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sf-cards:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: minmax(0, 1fr) !important; } }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; } }
.gms, .fts, .bn, .bns, .sf-pay, .tms { padding: 22px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r);
  box-shadow: var(--nx-card-shadow); }
.gms h3, .fts h3, .bn h3, .bns h3, .sf-pay h3, .tms h3 { margin: 0 0 10px; font-size: 19px; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.gms p:last-child, .fts p:last-child, .bn p:last-child, .bns p:last-child, .sf-pay p:last-child { margin-bottom: 0; }
.gms .wp-block-image, .bn .wp-block-image { margin: 0 0 12px; }
.gms .wp-block-image img, .bn .wp-block-image img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; max-height: 180px; }
.bn.bn-wide .wp-block-image img { aspect-ratio: auto; max-height: none; }
.fts .sf-icon { margin: 0 0 12px; } .fts .sf-icon img { width: 52px; height: 52px; border-radius: 12px; }
.payment-methods .wp-block-columns { justify-content: center; }
.sf-pay { text-align: center; } .sf-pay .wp-block-image img { max-height: 64px; width: auto; }

/* steps: each step a row with its own marker */
.steps { padding: 6px 0; }
.steps p { position: relative; margin: 0 0 14px; padding: 16px 18px 16px 58px; background: var(--nx-card-bg); border: var(--nx-card-border);
  border-radius: var(--sf-r-sm); counter-increment: nxstep; }
.steps { counter-reset: nxstep; }
.steps p::before { content: counter(nxstep); position: absolute; left: 14px; top: 15px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--sf-grad); color: var(--sf-on-primary); font: 900 15px/1 var(--nx-head-font); }
.steps .sf-step-label { color: var(--sf-heading); }
.steps figure { margin: 4px 0 18px; }

/* tables */
.table-wrapper { overflow-x: auto; margin: 0 0 28px; border-radius: var(--sf-r); border: var(--nx-card-border); -webkit-overflow-scrolling: touch; }
.table-wrapper .wp-block-table { margin: 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.wp-block-table th { padding: 13px 16px; background: var(--sf-grad); color: var(--sf-on-primary); text-align: left; font: 800 15px/1.3 var(--nx-head-font); }
.wp-block-table td { padding: 12px 16px; border-top: 1px solid var(--sf-border); vertical-align: top; }
.wp-block-table tr:nth-child(even) td { background: rgba(var(--sf-primary-rgb), .06); }
.wp-block-table td:first-child { font-weight: 700; color: var(--sf-heading); }
.wp-block-table th, .wp-block-table td { word-break: normal; overflow-wrap: normal; hyphens: manual; }
.wp-block-table tr > :first-child { width: 34%; min-width: 92px; }
@media (max-width: 480px) { .wp-block-table th, .wp-block-table td { padding: 10px 9px; font-size: .88rem; } }

/* pros & cons: green and red */
.pros, .cons { padding: 20px 22px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); }
.pros { border-top: 4px solid var(--sf-good) !important; } .cons { border-top: 4px solid var(--sf-bad) !important; }
.pros h3 { color: var(--sf-good); margin-top: 0; } .cons h3 { color: var(--sf-bad); margin-top: 0; }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { position: relative; padding-left: 28px; }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.pros li::before { content: "✓"; color: var(--sf-good); } .cons li::before { content: "✕"; color: var(--sf-bad); }

/* FAQ: questions open and close */
.wp-block-rank-math-faq-block, #rank-math-faq { margin: 0 0 30px; }
.rank-math-faq-item, .rank-math-list-item { margin: 0 0 12px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r-sm); overflow: hidden; }
.rank-math-question { position: relative; margin: 0 !important; padding: 16px 52px 16px 18px; font-size: 17.5px !important; cursor: pointer; }
.rank-math-question::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(var(--sf-primary-rgb), .16); color: var(--sf-heading); font: 800 18px/1 var(--nx-head-font); }
.nx-open > .rank-math-question::after { content: "−"; background: var(--sf-grad); color: var(--sf-on-primary); }
.rank-math-answer { padding: 0 18px 16px; }
.rank-math-answer p:last-child { margin-bottom: 0; }
.nx-faq:not(.nx-open) > .rank-math-answer { display: none; }

/* table of contents */
.sf-toc { margin: 8px 0 30px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); }
.sf-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; cursor: pointer; list-style: none;
  font: 800 17px/1.3 var(--nx-head-font); color: var(--sf-heading); }
.sf-toc summary::-webkit-details-marker { display: none; }
.sf-toc summary::after { content: ""; width: 10px; height: 10px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.sf-toc details[open] summary::after { transform: rotate(-135deg); }
.sf-toc-list { margin: 0; padding: 0 20px 18px 42px; }
.sf-toc-list ol { padding-left: 1.3em; margin: 4px 0; }
.sf-toc-list li { margin: 4px 0; } .sf-toc-list a { color: var(--sf-text); text-decoration: none; } .sf-toc-list a:hover { color: var(--sf-link); text-decoration: underline; }

/* boxes on legal pages, author box, related lists */
.sf-legal-lead { padding: 18px 22px; margin: 0 0 26px; background: var(--nx-card-bg); border-left: 4px solid var(--sf-primary); border-radius: var(--sf-r-sm); }
.sf-legal-onpage, .sf-legal-box { padding: 16px 22px; margin: 0 0 24px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r-sm); }
.sf-legal-lead p:last-child, .sf-legal-onpage ul, .sf-legal-box ul { margin-bottom: 0; }
.sf-author-box { margin: 34px 0 10px; padding: 20px 22px; background: var(--nx-card-bg); border-left: 5px solid var(--sf-primary); border-radius: var(--sf-r-sm); }
.sf-author-box p { margin: 0 0 8px; font-size: 15px; } .sf-author-box .sf-author-name { font-size: 17px; font-weight: 800; color: var(--sf-heading); }
.sf-code-box { padding: 18px 20px; margin: 0 0 26px; border: 2px dashed rgba(var(--sf-primary-rgb), .7); border-radius: var(--sf-r); background: rgba(var(--sf-primary-rgb), .07); }
.sf-related, .sf-more-guides { padding: 16px 20px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r-sm); }

/* contact form */
.wpcf7 form { display: grid; gap: 14px; max-width: 760px; margin: 10px 0 30px; padding: 22px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); }
.wpcf7 form p { margin: 0; } .wpcf7 label { display: block; font-weight: 700; color: var(--sf-heading); font-size: 15px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; font: inherit; color: var(--sf-text); background: var(--sf-bg); border: 1px solid var(--sf-border); border-radius: var(--sf-r-sm); }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--sf-primary); box-shadow: 0 0 0 3px rgba(var(--sf-primary-rgb), .25); }
input[type="submit"], button[type="submit"], .wpcf7-submit { justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--sf-r-sm);
  background: var(--sf-grad); color: var(--sf-on-primary); font: 800 15px/1 var(--nx-head-font); cursor: pointer; }

/* ---- blog / archive lists ---- */
.nx-list { padding: 30px 0 56px; }
.sf-blog-header, .nx-list-head { margin-bottom: 24px; padding: 26px 24px; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); }
.sf-blog-header .page-title, .nx-list-head .page-title { margin: 0; font-size: clamp(26px, 4vw, 40px); }
.nx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .nx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nx-posts { grid-template-columns: minmax(0, 1fr); } }
.nx-post { display: flex; flex-direction: column; background: var(--nx-card-bg); border: var(--nx-card-border); border-radius: var(--sf-r); overflow: hidden; box-shadow: var(--nx-card-shadow); }
.nx-post-img img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.nx-post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.nx-post-title { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.nx-post-title a { color: var(--sf-heading); text-decoration: none; } .nx-post-title a:hover { text-decoration: underline; }
.entry-summary p { margin: 0 0 12px; font-size: 15.5px; color: var(--sf-text); }
.nx-more { margin-top: auto; font-weight: 800; color: var(--sf-link); text-decoration: none; }
.read-more-container { display: none; }
.nx-pages { margin-top: 30px; } .nx-pages .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nx-pages .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--sf-r-sm);
  background: var(--nx-card-bg); border: var(--nx-card-border); color: var(--sf-text); text-decoration: none; font-weight: 700; }
.nx-pages .page-numbers.current { background: var(--sf-grad); color: var(--sf-on-primary); border-color: transparent; }
.nx-404 { padding: 70px 0; text-align: center; }

/* ---- footer ---- */
.nx-footer { margin-top: 20px; background: var(--sf-footer-bg); color: var(--sf-footer-text); font-size: 15.5px; }
.nx-footer a { color: var(--sf-footer-link); }
.nx-footer a:hover { color: var(--sf-footer-text); text-decoration: underline; }
.nx-fwidgets { padding: 46px 0 26px; }
.nx-fwidgets-in { display: grid; gap: 30px; grid-template-columns: repeat(var(--nx-fcols, 3), minmax(0, 1fr)); }
.nx-cols-1 { --nx-fcols: 1; } .nx-cols-2 { --nx-fcols: 2; } .nx-cols-3 { --nx-fcols: 3; } .nx-cols-4 { --nx-fcols: 4; }
@media (max-width: 860px) { .nx-fwidgets-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nx-fwidgets-in { grid-template-columns: minmax(0, 1fr); } }
.nx-footer .widget-title { margin: 0 0 14px; font-size: 17px; color: var(--sf-footer-text); }
.nx-footer ul { margin: 0; padding: 0; list-style: none; }
.nx-footer li { margin: 0 0 8px; }
.nx-footer p { margin: 0 0 10px; }
.sf-fw-brand img, .sf-fw-logo img { max-height: 56px; width: auto; margin-bottom: 10px; }
.nx-fbar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px; }
.nx-fbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; }
.nx-fbar-menu ul, .nx-fbar-menu .menu { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.nx-fbar-menu li { margin: 0; } .nx-fbar-menu .widget { margin: 0; }
.nx-copy { font-size: 14px; line-height: 1.6; }
.nx-copy .sf-age { display: block; margin-top: 4px; opacity: .9; }
.sf-age-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor;
  font-weight: 900; font-size: 12px; vertical-align: middle; }
.nx-hero-code { margin-top: 16px; }
.nx-hero-in:not(:has(.nx-hero-visual)) { grid-template-columns: minmax(0, 1fr) !important; }

/* header "app": a compact bar like a phone app, and a tab bar fixed at the bottom on phones */
.nx-header--app { --nx-bar-h: 62px; }
.nx-header--app .nx-bar-in { min-height: 62px; }
.nx-header--app .nx-logo-img { height: 40px; }
.nx-header--app .nx-menu a { font-size: 14.5px; }
.nx-tabbar { display: none; }
@media (max-width: 960px) {
  .nx-header--app .nx-burger { display: none; }
  .nx-header--app .nx-actions--bar .nx-btn-ghost { display: inline-flex; }
  .nx-header--app .nx-actions--bar { display: flex; margin-left: auto; }
  .nx-header--app .nx-actions--bar .nx-btn { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
  .nx-tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--sf-header-bg);
    border-top: 1px solid var(--sf-border); box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, .6); padding-bottom: env(safe-area-inset-bottom); }
  .nx-tabbar ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; list-style: none; }
  .nx-tabbar a, .nx-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 9px 2px 8px; border: 0;
    background: none; color: var(--sf-header-text); font: 700 11.5px/1.1 var(--nx-head-font); text-decoration: none; cursor: pointer; }
  .nx-ti { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
  .nx-ti-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11h3v10h6v-6h2v6h6V11h3z'/%3E%3C/svg%3E"); }
  .nx-ti-star { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 7h7l-5.6 4.3 2.1 7.2L12 16.3 5.5 20.5l2.1-7.2L2 9h7z'/%3E%3C/svg%3E"); }
  .nx-ti-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6z'/%3E%3C/svg%3E"); }
  .nx-ti-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h7a3 3 0 0 1 3 3v15a2 2 0 0 0-2-2H4zm16 0h-4a3 3 0 0 0-1 .2V21a2 2 0 0 1 2-2h3z'/%3E%3C/svg%3E"); }
  .nx-ti-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2.5H3zm0 5.75h18v2.5H3zM3 16.5h18V19H3z'/%3E%3C/svg%3E"); }
  .nx-tabbar li:nth-child(2) a { color: var(--sf-link); }
  body.nx-header-app { padding-bottom: 66px; }
  .nx-header--app .nx-nav { top: auto; bottom: 66px; position: fixed; max-height: 70vh; overflow: auto; border-top: 0;
    border-radius: var(--sf-r) var(--sf-r) 0 0; }
  .nx-header--app .nx-actions--nav { display: none; }
}
@media (max-width: 420px) { .nx-header--app .nx-actions--bar .nx-btn-ghost { display: none; } }

/* hero "split": text on the left, the phone standing on the bottom edge on the right */
@media (min-width: 861px) {
  .nx-hero-split .nx-hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 560px; }
  .nx-hero-split .nx-hero-visual img { max-height: 540px; }
}
.nx-hero-split .nx-hero { border-bottom: 4px solid var(--sf-primary); }

/* pages: one comfortable reading column; the platform card rides along on wide screens */
.nx-page-rail .nx-layout { max-width: 820px; }
@media (min-width: 1360px) {
  .nx-page-rail .nx-layout { max-width: 1240px; grid-template-columns: 1fr minmax(0, 800px) 1fr; column-gap: 34px; }
  .nx-page-rail .nx-article { grid-column: 2; }
  .nx-page-rail .nx-aside { grid-column: 3; grid-row: 1; max-width: 290px; }
}
.nx-page-rail .entry-content { font-size: 17.5px; }

/* skin "lift": raised cards on a tinted page, centred article titles, a gem before each H2 */
.nx-skin-lift { --nx-card-bg: var(--sf-surface); --nx-card-border: 1px solid transparent; --nx-card-shadow: 0 22px 44px -24px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .06); }
.nx-skin-lift .nx-layout, .nx-skin-lift .nx-list { background: none; }
.nx-skin-lift .nx-main { background: linear-gradient(180deg, var(--sf-tint) 0, var(--sf-bg) 520px); }
.nx-skin-lift .entry-content h2::before { content: ""; display: inline-block; width: .5em; height: .5em; margin: 0 .5em .1em 0; transform: rotate(45deg);
  background: var(--sf-grad); border-radius: 2px; vertical-align: middle; }
.nx-skin-lift .gms:hover, .nx-skin-lift .fts:hover, .nx-skin-lift .bn:hover { transform: translateY(-3px); transition: transform .2s ease; }
.nx-skin-lift .steps p { box-shadow: 0 10px 22px -18px rgba(0, 0, 0, .6); }
.nx-skin-lift .entry-content .sf-article-title { text-align: center; }

/* footer "band": a call-to-action band in the brand gradient above the footer */
.nx-band { background: var(--sf-grad); color: var(--sf-on-primary); }
.nx-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 0; }
.nx-band-title { margin: 0; font: 900 clamp(22px, 3vw, 30px)/1.15 var(--nx-display-font); }
.nx-band-line { margin: 6px 0 0; opacity: .92; }
.nx-band .nx-btn-main { background: #fff; color: #111 !important; }
.nx-band .nx-btn-ghost { color: inherit !important; border-color: currentColor; }

.nx-radius-sharp { --sf-r: 6px; --sf-r-sm: 4px; }
.nx-radius-soft { --sf-r: 14px; --sf-r-sm: 10px; }
.nx-radius-round { --sf-r: 24px; --sf-r-sm: 14px; }
