/* Built from six Nahang Header & Contact CSS modules. */
/* Scoped enhancement: original Nahang logo and design tokens remain intact. */
body.nahang-template-digital .nhd-header .nhd-logo {
  width: var(--nhc-logo-desktop, 58px) !important;
  height: var(--nhc-logo-desktop, 58px) !important;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 2px 8px rgba(25, 122, 255, .2));
}
body.nahang-template-digital .nhd-header .nhd-header-row { min-height: 88px; }
body.nahang-template-digital .nhd-header .nhd-brand { gap: 10px; }
body.nahang-template-digital .nhd-header .nhd-brand strong {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.015em;
}
body.nahang-template-digital .nhd-header .nhd-brand:hover .nhd-logo {
  filter: drop-shadow(0 3px 10px rgba(31, 135, 255, .3));
}
body.nahang-template-digital .nhc-contact-menu-item > a {
  font-weight: 750;
  color: var(--nh-accent, #55a6ff);
}
body.nahang-template-digital .nhc-contact-menu-item > a:hover { color: var(--nh-text, #f8fbff); }

.nhc-dialog {
  --nhc-text: #f3f7ff;
  --nhc-muted: #b7c9dd;
  --nhc-line: rgba(161, 200, 255, .22);
  --nhc-surface: rgba(24, 46, 72, .65);
  --nhc-accent: #79bcff;
  color: var(--nhc-text);
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid rgba(172, 208, 255, .32);
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(31, 58, 91, .9), rgba(6, 19, 37, .9) 72%);
  backdrop-filter: blur(36px) saturate(1.4);
  -webkit-backdrop-filter: blur(36px) saturate(1.4);
  box-shadow: 0 38px 110px rgba(0, 5, 18, .52), inset 0 1px rgba(255,255,255,.1);
  font-family: Vazir, Vazirmatn, Tahoma, system-ui, sans-serif;
  text-align: right;
  overflow: auto;
  overscroll-behavior: contain;
}
.nhc-dialog:not([open]) { display: none; }
.nhc-dialog::backdrop { background: rgba(2, 8, 19, .72); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }
.nhc-dialog * { box-sizing: border-box; }
.nhc-dialog-shell { position: relative; isolation: isolate; }
.nhc-dialog-shell::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 84% 0%, rgba(19, 118, 245, .19), transparent 48%),
    radial-gradient(circle at 0% 100%, rgba(0, 175, 228, .1), transparent 42%);
}
.nhc-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 30px 17px; border-bottom: 1px solid var(--nhc-line); }
.nhc-kicker { color: var(--nhc-accent); font: 700 11px/1.5 system-ui, sans-serif; letter-spacing: .19em; }
.nhc-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--nhc-line); border-radius: 13px; background: rgba(255,255,255,.055); color: var(--nhc-text); cursor: pointer; }
.nhc-close:hover { background: rgba(255,255,255,.12); }
.nhc-dialog-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px; padding: 32px 34px 38px; }
.nhc-intro { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.nhc-intro-line { display: block; width: 35px; height: 3px; border-radius: 9px; margin-bottom: 29px; background: linear-gradient(90deg, #1677ff, #73d9ff); }
.nhc-intro-eyebrow { margin: 0 0 10px; color: var(--nhc-accent); font-size: 12px; font-weight: 700; }
.nhc-intro h2 { margin: 0 0 20px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 850; line-height: 1.7; letter-spacing: -.035em; }
.nhc-intro h2 span { color: #80caff; }
.nhc-intro > p:not(.nhc-intro-eyebrow) { margin: 0; color: var(--nhc-muted); font-size: 14px; line-height: 2.15; }
.nhc-intro-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; min-height: 44px; color: var(--nhc-accent); font-size: 13px; text-decoration: none; }
.nhc-intro-link svg { width: 17px; height: 17px; }
.nhc-links > h3, .nhc-social h3 { margin: 0 0 13px; color: var(--nhc-muted); font-size: 12px; font-weight: 650; }
.nhc-card-grid { display: grid; gap: 10px; }
.nhc-card { display: flex; align-items: center; gap: 13px; min-height: 75px; padding: 12px 14px; border: 1px solid var(--nhc-line); border-radius: 17px; background: var(--nhc-surface); color: var(--nhc-text); text-decoration: none; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.nhc-card:hover { background: rgba(47, 83, 127, .79); border-color: rgba(132, 197, 255, .48); transform: translateY(-2px); }
.nhc-card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: #98d0ff; background: rgba(15, 99, 214, .17); }
.nhc-card-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.nhc-card-copy strong { display: block; color: var(--nhc-text); font-size: 14px; line-height: 1.5; }
.nhc-card-copy small { display: block; color: var(--nhc-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.nhc-card-arrow { display: grid; place-items: center; flex: none; color: var(--nhc-accent); opacity: .8; }
.nhc-card-arrow svg { width: 16px; height: 16px; }
.nhc-social { margin-top: 24px; }
.nhc-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nhc-social-grid a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--nhc-line); border-radius: 12px; color: var(--nhc-text); background: rgba(255,255,255,.035); font-size: 12px; text-decoration: none; }
.nhc-social-grid a svg { margin-inline-start: auto; width: 14px; height: 14px; }
.nhc-social-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(22,119,255,.17); color: #9cd1ff; font: 800 9px system-ui, sans-serif; }
.nhc-social-mark svg { width: 17px; height: 17px; }
.nhc-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 17px 34px 21px; border-top: 1px solid var(--nhc-line); }
.nhc-dialog-footer span { color: var(--nhc-muted); font: 600 10px/1.6 system-ui, sans-serif; letter-spacing: .075em; }
.nhc-dialog-footer a { display: inline-flex; align-items: center; gap: 7px; color: var(--nhc-accent); font-size: 12px; text-decoration: none; }
.nhc-dialog-footer svg { width: 15px; height: 15px; }
.nhc-dialog :is(a,button):focus-visible { outline: 3px solid #62b5ff; outline-offset: 3px; }

html[data-nh-theme='light'] .nhc-dialog {
  --nhc-text: #17243a; --nhc-muted: #4d617a; --nhc-line: rgba(41, 91, 145, .2);
  --nhc-surface: rgba(255,255,255,.74); --nhc-accent: #075fcb;
  background: linear-gradient(135deg, rgba(249,252,255,.94), rgba(229,241,255,.93));
  border-color: rgba(75,125,182,.27); box-shadow: 0 35px 100px rgba(12,32,60,.25);
}
html[data-nh-theme='light'] .nhc-close { background: rgba(19,86,168,.06); }
html[data-nh-theme='light'] .nhc-intro h2 span { color: #075fcb; }
html[data-nh-theme='light'] .nhc-card:hover { background: rgba(221,237,255,.93); }
html[data-nh-theme='light'] .nhc-card-icon { color: #075fcb; background: rgba(17,116,227,.09); }
html[data-nh-theme='light'] .nhc-social-mark { color: #075fcb; }

@media (max-width: 780px) {
  .nhc-dialog { width: min(650px, calc(100vw - 24px)); border-radius: 22px; max-height: calc(100dvh - 24px); }
  .nhc-dialog-body { grid-template-columns: 1fr; gap: 24px; padding: 25px; }
  .nhc-intro-line { margin-bottom: 12px; }
  .nhc-intro h2 { margin-bottom: 9px; font-size: 28px; }
  .nhc-intro-link { margin-top: 4px; padding-top: 8px; }
  .nhc-dialog-top { padding-inline: 24px; }
  .nhc-dialog-footer { padding-inline: 25px; }
}
@media (max-width: 620px) {
  body.nahang-template-digital .nhd-header .nhd-logo { width: var(--nhc-logo-mobile, 46px) !important; height: var(--nhc-logo-mobile, 46px) !important; }
  body.nahang-template-digital .nhd-header .nhd-header-row { min-height: 76px; gap: 7px; }
  body.nahang-template-digital .nhd-header .nhd-brand { gap: 6px; }
  body.nahang-template-digital .nhd-header .nhd-brand strong { font-size: 13px; }
  body.nahang-template-digital .nhd-header .nhd-header-search { width: 44px; max-width: 44px; min-width: 44px; flex: 0 0 44px; padding: 0; gap: 0; overflow: hidden; }
  body.nahang-template-digital .nhd-header .nhd-header-search input[type='search'] { width: 0; flex: 0 0 0; padding: 0; opacity: 0; }
  body.nahang-template-digital .nhd-header .nhd-header-search .nhd-search-submit { width: 42px; height: 42px; min-height: 42px; padding: 9px; border-radius: 12px; background: transparent; color: var(--nh-text,#fff); }
  body.nahang-template-digital .nhd-header .nhd-header-search:focus-within { position: absolute; inset-inline: 8px; top: calc(100% + 6px); z-index: 130; width: auto; max-width: none; min-width: 0; padding: 4px 7px 4px 14px; background: var(--nh-surface,#10243a); overflow: visible; border-color: var(--nh-accent,#1677ff); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
  body.nahang-template-digital .nhd-header .nhd-header-search:focus-within input[type='search'] { flex: 1 1 auto; width: 100%; opacity: 1; padding: 4px 5px; }
  .nhc-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 19px; }
  .nhc-dialog::backdrop { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nhc-dialog-body { padding: 18px 17px 25px; gap: 23px; }
  .nhc-dialog-top { padding: 13px 17px; }
  .nhc-kicker { font-size: 10px; letter-spacing: .12em; }
  .nhc-intro h2 { font-size: clamp(23px, 6vw, 28px); }
  .nhc-intro > p:not(.nhc-intro-eyebrow) { font-size: 13px; line-height: 2; }
  .nhc-card { min-height: 67px; padding: 9px 11px; gap: 10px; }
  .nhc-card-icon { width: 42px; height: 42px; }
  .nhc-card-copy strong { font-size: 13px; }
  .nhc-card-copy small { font-size: 11px; }
  .nhc-dialog-footer { padding: 15px 17px 19px; }
}
@media (prefers-reduced-motion: reduce) { .nhc-dialog *, .nhc-dialog { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* v1.3: mobile search is a single full-viewport surface, no jumping header form. */
.nhc-mobile-search {
  box-sizing: border-box; position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100vw; max-width: none; height: 100dvh; max-height: none;
  border: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 75% -15%,rgba(30,119,224,.25),transparent 62%),#071523;
  color: #f1f7ff; font-family: Vazir,Vazirmatn,Tahoma,sans-serif;
  direction: rtl; text-align: right; color-scheme: dark;
}
.nhc-mobile-search:not([open]) { display: none; }
.nhc-mobile-search::backdrop { background: rgba(2,9,21,.8); }
.nhc-search-shell { width: min(760px,calc(100% - 36px)); margin: 0 auto; padding: max(20px,env(safe-area-inset-top)) 0 40px; }
.nhc-search-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0 28px; border-bottom: 1px solid rgba(135,184,248,.19); }
.nhc-search-top span { font: 700 10px/1.6 system-ui,sans-serif; letter-spacing: .17em; color: #80c4ff; }
.nhc-search-top h2 { font-size: clamp(24px,5.5vw,34px); line-height: 1.45; margin: 7px 0 0; }
.nhc-search-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid rgba(137,185,246,.24); border-radius: 14px; background: rgba(119,175,247,.08); color: inherit; cursor: pointer; }
.nhc-mobile-search button svg,.nhc-search-field > svg { display: block; width: 21px; height: 21px; }
.nhc-search-form { margin-top: clamp(35px,10vh,95px); }
.nhc-search-form > label { display: block; margin-bottom: 14px; font-size: 17px; font-weight: 750; }
.nhc-search-field { display: flex; align-items: center; gap: 12px; padding: 8px 11px 8px 8px; min-width: 0; border-radius: 18px; border: 1px solid rgba(126,182,248,.37); background: rgba(15,36,62,.76); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.nhc-search-field > svg { color: #8bc9ff; flex: none; }
.nhc-search-field input { background: transparent; border: 0; outline: 0; color: inherit; flex: 1; min-width: 0; height: 49px; font-family: inherit; font-weight: 500; font-size: clamp(13px,3.4vw,16px); line-height: 1.5; }
.nhc-search-field input::placeholder { color: #95aaca; opacity: .9; }
.nhc-search-field button { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border: 0; border-radius: 12px; background: #1677f8; color: white; cursor: pointer; }
.nhc-search-suggestions { margin-top: 32px; }
.nhc-search-suggestions > span { display: block; color: #a9bfdd; font-size: 12px; margin-bottom: 12px; }
.nhc-search-suggestions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.nhc-search-suggestions a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border: 1px solid rgba(138,185,243,.25); border-radius: 13px; color: inherit; text-decoration: none; background: rgba(86,146,225,.09); font-size: 13px; }
.nhc-search-suggestions svg { width: 19px; height: 19px; color: #83c2ff; }
.nhc-mobile-search :is(button,input,a):focus-visible { outline: 3px solid #71bfff; outline-offset: 3px; }
html[data-nh-theme='light'] .nhc-mobile-search { color-scheme: light; color: #18304f; background: radial-gradient(ellipse at 75% -15%,#d5eaff,transparent 58%),#f4f8ff; }
html[data-nh-theme='light'] .nhc-search-top { border-color: rgba(32,90,150,.2); }
html[data-nh-theme='light'] .nhc-search-field { background: rgba(255,255,255,.85); border-color: rgba(54,122,202,.28); }
html[data-nh-theme='light'] .nhc-search-field input::placeholder { color: #60718b; }
html[data-nh-theme='light'] .nhc-search-suggestions a { border-color: rgba(54,122,202,.2); background: #e7f2ff; }
html[data-nh-theme='light'] .nhc-search-suggestions > span { color: #5a7190; }
@media (max-width: 760px) {
  body.nahang-template-digital .nhd-header .nhd-header-search { width: 42px; max-width: 42px; min-width: 42px; flex: 0 0 42px; padding: 0; overflow: hidden; }
  body.nahang-template-digital .nhd-header .nhd-header-search input[type='search'] { display: none; }
  body.nahang-template-digital .nhd-header .nhd-header-search .nhd-search-submit { width: 42px; height: 42px; min-height: 42px; padding: 10px; }
  body.nahang-template-digital .nhd-header .nhd-header-search:focus-within { position: static; width: 42px; max-width: 42px; min-width: 42px; box-shadow: none; overflow: hidden; }
  .nhc-search-shell { width: calc(100% - 34px); }
}
@media (max-width: 390px) {
  body.nahang-template-digital .nhd-header .nhd-tools { gap: 3px; }
  body.nahang-template-digital .nhd-header .nhd-tools .nhd-account-shortcut { display: none !important; }
  body.nahang-template-digital .nhd-header .nhd-brand strong { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nhc-mobile-search * { scroll-behavior: auto !important; transition: none !important; } }

/* Compact, selectable app-like explorer. This layer never edits the source content. */
.nhd-explore .nhc-menu-empty,
.nhd-explore .nhc-menu-hint {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  border: 1px dashed rgba(125, 176, 234, .29); border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(44, 119, 202, .11), transparent 64%), var(--nhd-menu-surface);
  color: var(--nhd-menu-muted); box-sizing: border-box;
}
.nhd-explore .nhc-menu-empty[hidden], .nhd-explore .nhc-menu-hint[hidden] { display: none !important; }
.nhd-explore .nhc-menu-empty { min-height: 238px; margin-block: 13px 5px; padding: 30px 20px; }
.nhd-explore .nhc-menu-hint { min-height: 310px; padding: 26px 18px; }
.nhd-explore .nhc-menu-empty strong, .nhd-explore .nhc-menu-hint strong { color: var(--nhd-menu-text); font-size: 17px; line-height: 1.7; }
.nhd-explore .nhc-menu-empty p, .nhd-explore .nhc-menu-hint p { margin: 8px 0 0; max-width: 45ch; font-size: 13px; line-height: 1.9; }
.nhd-explore .nhc-empty-signal { display: grid; place-items: center; margin-bottom: 14px; width: 48px; height: 48px; color: var(--nhd-menu-accent); background: var(--nhd-menu-active); border: 1px solid var(--nhd-menu-line); border-radius: 16px; font-size: 22px; }
.nhd-explore .nhc-menu-hint > span { color: var(--nhd-menu-accent); font-size: 25px; margin-bottom: 10px; }
.nhd-explore .nhc-menu-quick-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px; width: min(410px, 100%); margin-top: 17px;
}
.nhd-explore .nhc-menu-quick-button {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  min-width: 0; min-height: 55px; padding: 9px 12px;
  border: 1px solid var(--nhd-menu-line); border-radius: 14px;
  background: var(--nhd-menu-card); color: var(--nhd-menu-text);
  font-family: inherit; text-align: right; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.nhd-explore .nhc-menu-quick-button:hover { background: var(--nhd-menu-active); border-color: var(--nhd-menu-accent); }
.nhd-explore .nhc-menu-quick-button:focus-visible { outline: 2px solid var(--nhd-menu-accent); outline-offset: 2px; }
.nhd-explore .nhc-menu-quick-button svg { width: 23px; height: 23px; flex: none; color: var(--nhd-menu-accent); }
.nhd-explore .nhc-menu-quick-button > span { display: grid; gap: 1px; min-width: 0; }
.nhd-explore .nhc-menu-quick-button strong { font-size: 13px; font-weight: 750; line-height: 1.5; }
.nhd-explore .nhc-menu-quick-button small { font-size: 10px; line-height: 1.4; color: var(--nhd-menu-muted); }
.nhd-explore .nhd-menu-heading {
  flex-direction: row-reverse; align-items: center;
  justify-content: space-between; gap: 18px; margin-bottom: 18px;
}
.nhd-explore .nhd-menu-heading > div:first-child { flex: 1; min-width: 0; text-align: end; }
.nhd-explore .nhd-menu-heading .nhd-menu-switch { flex: none; width: auto; }
.nhd-explore .nhd-menu-heading .nhd-menu-switch button { min-width: 92px; min-height: 43px; padding: 9px 12px; }
.nhd-explore .nhd-menu-heading h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.55; }
.nhd-explore .nhd-menu-layout { grid-template-columns: minmax(175px, 218px) minmax(0, 1fr); gap: 18px; }
.nhd-explore .nhd-menu-rail { padding: 5px; border-radius: 17px; gap: 4px; }
.nhd-explore .nhd-menu-rail button { min-height: 51px; padding: 8px 10px; gap: 9px; border-radius: 11px; line-height: 1.6; transition: background .2s ease, border-color .2s ease; }
.nhd-explore .nhd-menu-rail button:hover { background: var(--nhd-menu-active); color: var(--nhd-menu-text); }
.nhd-explore .nhd-menu-rail button[aria-selected='true'] { box-shadow: inset 3px 0 0 #57b3ff; }
.nhd-explore .nhc-menu-item-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--nhd-menu-line); border-radius: 10px; background: var(--nhd-menu-card); flex: none; color: var(--nhd-menu-accent); }
.nhd-explore .nhc-menu-item-icon svg { width: 18px; height: 18px; }
.nhd-explore .nhd-menu-rail button > span:not(.nhc-menu-item-icon) { font-size: 10px; opacity: .62; }
.nhd-explore .nhd-menu-panel { grid-template-columns: minmax(0, 1.06fr) minmax(210px, .86fr); gap: 18px; }
.nhd-explore .nhd-menu-copy { padding: 2px 0; min-width: 0; }
.nhd-explore .nhd-menu-kicker { font-size: 10px; letter-spacing: .09em; }
.nhd-explore .nhd-menu-copy h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.55; margin: 5px 0 6px; }
.nhd-explore .nhd-menu-copy > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 12.5px; line-height: 1.85; margin: 0 0 12px; min-height: 0; }
.nhd-explore .nhd-menu-links { margin-bottom: 12px; border-radius: 12px; }
.nhd-explore .nhd-menu-links li > a, .nhd-explore .nhd-menu-links li > span { min-height: 39px; padding: 7px 12px; font-size: 12.5px; line-height: 1.75; }
.nhd-explore .nhd-menu-view { font-size: 12.5px; padding-block: 7px; min-height: 40px; }
.nhd-explore .nhd-menu-feature { border-radius: 17px; }
.nhd-explore .nhd-menu-feature figure {
  display: grid; place-items: center; position: relative;
  width: 100%; height: auto !important; min-height: 0;
  aspect-ratio: 3 / 2; max-height: 235px; overflow: hidden;
  margin: 0; border-radius: 15px 15px 0 0;
  background: radial-gradient(circle at 50% 40%, rgba(42, 114, 195, .2), transparent 66%),
    linear-gradient(140deg, #0a1c36, #102746);
}
.nhd-explore .nhd-menu-feature figure img {
  display: block; position: relative !important; inset: auto !important;
  box-sizing: border-box; width: 100% !important; height: 100% !important;
  max-width: 100%; max-height: 100%; padding: 11px;
  object-fit: contain !important; object-position: center center !important;
  transform: none !important; filter: none !important;
}
.nhd-explore .nhd-menu-feature figure img:is([src$='.svg'],[data-nhd-src$='.svg']) { padding: 20px; }
.nhd-explore .nhd-menu-feature figure img:is([src*='menu-laptop'],[data-nhd-src*='menu-laptop']) { padding: 17px 20px; }
html[data-nh-theme='light'] .nhd-explore .nhd-menu-feature figure {
  background: radial-gradient(circle at 50% 35%, rgba(79, 155, 236, .18), transparent 69%), #e5f0fd;
}
.nhd-explore .nhd-menu-feature > div { padding: 13px 17px 17px; }
.nhd-explore .nhd-menu-feature strong { font-size: 14px; line-height: 1.6; }
.nhd-explore .nhd-menu-feature p { font-size: 11.5px; line-height: 1.75; margin: 7px 0 11px; }
.nhd-explore .nhd-menu-feature .nhd-action { font-size: 11.5px; min-height: 39px; padding: 8px 14px; }
.nhd-explore .nhd-menu-pages { margin-top: 22px; padding-top: 13px; }

/* Keep scrolling on one surface; avoid repainting two large blur layers. */
.nhd-explore .nhd-explore-panel {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  background: var(--nhd-menu-bg, #071425);
}
.nhd-explore .nahang-mobile-drawer__backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(2, 10, 23, .82);
}
.nhd-explore .nhd-explore-top {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: var(--nhd-menu-line, rgba(137,176,228,.17));
}
.nhd-explore .nhd-explore-top::before,
.nhd-explore .nhd-explore-top::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  background-image: none !important;
}
/* A closed off-canvas page should not repaint 37 ongoing animations or blurs. */
body.nhc-explore-open main * {
  animation-play-state: paused !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Three-way theme picker: an iOS-inspired 42px track inside a 44px tap target. */
body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-switch {
  position: relative; display: flex; justify-content: flex-start; align-items: center;
  box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  margin: 0; padding: 0 4px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; cursor: pointer;
}
body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-switch::before {
  content: ''; position: absolute; inset-inline-start: 1px; top: 50%;
  width: 42px; height: 25px; box-sizing: border-box; transform: translateY(-50%);
  border-radius: 999px; border: 1px solid rgba(176,199,233,.2);
  background: #26364f; box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
  transition: background-color .22s ease, border-color .22s ease;
}
body.nahang-template-digital .nhd-header .nhc-theme-switch > span {
  position: relative; z-index: 1; display: grid; place-items: center;
  box-sizing: border-box; width: 19px; height: 19px; flex: none; border-radius: 50%;
  background: #f9fbff; color: transparent; font-size: 0; line-height: 0;
  box-shadow: 0 1px 3px rgba(3,14,33,.22);
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhc-theme-switch::before {
  background: #62aaf5; border-color: #62aaf5;
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhc-theme-switch > span {
  transform: translateX(-17px);
}
body.nahang-template-digital .nhd-header .nhc-theme-switch[data-nhc-theme-mode='auto']::after {
  content: ''; position: absolute; bottom: 2px; left: calc(50% - 1.5px);
  width: 3px; height: 3px; border-radius: 50%; background: #62b9ff;
}
body.nahang-template-digital .nhd-header .nhc-theme-switch:focus-visible {
  outline: 2px solid #69b6ff; outline-offset: 1px;
}
.nhc-theme-panel {
  --nhc-picker-bg: rgba(10,25,45,.94); --nhc-picker-text: #f3f8ff; --nhc-picker-muted: #adbfda; --nhc-picker-line: rgba(142,186,247,.22);
  position: fixed; z-index: 99999; width: min(272px, calc(100vw - 16px)); padding: 14px;
  border: 1px solid var(--nhc-picker-line); border-radius: 19px; color: var(--nhc-picker-text);
  background: var(--nhc-picker-bg); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 20px 65px rgba(0,7,22,.4); font-family: Vazir,Vazirmatn,Tahoma,sans-serif;
}
.nhc-theme-panel[hidden] { display: none !important; }
.nhc-theme-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 3px 11px; border-bottom: 1px solid var(--nhc-picker-line); }
.nhc-theme-panel-head strong { font-size: 13px; }
.nhc-theme-panel-head small { color: var(--nhc-picker-muted); font: 700 9px system-ui,sans-serif; letter-spacing: .11em; }
.nhc-theme-choices { display: grid; gap: 5px; padding-top: 9px; }
.nhc-theme-choices button { display: flex; align-items: center; gap: 11px; min-height: 56px; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 12px; text-align: right; font: inherit; cursor: pointer; color: var(--nhc-picker-text); background: transparent; }
.nhc-theme-choices button:hover { background: rgba(79,138,203,.13); }
.nhc-theme-choices button[aria-pressed='true'] { background: rgba(39,116,211,.19); border-color: rgba(95,168,247,.4); }
.nhc-theme-choices button svg { width: 20px; height: 20px; flex: none; color: #83c7ff; }
.nhc-theme-choices button span { display: grid; gap: 2px; }
.nhc-theme-choices strong { font-size: 13px; font-weight: 750; }
.nhc-theme-choices small { font-size: 10px; color: var(--nhc-picker-muted); }
.nhc-theme-future { border-top: 1px solid var(--nhc-picker-line); padding: 11px 3px 0; margin: 9px 0 0; font-size: 10.5px; line-height: 1.85; color: var(--nhc-picker-muted); }
.nhc-theme-panel :focus-visible { outline: 3px solid #62b5ff; outline-offset: 2px; }
html[data-nh-theme='light'] .nhc-theme-panel { --nhc-picker-bg: rgba(246,250,255,.96); --nhc-picker-text: #172c46; --nhc-picker-muted: #5c6f87; --nhc-picker-line: rgba(45,97,154,.2); box-shadow: 0 20px 70px rgba(16,44,82,.2); }
html[data-nh-theme='light'] .nhc-theme-choices button[aria-pressed='true'] { background: #e1efff; }

@media (max-width: 900px) {
  .nhd-explore .nhd-menu-layout { grid-template-columns: 1fr; gap: 12px; }
  .nhd-explore .nhc-menu-hint { min-height: 140px; }
  .nhd-explore .nhd-menu-panel { grid-template-columns: minmax(0,1fr) minmax(200px,.8fr); }
}
@media (max-width: 620px) {
  .nhd-explore .nhd-menu-heading { flex-direction: row-reverse; align-items: flex-start; gap: 9px; margin-bottom: 16px; }
  .nhd-explore .nhd-menu-heading .nhd-menu-switch { gap: 3px; padding: 4px; }
  .nhd-explore .nhd-menu-heading .nhd-menu-switch button { min-width: 0; min-height: 39px; padding: 6px 8px; font-size: 11px; }
  .nhd-explore .nhd-menu-heading h2 { font-size: clamp(15px, 4vw, 18px); line-height: 1.5; }
  .nhd-explore .nhc-menu-empty { min-height: 170px; padding: 25px 14px; }
  .nhd-explore .nhc-menu-quick-actions { gap: 6px; margin-top: 13px; }
  .nhd-explore .nhc-menu-quick-button { min-height: 49px; padding: 7px 8px; gap: 6px; }
  .nhd-explore .nhc-menu-quick-button svg { width: 19px; height: 19px; }
  .nhd-explore .nhc-menu-quick-button strong { font-size: 12px; }
  .nhd-explore .nhc-menu-quick-button small { font-size: 9px; }
  .nhd-explore .nhc-menu-empty strong, .nhd-explore .nhc-menu-hint strong { font-size: 15px; }
  .nhd-explore .nhc-menu-empty p, .nhd-explore .nhc-menu-hint p { font-size: 12px; }
  .nhd-explore .nhd-menu-layout { gap: 13px; }
  .nhd-explore .nhd-menu-rail {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px; border-radius: 15px; padding: 6px;
    box-sizing: border-box; width: 100%; max-height: none; overflow: visible;
  }
  .nhd-explore .nhd-menu-rail button {
    min-width: 0; width: 100%; min-height: 46px; padding: 7px 8px;
    gap: 7px; font-size: 11.5px; line-height: 1.5;
    justify-content: flex-start; text-align: right; white-space: normal;
  }
  .nhd-explore .nhd-menu-rail button > span:not(.nhc-menu-item-icon),
  .nhd-explore .nhd-menu-rail button > svg.nahang-icon { display: none; }
  .nhd-explore .nhc-menu-item-icon { width: 26px; height: 26px; border-radius: 8px; }
  .nhd-explore .nhc-menu-item-icon svg { width: 15px; height: 15px; }
  .nhd-explore .nhd-menu-panel { grid-template-columns: 1fr; gap: 12px; }
  .nhd-explore .nhd-menu-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
  }
  .nhd-explore .nhd-menu-links li { min-width: 0; }
  .nhd-explore .nhd-menu-links li > a,
  .nhd-explore .nhd-menu-links li > span {
    display: flex; align-items: center; min-height: 40px; height: 100%;
    padding: 7px 9px; font-size: 11px; line-height: 1.55; white-space: normal;
  }
  .nhd-explore .nhd-menu-feature { display: grid; grid-template-columns: 115px minmax(0,1fr); }
  .nhd-explore .nhd-menu-feature figure {
    width: 115px; height: 150px !important; aspect-ratio: auto;
    max-height: none; border-radius: 15px 0 0 15px;
  }
  .nhd-explore .nhd-menu-feature figure img { padding: 9px; }
  .nhd-explore .nhd-menu-feature figure img:is([src*='menu-laptop'],[data-nhd-src*='menu-laptop']) { padding: 9px; }
  .nhd-explore .nhd-menu-feature > div { padding: 11px; }
  .nhd-explore .nhd-menu-feature p { font-size: 11px; }
  .nhd-explore .nhd-menu-copy h3 { font-size: 20px; }
}
@media (min-width: 480px) and (max-width: 620px) {
  .nhd-explore .nhd-menu-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .nhd-explore .nhd-menu-rail button, .nhd-explore .nhc-menu-quick-button, .nhc-theme-switch, .nhc-theme-switch::before, .nhc-theme-switch > span { transition: none !important; }
}

/* v1.2.1: the native button labels are genuine flex items, so Arabic/Persian
   wrapping can never make one navigation cell taller than its neighbor. */
.nhd-explore .nhc-menu-item-label {
  display: block; min-width: 0; flex: 1 1 auto; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: inherit; line-height: 1.5; text-align: right;
}
.nhd-explore .nhd-menu-rail button > span.nhc-menu-item-label {
  display: block !important; font-size: inherit; opacity: 1;
}
.nhd-explore .nhd-menu-rail button { min-width: 0; overflow: hidden; }
.nhd-explore .nhd-menu-heading > div:first-child,
.nhd-explore .nhd-menu-switch { min-width: 0; }
.nhd-explore .nhd-menu-feature figure img[src*='nhc-laptop-cutout'] { padding: 8px 10px; }
@media (max-width: 760px) {
  .nhd-explore .nhd-menu-heading {
    display: grid; grid-template-columns: minmax(0,1fr);
    gap: 12px; align-items: start; margin-bottom: 14px;
  }
  .nhd-explore .nhd-menu-heading > div:first-child { grid-column: 1; text-align: right; }
  .nhd-explore .nhd-menu-heading .nhd-menu-switch {
    grid-column: 1; display: grid; width: 100%; max-width: 100%;
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px;
    padding: 4px; margin: 0; box-sizing: border-box;
  }
  .nhd-explore .nhd-menu-heading .nhd-menu-switch button {
    display: grid; place-items: center; min-width: 0; width: 100%;
    height: 43px; min-height: 43px; padding: 6px 8px;
    box-sizing: border-box; white-space: nowrap; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; font-size: 12px;
  }
  .nhd-explore .nhd-menu-rail button {
    display: flex; align-items: center; min-height: 45px; height: 45px;
    max-height: 45px; padding: 7px 9px; text-align: right; white-space: nowrap;
  }
  .nhd-explore .nhd-menu-copy h3 { font-size: clamp(18px,4.6vw,22px); line-height: 1.48; }
  .nhd-explore .nhd-menu-copy > p { font-size: 12px; line-height: 1.75; }
  .nhd-explore .nhd-menu-kicker { font-size: 9px; }
  .nhd-explore .nhd-menu-feature strong { font-size: 12.5px; }
  .nhd-explore .nhd-menu-pages { gap: 9px; }
  .nhd-explore .nhd-menu-pages a { white-space: nowrap; font-size: 12px; }
}
@media (max-width: 420px) {
  .nhd-explore .nhd-menu-heading h2 { font-size: clamp(17px,4.4vw,20px); line-height: 1.5; }
  .nhd-explore .nhd-menu-heading .nhd-menu-switch button { font-size: 11.5px; }
  .nhd-explore .nhd-menu-rail { gap: 5px; }
  .nhd-explore .nhd-menu-rail button { padding: 6px 7px; gap: 6px; font-size: 11px; }
  .nhd-explore .nhc-menu-item-icon { width: 25px; height: 25px; }
  .nhd-explore .nhc-menu-item-label { font-size: 11px; }
}

/* Category symbols should read like app navigation, not empty checkboxes. */
.nhd-explore .nhc-menu-item-icon {
  border: 0; background: transparent; border-radius: 10px;
  color: var(--nhd-menu-accent, #7dbdff); flex: 0 0 33px;
}
.nhd-explore .nhc-menu-item-icon svg { display: block; width: 23px; height: 23px; stroke-width: 1.65; }
.nhd-explore .nhd-menu-rail button[aria-selected='true'] .nhc-menu-item-icon {
  background: rgba(50,131,222,.14);
}
@media (max-width: 620px) {
  .nhd-explore .nhc-menu-item-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .nhd-explore .nhc-menu-item-icon svg { width: 21px; height: 21px; }
}

/* v1.3.1: one clean theme icon; the auto/light/dark picker remains on tap. */
body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button {
  display: grid; place-items: center; box-sizing: border-box;
  width: 43px; min-width: 43px; height: 43px; min-height: 43px;
  margin: 0; padding: 0; flex: 0 0 43px; border-radius: 13px;
  border: 1px solid rgba(134,181,243,.25);
  background: rgba(65,111,176,.075); color: var(--nhd-menu-text,#eaf4ff);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
  cursor: pointer; transition: background-color .17s ease,border-color .17s ease,color .17s ease;
}
body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button:hover {
  background: rgba(48,126,227,.16); border-color: rgba(111,185,255,.58); color: #87c9ff;
}
body.nahang-template-digital .nhd-header .nhc-theme-icon-button > .nhc-theme-icon {
  display: block; width: 21px; height: 21px; flex: none;
}
body.nahang-template-digital .nhd-header .nhc-theme-icon-button:focus-visible { outline: 2px solid #7fc3ff; outline-offset: 2px; }
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button {
  color: #244869; background: #f4f9ff; border-color: rgba(52,111,181,.22);
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button:hover {
  color: #0c6ed3; background: #e5f2ff; border-color: #77abe2;
}
@media (max-width: 390px) {
  body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  body.nahang-template-digital .nhd-header button[data-nh-theme-toggle].nhc-theme-icon-button { transition: none; }
}

/* v1.3.2: keep category pictograms upright in RTL mobile navigation. */
.nhd-explore .nhd-menu-rail .nhc-menu-item-icon,
.nhd-explore .nhd-menu-rail .nhc-menu-item-icon svg,
.nhd-explore .nhd-menu-rail .nhc-menu-item-icon svg * {
  transform: none !important;
  rotate: 0deg !important;
  scale: 1 !important;
}
.nhd-explore .nhd-menu-rail .nhc-menu-item-icon {
  direction: ltr; line-height: 0; flex-shrink: 0;
}
.nhd-explore .nhd-menu-rail .nhc-menu-item-icon svg {
  display: block; overflow: visible;
  transform-origin: center center; pointer-events: none;
}
@media (max-width: 900px) {
  /* Mobile uses one stable category symbol; native trailing indicators can
     inherit mirrored RTL animations and take up precious label space. */
  .nhd-explore .nhd-menu-rail button[role='tab'] > svg { display: none !important; }
  .nhd-explore .nhd-menu-rail button[role='tab'] {
    min-width: 0; box-sizing: border-box; touch-action: manipulation;
  }
}

/* Header actions: one visual family, quiet plus-button and theme-safe cart badge. */
body.nahang-template-digital .nhd-header .nhd-tools { align-items: center; gap: 6px; }
body.nahang-template-digital .nhd-header :is(.nhd-account-shortcut, .nhd-cart-shortcut) {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  padding: 9px; border: 1px solid var(--nh-border, rgba(144,185,236,.18));
  border-radius: 13px; color: var(--nh-text,#f5f8ff);
  background: var(--nh-surface,rgba(18,37,61,.54));
  transition: background-color .18s ease, border-color .18s ease;
}
body.nahang-template-digital .nhd-header :is(.nhd-account-shortcut, .nhd-cart-shortcut):hover {
  border-color: var(--nh-accent,#398ff6);
  background: var(--nh-surface-hover,rgba(44,86,135,.3));
}
body.nahang-template-digital .nhd-header :is(.nhd-account-shortcut, .nhd-cart-shortcut) svg { width: 19px; height: 19px; }
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; min-height: 43px; height: 43px;
  min-width: 0; padding: 8px 13px; border-radius: 13px;
  border: 1px solid var(--nh-border,rgba(144,185,236,.25));
  color: var(--nh-text,#f5f8ff); background: var(--nh-surface,rgba(22,42,67,.62));
  font-weight: 750; font-size: 12px; line-height: 1.4; text-decoration: none;
  box-shadow: none; white-space: nowrap;
}
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger::before {
  content: '+'; display: grid; place-items: center; flex: none;
  width: 23px; height: 23px; border-radius: 7px;
  color: #f6fbff; background: #176af2;
  font: 600 19px/1 system-ui,sans-serif;
}
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger:hover {
  border-color: #5eacff; background: var(--nh-surface-hover,rgba(30,70,116,.66));
}
body.nahang-template-digital .nhd-header .nhd-cart-shortcut .nahang-cart-count {
  display: grid; place-items: center;
  min-width: 18px; min-height: 18px; padding: 0 3px; border-radius: 99px;
  background: #1b65d8; color: #fff !important;
  font: 750 10px/1.2 system-ui,sans-serif;
  border: 1px solid #8cbfff;
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhd-cart-shortcut .nahang-cart-count {
  color: #08356b !important; background: #dbedff; border-color: #4f93d8;
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
  color: #17324f; background: #f3f8ff; border-color: #bfd5ed;
}

/* The request dialog inherits the existing Nahang glass layer and palette. */
.nhc-request-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 24px)); }
.nhc-request-dialog .nhc-dialog-shell { min-height: 360px; }
.nhc-request-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 30px 18px; }
.nhc-request-eyebrow { font-size: 12px; font-weight: 750; color: var(--nhc-accent); }
.nhc-request-intro h2 { color: var(--nhc-text); font-size: clamp(23px,2.8vw,31px); line-height: 1.5; letter-spacing: -.03em; margin: 6px 0; }
.nhc-request-intro p { font-size: 12.5px; color: var(--nhc-muted); margin: 0; line-height: 1.95; }
.nhc-request-progress { display: flex; align-items: center; gap: 6px; flex: none; }
.nhc-request-progress span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--nhc-line); border-radius: 10px; color: var(--nhc-muted); font: 800 12px/1 Tahoma,sans-serif; }
.nhc-request-progress span.is-active, .nhc-request-progress span.is-complete { background: #146aec; color: white; border-color: #438df5; }
.nhc-request-progress i { width: 11px; height: 1px; background: var(--nhc-line); }
.nhc-request-dialog form { padding: 0 30px 24px; }
.nhc-request-step[hidden], .nhc-request-actions[hidden], .nhc-request-choices[hidden], .nhc-request-message[hidden] { display: none !important; }
.nhc-request-step-head { display: grid; gap: 2px; margin-bottom: 14px; }
.nhc-request-step-head > span { color: var(--nhc-accent); font: 700 10px/1.8 Tahoma,sans-serif; }
.nhc-request-step-head h3 { color: var(--nhc-text); font-size: 17px; line-height: 1.7; margin: 0; }
.nhc-request-step-head p { color: var(--nhc-muted); font-size: 12px; margin: 3px 0; }
.nhc-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.nhc-service-card { position: relative; min-width: 0; min-height: 155px; border: 1px solid var(--nhc-line); border-radius: 17px; background: var(--nhc-surface); overflow: hidden; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.nhc-service-card:hover { border-color: #7bbcff; transform: translateY(-2px); }
.nhc-service-card:has(input:checked) { border-color: #63b5ff; background: rgba(27,108,215,.2); box-shadow: inset 0 0 0 1px rgba(99,181,255,.45); }
.nhc-service-card:has(input:focus-visible) { outline: 3px solid #79baff; outline-offset: 2px; }
.nhc-service-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nhc-service-media { display: grid; place-items: center; aspect-ratio: 3/2; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 35%,rgba(36,131,238,.18),transparent 65%),rgba(2,17,36,.25); }
.nhc-service-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 8px 10px; }
.nhc-service-caption strong { min-width: 0; font-size: 12px; font-weight: 750; line-height: 1.5; color: var(--nhc-text); }
.nhc-service-check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1px solid var(--nhc-line); border-radius: 7px; color: transparent; font-size: 11px; }
.nhc-service-card:has(input:checked) .nhc-service-check { border-color: #66aeff; color: #fff; background: #1677ff; }
.nhc-request-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; align-items: start; min-height: 230px; }
.nhc-request-dialog fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.nhc-request-dialog legend { font-size: 12.5px; color: var(--nhc-text); font-weight: 750; margin-bottom: 12px; }
.nhc-request-dialog legend small { color: var(--nhc-muted); font-size: 10px; font-weight: normal; }
.nhc-request-choice-box, .nhc-request-contact-box { padding: 17px !important; border: 1px solid var(--nhc-line) !important; border-radius: 17px; background: var(--nhc-surface); }
.nhc-request-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nhc-request-choices label, .nhc-request-contact-box fieldset > label { display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 9px; border: 1px solid var(--nhc-line); border-radius: 11px; color: var(--nhc-text); background: rgba(130,176,228,.04); font-size: 12px; cursor: pointer; }
.nhc-request-choices label:has(input:checked), .nhc-request-contact-box fieldset > label:has(input:checked) { background: rgba(38,121,227,.17); border-color: #69affc; }
.nhc-request-dialog input:is([type='checkbox'],[type='radio']) { accent-color: #1677ff; width: 16px; height: 16px; flex: none; }
.nhc-request-selects { display: grid; gap: 15px; }
.nhc-request-selects > label, .nhc-request-contact-label { display: grid; gap: 8px; color: var(--nhc-text); font-size: 12px; font-weight: 750; }
.nhc-request-dialog :is(select,input[name='request_contact']) { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid var(--nhc-line); border-radius: 12px; color: var(--nhc-text); background: var(--nhc-surface); font-family: inherit; font-weight: 500; font-size: 13px; line-height: 1.5; }
.nhc-request-dialog select { font-family: inherit; cursor: pointer; }
.nhc-request-dialog select option { background: #182c46; color: #fff; }
.nhc-request-dialog :is(select,input[name='request_contact']):focus-visible { outline: 2px solid var(--nhc-accent); outline-offset: 2px; }
.nhc-request-contact-box { width: min(540px,100%); margin-inline: auto; }
.nhc-request-contact-box fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 17px; }
.nhc-request-contact-box fieldset legend { grid-column: 1/-1; }
.nhc-request-contact-label input { text-align: left; unicode-bidi: plaintext; font-family: system-ui,Tahoma,sans-serif; }
.nhc-request-contact-label small { color: var(--nhc-muted); font-weight: normal; font-size: 11px; }
.nhc-request-privacy { color: var(--nhc-muted); font-size: 11px; line-height: 1.85; margin: 14px 0 0; }
.nhc-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; pointer-events: none !important; }
.nhc-request-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--nhc-line); padding-top: 18px; margin-top: 19px; }
.nhc-request-actions [data-nhc-request-count] { color: var(--nhc-muted); font-size: 11px; margin-inline-start: auto; }
.nhc-request-actions button { min-height: 44px; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--nhc-line); font-family: inherit; font-weight: 750; font-size: 12px; cursor: pointer; }
.nhc-request-back { color: var(--nhc-text); background: var(--nhc-surface); }
.nhc-request-next, .nhc-request-submit { color: #fff; background: #176efa; border-color: #439bff !important; }
.nhc-request-actions button:disabled { opacity: .6; cursor: progress; }
.nhc-request-message { padding: 14px 16px; margin-top: 16px; border: 1px solid rgba(105,178,255,.4); border-radius: 13px; background: rgba(29,111,204,.12); color: var(--nhc-text); font-size: 12px; line-height: 1.9; }
.nhc-request-message.is-error { border-color: #e99d9d; background: rgba(170,58,58,.1); }
.nhc-request-message.is-success { font-size: 15px; margin: 15px 0 22px; padding: 30px; text-align: center; }
html[data-nh-theme='light'] .nhc-request-dialog .nhc-service-media { background: radial-gradient(circle at 50% 35%,rgba(36,131,238,.13),transparent 65%), #dbeafc; }
html[data-nh-theme='light'] .nhc-request-dialog select option { background: #f1f6fc; color: #20374f; }
html[data-nh-theme='light'] .nhc-request-dialog .nhc-service-card:has(input:checked) { background: #e0edff; }
@media (max-width: 780px) {
  .nhc-request-intro { padding: 21px 22px 14px; }
  .nhc-request-dialog form { padding: 0 22px 22px; }
  .nhc-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nhc-request-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body.nahang-template-digital .nhd-header .nhd-tools { gap: 3px; }
  body.nahang-template-digital .nhd-header :is(.nhd-account-shortcut,.nhd-cart-shortcut) { width: 39px; min-width: 39px; height: 39px; min-height: 39px; padding: 8px; border-radius: 11px; }
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger { min-height: 39px; height: 39px; padding: 6px 8px; gap: 5px; font-size: 10.5px; border-radius: 11px; }
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger::before { width: 19px; height: 19px; font-size: 16px; }
  .nhc-request-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 19px; }
  .nhc-request-dialog .nhc-dialog-top { padding: 12px 15px; }
  .nhc-request-intro { align-items: flex-start; flex-direction: column-reverse; gap: 10px; padding: 17px 16px 13px; }
  .nhc-request-intro h2 { font-size: 22px; }
  .nhc-request-intro p { font-size: 11px; }
  .nhc-request-dialog form { padding: 0 15px 18px; }
  .nhc-service-grid { gap: 7px; }
  .nhc-service-card { min-height: 126px; border-radius: 13px; }
  .nhc-service-caption { min-height: 42px; padding: 7px 8px; }
  .nhc-service-caption strong { font-size: 11px; }
  .nhc-request-choices { gap: 6px; }
  .nhc-request-choices label { min-height: 45px; padding: 7px; font-size: 11px; }
  .nhc-request-choice-box, .nhc-request-contact-box { padding: 12px !important; }
  .nhc-request-actions { padding-top: 13px; margin-top: 13px; gap: 5px; }
  .nhc-request-actions button { min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .nhc-request-actions [data-nhc-request-count] { font-size: 10px; }
}
@media (max-width: 385px) {
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger { font-size: 10px; padding-inline: 6px; }
  .nhc-request-progress span { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .nhc-request-dialog .nhc-service-card, body.nahang-template-digital .nhd-header .nhc-new-request-trigger { transition: none !important; }
}

/* v1.2.1 refined service selector: product-like visual media, understated
   category numbering and consistent typography instead of oversized icons. */
.nhc-service-grid { counter-reset: nhc-service; }
.nhc-service-card {
  counter-increment: nhc-service;
  --nhc-card-accent: #65b8ff;
}
.nhc-service-card:nth-child(3n + 2) { --nhc-card-accent: #7da5ff; }
.nhc-service-card:nth-child(3n + 3) { --nhc-card-accent: #53c5cd; }
.nhc-service-media { position: relative; isolation: isolate; background: radial-gradient(circle at 48% 54%,color-mix(in srgb,var(--nhc-card-accent) 19%,transparent),transparent 70%),rgba(7,23,43,.16); }
.nhc-service-media::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(111,175,241,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(111,175,241,.055) 1px,transparent 1px);
  background-size: 27px 27px; mask-image: linear-gradient(to bottom,transparent 4%,#000 90%);
}
.nhc-service-card::after {
  content: counter(nhc-service, decimal-leading-zero); position: absolute;
  top: 9px; inset-inline-end: 11px; z-index: 2;
  color: var(--nhc-card-accent); opacity: .8;
  font: 600 10px/1.4 ui-monospace,SFMono-Regular,monospace;
  pointer-events: none;
}
.nhc-service-card:has(input:checked) .nhc-service-media { background-color: rgba(32,104,192,.16); }
.nhc-service-caption { border-top: 1px solid var(--nhc-line); }
.nhc-service-caption strong { font-size: 12px; letter-spacing: -.012em; }
.nhc-request-dialog .nhc-close { width: 39px; height: 39px; border-radius: 12px; }
.nhc-request-progress span { border-radius: 999px; }
.nhc-request-progress span.is-complete { background: rgba(29,111,218,.23); color: var(--nhc-accent); border-color: rgba(91,171,255,.4); }
.nhc-request-message.is-success::before { content: '✓'; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #176efa; color: #fff; font-size: 20px; margin: 0 auto 11px; }
@media (max-width: 620px) {
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
    width: 39px; min-width: 39px; max-width: 39px; flex: 0 0 39px;
    overflow: hidden; white-space: nowrap; font-size: 0 !important; justify-content: center;
  }
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger::before {
    width: 23px; height: 23px; flex: 0 0 23px; font-size: 19px;
  }
  .nhc-request-intro { gap: 9px; padding: 13px 16px 10px; }
  .nhc-request-intro h2 { font-size: clamp(20px,5vw,24px); line-height: 1.45; margin: 3px 0; }
  .nhc-request-intro p { font-size: 11px; line-height: 1.75; }
  .nhc-request-eyebrow { font-size: 10px; }
  .nhc-request-step-head { margin-bottom: 9px; }
  .nhc-request-step-head h3 { font-size: 16px; line-height: 1.5; }
  .nhc-service-grid { gap: 8px; }
  .nhc-service-card { min-height: 0; }
  .nhc-service-media { aspect-ratio: 1.7; }
  .nhc-service-caption { min-height: 48px; height: 48px; overflow: hidden; padding: 7px 10px; }
  .nhc-service-caption strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11px; line-height: 1.45; }
  .nhc-request-actions { position: sticky; bottom: -18px; z-index: 3; padding: 11px 0 0; background: var(--nhc-dialog-action-bg,var(--nhc-surface)); }
}
html[data-nh-theme='light'] .nhc-request-dialog { --nhc-dialog-action-bg: #eff6ff; }

/* v1.3 — all eight wizard choices use local vector icons (no media requests). */
.nhc-service-media { aspect-ratio: 1.8; min-height: 92px; }
.nhc-service-media::before { opacity: .75; }
.nhc-service-mark {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: clamp(60px,6.1vw,78px); aspect-ratio: 1; border-radius: 23px;
  color: var(--nhc-card-accent); background: linear-gradient(150deg,rgba(112,172,250,.2),rgba(8,30,66,.26));
  border: 1px solid color-mix(in srgb,var(--nhc-card-accent) 28%,transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.11),0 13px 24px rgba(3,14,34,.13);
  transition: transform .18s ease,background-color .18s ease;
}
.nhc-service-mark::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(147,194,249,.1); border-radius: 17px; pointer-events: none; }
.nhc-service-mark svg { width: 39px; height: 39px; stroke-width: 1.35; }
.nhc-service-card:hover .nhc-service-mark, .nhc-service-card:has(input:checked) .nhc-service-mark { transform: translateY(-2px); background-color: rgba(39,113,206,.17); }
.nhc-service-card:has(input:checked) .nhc-service-mark { border-color: var(--nhc-card-accent); }
.nhc-service-card--hardware { --nhc-card-accent: #77b9ff; }
.nhc-service-card--laptop { --nhc-card-accent: #99bcff; }
.nhc-service-card--network { --nhc-card-accent: #6bd4e3; }
.nhc-service-card--web { --nhc-card-accent: #8fc2ff; }
.nhc-service-card--software { --nhc-card-accent: #9eafff; }
.nhc-service-card--seo { --nhc-card-accent: #55d2af; }
.nhc-service-card--purchase { --nhc-card-accent: #82bfff; }
.nhc-service-card--consulting { --nhc-card-accent: #a4a8ff; }
html[data-nh-theme='light'] .nhc-service-mark { background: linear-gradient(150deg,rgba(255,255,255,.77),rgba(140,186,245,.17)); box-shadow: inset 0 1px rgba(255,255,255,.9),0 8px 22px rgba(27,74,127,.1); }
@media (max-width: 620px) {
  .nhc-service-media { aspect-ratio: 1.9; min-height: 78px; }
  .nhc-service-mark { width: 63px; border-radius: 20px; }
  .nhc-service-mark svg { width: 34px; height: 34px; }
  .nhc-service-card::after { top: 7px; inset-inline-end: 9px; }
}
@media (prefers-reduced-motion: reduce) { .nhc-service-mark { transition: none; } }

/* Primary Nahang CTA: service + new request symbol, visually distinct. */
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; min-height: 43px; height: 43px; width: auto; max-width: none;
  padding: 5px 13px 5px 10px; border-radius: 13px;
  border: 1px solid #52aaff; background: linear-gradient(140deg,#137dff,#055bd8);
  color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.24),0 7px 17px rgba(8,90,220,.21);
  text-decoration: none; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  transition: background-color .17s ease,box-shadow .17s ease,transform .17s ease;
}
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger::before { content: none !important; display: none !important; }
body.nahang-template-digital .nhd-header .nhc-new-request-trigger .nhc-cta-icon {
  display: grid; place-items: center; flex: 0 0 27px;
  width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.26);
  border-radius: 9px; background: rgba(255,255,255,.13); color: #fff;
}
body.nahang-template-digital .nhd-header .nhc-new-request-trigger .nhc-cta-icon svg { display: block; width: 19px; height: 19px; }
body.nahang-template-digital .nhd-header .nhc-new-request-trigger .nhc-cta-text { display: block; line-height: 1.4; white-space: nowrap; }
body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger:hover {
  background: linear-gradient(140deg,#2794ff,#0868ea); border-color: #8ccfff;
  box-shadow: inset 0 1px rgba(255,255,255,.3),0 9px 22px rgba(13,106,231,.32);
  transform: translateY(-1px); color: #fff;
}
body.nahang-template-digital .nhd-header .nhc-new-request-trigger:focus-visible { outline: 3px solid #a3d5ff; outline-offset: 2px; }
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
  color: #fff; background: linear-gradient(140deg,#177fff,#0962db); border-color: #2477df;
}
html[data-nh-theme='light'] body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger:hover {
  background: linear-gradient(140deg,#2e97ff,#0b6de8); border-color: #1878e0;
  box-shadow: inset 0 1px rgba(255,255,255,.36),0 9px 19px rgba(15,103,209,.2);
}
@media (max-width: 620px) {
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger {
    width: 42px; min-width: 42px; max-width: 42px; flex: 0 0 42px;
    height: 42px; min-height: 42px; padding: 5px; border-radius: 13px;
  }
  body.nahang-template-digital .nhd-header .nhc-new-request-trigger .nhc-cta-icon { width: 29px; height: 29px; flex-basis: 29px; border-color: rgba(255,255,255,.16); }
  body.nahang-template-digital .nhd-header .nhc-new-request-trigger .nhc-cta-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger { transition: none; }
  body.nahang-template-digital .nhd-header .nhd-header-request.nhc-new-request-trigger:hover { transform: none; }
}

/* Nahang Knowledge integration. Source templates, taxonomy and post data stay
   owned by Nahang Knowledge; this layer resolves theme and viewport drift. */
html[data-nh-theme='light'] body.nahang-magazine-active { background: #f4f8fd; }
html[data-nh-theme='light'] body.nahang-magazine-active .nhk-root {
  --nhk-bg: #f4f8fd;
  --nhk-bg-2: #eaf2fa;
  --nhk-surface: #fff;
  --nhk-surface-2: #f7faff;
  --nhk-text: #142944;
  --nhk-text-soft: #263c55;
  --nhk-muted: #50657f;
  --nhk-muted-2: #647791;
  --nhk-line: rgba(31,76,126,.16);
  --nhk-line-strong: rgba(31,76,126,.24);
  --nhk-glass: rgba(255,255,255,.88);
  --nhk-glass-strong: rgba(253,254,255,.97);
  --nhk-glass-highlight: rgba(255,255,255,.87);
  --nhk-shadow: 0 18px 56px rgba(26,64,105,.12);
  --nhk-shadow-soft: 0 10px 29px rgba(24,57,93,.07);
  color-scheme: light;
  background: var(--nhk-bg); color: var(--nhk-text);
}
html[data-nh-theme='light'] body.nahang-magazine-active .nhd-header {
  background: rgba(248,251,255,.96);
  border-color: rgba(32,87,149,.16);
  color: #182e49;
}
html[data-nh-theme='light'] body.nahang-magazine-active .nhd-header :is(.nhd-brand,.nhd-primary a,.nhd-explore-toggle,.nahang-icon-button,.nhd-header-search .nhd-search-submit) {
  color: #172f4d;
}
html[data-nh-theme='light'] body.nahang-magazine-active .nhd-header .nhd-header-search {
  color: #172f4d; background: #f3f8ff; border-color: rgba(30,86,150,.2);
}
html[data-nh-theme='light'] body.nahang-magazine-active .nhd-header .nhd-header-search input { color: #172f4d; }

.nhk-root :is(.nhk-masthead h1,.nhk-section-head h2,.nhk-article-hero__copy h1,.nhk-feature__copy h2) {
  text-wrap: pretty; line-height: 1.46; overflow-wrap: break-word;
}
.nhk-root .nhk-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  line-height: 1.7; margin-bottom: 25px; color: var(--nhk-muted);
}
.nhk-root .nhk-breadcrumb a { color: var(--nhk-muted); text-decoration: none; white-space: normal; }
.nhk-root .nhk-breadcrumb a:hover { color: var(--nhk-accent); }
.nhk-root .nhk-topicbar {
  min-width: 0; gap: 5px; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.nhk-root .nhk-topicbar a { scroll-snap-align: start; flex: none; line-height: 1.5; }
.nhk-root .nhk-filterbar { min-width: 0; }
.nhk-root .nhk-filterbar__types { min-width: 0; flex: 1 1 auto; gap: 5px; overscroll-behavior-x: contain; }
.nhk-root .nhk-filterbar__types > * { flex: none; white-space: nowrap; }
.nhk-root .nhk-field-list {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;
}
.nhk-root .nhk-field-row {
  display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center;
  min-height: 76px; padding: 12px 15px; gap: 10px;
  border-radius: 15px; text-align: right; min-width: 0;
}
.nhk-root .nhk-field-row .nhk-no { grid-column: 1; font-size: 10px; }
.nhk-root .nhk-field-row strong { grid-column: 2; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.nhk-root .nhk-field-row small { display: none; }
.nhk-root .nhk-field-row b { display: none; }
.nhk-root .nhk-field-row i { grid-column: 3; font-size: 16px; }
.nhk-root .nhk-field-row:is(:focus-visible,:hover) { border-color: color-mix(in srgb,var(--nhk-accent) 40%,var(--nhk-line)); }
.nhk-root :is(.nhk-feature__visual,.nhk-mag-card__media,.nhk-article-visual,.nhk-related-card__media) {
  aspect-ratio: 16/9; background: radial-gradient(circle at 48% 38%,rgba(58,133,230,.12),transparent 70%),var(--nhk-surface-2);
}
.nhk-root :is(.nhk-feature__visual,.nhk-mag-card__media,.nhk-article-visual,.nhk-related-card__media) img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.nhk-root .nhk-article-body figure img { max-width: 100%; height: auto; object-fit: contain; }
.nhk-root .nhk-article-body :is(h2,h3) { scroll-margin-top: 100px; }
.nhk-root .nhk-side-card { border-radius: 18px; }
.nhk-root .nhk-toc-card a { min-height: 36px; line-height: 1.6; }
@media (max-width: 1024px) {
  .nhk-root .nhk-field-list { grid-template-columns: 1fr; }
  .nhk-root .nhk-section-block { padding-top: 52px; padding-bottom: 52px; }
  .nhk-root .nhk-section-head { margin-bottom: 22px; }
  .nhk-root .nhk-feature { gap: 22px; padding-block: 42px 54px; }
}
@media (max-width: 760px) {
  .nhk-root .nhk-shell { width: calc(100% - 28px); }
  .nhk-root .nhk-masthead { padding-top: 26px; }
  .nhk-root .nhk-masthead__top { gap: 16px; padding-bottom: 23px; }
  .nhk-root .nhk-masthead h1 { font-size: clamp(29px,8vw,38px); line-height: 1.35; margin: 7px 0 13px; }
  .nhk-root .nhk-masthead p { font-size: 13px; line-height: 1.85; }
  .nhk-root .nhk-topicbar { margin-inline: -14px; padding-inline: 14px; min-height: 51px; }
  .nhk-root .nhk-topicbar a { font-size: 12px; padding: 9px 11px; }
  .nhk-root .nhk-filterbar { gap: 8px; padding: 8px 10px; min-height: 48px; }
  .nhk-root .nhk-filterbar__types > span { display: none; }
  .nhk-root .nhk-filterbar a { padding: 8px 10px; font-size: 11px; line-height: 1.4; }
  .nhk-root .nhk-field-list { grid-template-columns: 1fr; gap: 7px; }
  .nhk-root .nhk-field-row { grid-template-columns: 22px minmax(0,1fr) 16px; min-height: 60px; padding: 10px 13px; }
  .nhk-root .nhk-field-row strong { font-size: 12.5px; line-height: 1.55; }
  .nhk-root .nhk-section-head h2 { font-size: clamp(23px,6vw,30px); }
  .nhk-root .nhk-magazine-grid { gap: 12px; }
  .nhk-root .nhk-mag-card__body { padding: 15px 16px; }
  .nhk-root .nhk-mag-card h3 { font-size: 18px; line-height: 1.65; }
  .nhk-root .nhk-breadcrumb { gap: 5px 8px; font-size: 11px; margin-bottom: 19px; }
  .nhk-root .nhk-article-hero { padding-top: 24px; padding-bottom: 34px; }
  .nhk-root .nhk-article-hero__grid { gap: 20px; }
  .nhk-root .nhk-article-hero__copy h1 { font-size: clamp(25px,6.5vw,31px); line-height: 1.5; }
  .nhk-root .nhk-article-body { font-size: 15px; line-height: 2.03; }
  .nhk-root .nhk-article-body h2 { font-size: 24px; line-height: 1.55; }
  .nhk-root .nhk-article-body h3 { font-size: 20px; line-height: 1.6; }
  .nhk-root .nhk-article-layout { padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .nhk-root .nhk-field-row { transition: none; }
}

/* v1.3.0: right-side commerce navigation, bound to the live WooCommerce cart. */
.nhc-cart-drawer {
  --nhc-cart-bg: #08192b; --nhc-cart-surface: #10253e; --nhc-cart-text: #f2f7ff;
  --nhc-cart-muted: #a4bbd5; --nhc-cart-line: rgba(137,185,249,.21);
  position: fixed; inset: 0 0 0 auto; margin: 0; box-sizing: border-box;
  padding: 0; width: min(435px,100vw); max-width: none; height: 100dvh; max-height: none;
  border: 0; border-inline-start: 1px solid var(--nhc-cart-line); border-radius: 22px 0 0 22px;
  color: var(--nhc-cart-text); background: radial-gradient(ellipse at 92% -5%,rgba(20,117,240,.24),transparent 52%),var(--nhc-cart-bg);
  font-family: Vazir,Vazirmatn,Tahoma,sans-serif; text-align: right;
  box-shadow: -22px 0 70px rgba(0,7,22,.34); overflow: hidden;
}
.nhc-cart-drawer:not([open]) { display: none; }
.nhc-cart-drawer[open] { animation: nhc-cart-reveal .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes nhc-cart-reveal { from { transform: translateX(100%); opacity:.82; } to { transform: translateX(0); opacity:1; } }
.nhc-cart-drawer::backdrop { background: rgba(2,8,20,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nhc-cart-drawer * { box-sizing: border-box; }
.nhc-cart-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
.nhc-cart-top { display:flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 23px 22px 18px; border-bottom: 1px solid var(--nhc-cart-line); flex: none; }
.nhc-cart-kicker { color: #76baff; font: 650 10px/1.6 system-ui,sans-serif; letter-spacing: .15em; }
.nhc-cart-top h2 { display: flex; align-items: center; gap: 11px; color: var(--nhc-cart-text); margin: 5px 0 3px; font-size: 24px; line-height: 1.55; }
.nhc-cart-top h2 small { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; font: 700 12px/1 system-ui,sans-serif; border: 1px solid var(--nhc-cart-line); color: #9ed2ff; background: rgba(68,143,236,.13); border-radius: 9px; }
.nhc-cart-top p { color: var(--nhc-cart-muted); font-size: 11px; margin: 0; }
.nhc-cart-close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--nhc-cart-text); border: 1px solid var(--nhc-cart-line); border-radius: 13px; background: rgba(130,181,249,.065); cursor: pointer; }
.nhc-cart-close svg { width: 21px; height: 21px; }
.nhc-cart-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 7px; margin: 15px 18px 8px; flex: none; }
.nhc-cart-links a { min-height: 70px; min-width: 0; padding: 11px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--nhc-cart-line); border-radius: 14px; background: var(--nhc-cart-surface); color: var(--nhc-cart-text); text-decoration: none; text-align: center; font-size: 11px; line-height: 1.55; white-space: nowrap; }
.nhc-cart-links a:hover { border-color: #70b2f4; background: rgba(34,88,150,.42); }
.nhc-cart-links svg { width: 21px; height: 21px; color: #83c5ff; }
.nhc-cart-content { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 12px 18px 20px; }
.nhc-cart-loading { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; font-size: 12px; color: var(--nhc-cart-muted); }
.nhc-cart-spinner { width: 26px; height: 26px; border: 2px solid rgba(136,188,246,.2); border-top-color: #70baff; border-radius: 50%; animation: nhc-cart-spin .8s linear infinite; }
@keyframes nhc-cart-spin { to { transform: rotate(360deg); } }
.nhc-cart-empty { min-height: 265px; padding: 35px 24px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed var(--nhc-cart-line); border-radius: 20px; background: linear-gradient(145deg,rgba(69,141,234,.12),rgba(23,52,89,.08)); }
.nhc-cart-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; margin-bottom: 18px; background: rgba(45,128,230,.16); color: #8bceff; border: 1px solid var(--nhc-cart-line); }
.nhc-cart-empty-icon svg { width: 31px; height: 31px; }
.nhc-cart-empty strong { font-size: 17px; color: var(--nhc-cart-text); }
.nhc-cart-empty p { margin: 8px 0 20px; max-width: 30ch; font-size: 12px; color: var(--nhc-cart-muted); line-height: 1.9; }
.nhc-cart-empty > a { display:inline-flex;align-items:center;gap:7px;padding:10px 15px;min-height:43px;border:1px solid #4392ed;border-radius:12px;color:#fff;background:#1677ef;text-decoration:none;font-size:12px;font-weight:750; }
.nhc-cart-empty > a svg { width: 16px; height: 16px; }
.nhc-cart-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nhc-cart-item { display: grid; grid-template-columns: 68px minmax(0,1fr) 32px; align-items: center; gap: 12px; padding: 12px; background: var(--nhc-cart-surface); border: 1px solid var(--nhc-cart-line); border-radius: 16px; }
.nhc-cart-item-image { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: rgba(121,166,211,.1); }
.nhc-cart-item-image img { max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.nhc-cart-item-info { min-width: 0; display: grid; gap: 7px; }
.nhc-cart-product-name { color: var(--nhc-cart-text); font-size: 12px; font-weight: 750; line-height: 1.7; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nhc-cart-item-info small { font-size: 11px; color: var(--nhc-cart-muted); }
.nhc-cart-remove { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--nhc-cart-line); border-radius: 10px; background: transparent; color: #f1a4ac; font: 700 20px/1 system-ui; cursor: pointer; }
.nhc-cart-error { padding: 20px; margin-top: 12px; text-align: center; border: 1px solid rgba(242,157,157,.36); border-radius: 15px; color: var(--nhc-cart-text); }
.nhc-cart-error p { font-size: 12px; line-height: 1.8; color: var(--nhc-cart-muted); }
.nhc-cart-error button { padding: 9px 15px; border: 1px solid var(--nhc-cart-line); border-radius: 10px; background: var(--nhc-cart-surface); color: inherit; cursor: pointer; }
.nhc-cart-bottom { flex: none; padding: 16px 18px max(19px,env(safe-area-inset-bottom)); border-top: 1px solid var(--nhc-cart-line); background: rgba(8,25,44,.94); }
.nhc-cart-total { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;color:var(--nhc-cart-muted);font-size:12px; }
.nhc-cart-total strong { color: var(--nhc-cart-text); font-size: 16px; }
.nhc-cart-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nhc-cart-ctas a { display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:47px;padding:9px 7px;border-radius:13px;text-decoration:none;text-align:center;font-weight:750;font-size:12px;white-space:nowrap; }
.nhc-cart-ctas svg { width: 18px; height: 18px; flex: none; }
.nhc-cart-secondary { border: 1px solid var(--nhc-cart-line); background: var(--nhc-cart-surface); color: var(--nhc-cart-text); }
.nhc-cart-primary { border: 1px solid #4a98f4; background: #1677f6; color: #fff; }
.nhc-cart-primary.is-disabled { opacity: .45; cursor: not-allowed; }
.nhc-cart-drawer :is(a,button):focus-visible { outline: 3px solid #80c5ff; outline-offset: 3px; }
body.nhc-cart-open { overflow: hidden; }
html[data-nh-theme='light'] .nhc-cart-drawer { --nhc-cart-bg:#f6f9fe; --nhc-cart-surface:#fff; --nhc-cart-text:#1a314e; --nhc-cart-muted:#586d87; --nhc-cart-line:rgba(39,101,170,.18); background: radial-gradient(ellipse at 90% -10%,#deedff,transparent 50%),var(--nhc-cart-bg); }
html[data-nh-theme='light'] .nhc-cart-bottom { background: rgba(246,250,255,.97); }
html[data-nh-theme='light'] .nhc-cart-secondary { background: #eef5ff; }
html[data-nh-theme='light'] .nhc-cart-links a:hover { background: #e7f2ff; }
@media (max-width: 620px) {
  .nhc-cart-drawer { width: min(420px,100vw); border-radius: 0; }
  .nhc-cart-top { padding: max(17px,env(safe-area-inset-top)) 17px 15px; }
  .nhc-cart-top h2 { font-size: 22px; }
  .nhc-cart-links { margin: 13px 12px 5px; }
  .nhc-cart-links a { min-height: 65px; font-size: 10.5px; }
  .nhc-cart-content { padding: 11px 12px 17px; }
  .nhc-cart-bottom { padding-inline: 12px; }
}
@media (max-width: 760px) { body.nahang-template-digital .nhd-header .nhd-tools .nhc-header-commerce-extra { display: none !important; } }
@media (prefers-reduced-motion:reduce) { .nhc-cart-drawer[open],.nhc-cart-spinner { animation:none; } }

/* Home / first fold: a small, reversible polish layer over Digital's native hero.
 * The native slider owns timing, focus/hover pausing, pointers, swipe, images and
 * the aria-live announcement. Keep all of those handlers and assets untouched. */
.nhp-app .nhp-hero {
  scroll-margin-block-start: clamp(72px, 7vw, 96px);
}

.nhp-app .nhp-hero :is(.nhp-stage, .nhp-copy, .nhp-copy-track, .nhp-copy-slide, .nhp-actions, .nhp-art) {
  min-inline-size: 0;
}

.nhp-app .nhp-hero .nhp-copy :is(h1, h2) {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.nhp-app .nhp-hero .nhp-description {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.nhp-app .nhp-hero .nhp-button {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  flex-shrink: 0;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nhp-app .nhp-hero .nhp-button .nhp-icon {
  flex: none;
}

.nhp-app .nhp-hero :is(.nhp-control, .nhp-progress) {
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.nhp-app .nhp-hero :is(.nhp-button, .nhp-control, .nhp-progress):focus-visible {
  outline: 3px solid #62b9ff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgb(10 32 64 / .6);
}

.nhp-app .nhp-hero .nhp-progress[aria-current="true"]:before {
  background: rgb(49 146 255 / .33);
}

@media (hover: hover) and (pointer: fine) {
  .nhp-app .nhp-hero .nhp-button:hover {
    transform: translateY(-2px);
  }

  .nhp-app .nhp-hero .nhp-control:hover {
    transform: translateY(-1px);
  }

  .nhp-app .nhp-hero .nhp-progress:hover:before {
    background: rgb(67 157 247 / .36);
  }
}

@media (hover: none), (pointer: coarse) {
  .nhp-app .nhp-hero :is(.nhp-button, .nhp-control):hover {
    transform: none;
  }

  .nhp-app .nhp-hero .nhp-button:active {
    filter: brightness(1.07);
  }

  .nhp-app .nhp-hero .nhp-control:active {
    border-color: var(--nhp-brand);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .nhp-app .nhp-hero .nhp-stage {
    gap: clamp(16px, 2.5vw, 28px);
  }

  .nhp-app .nhp-hero .nhp-actions {
    gap: 10px;
  }

  .nhp-app .nhp-hero .nhp-button {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .nhp-app .nhp-hero .nhp-stage {
    padding-inline: clamp(16px, 5.5vw, 24px);
    padding-block-start: clamp(22px, 4.2vh, 32px);
    gap: clamp(16px, 4.4vw, 24px);
  }

  .nhp-app .nhp-hero .nhp-copy :is(h1, h2) {
    font-size: clamp(30px, 8.2vw, 46px);
    line-height: 1.25;
    margin-block-end: 14px;
  }

  .nhp-app .nhp-hero .nhp-description {
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.8;
    min-height: 5.4em;
  }

  .nhp-app .nhp-hero .nhp-actions {
    margin-block-start: clamp(14px, 3.6vw, 22px);
    gap: 8px;
    align-items: stretch;
  }

  .nhp-app .nhp-hero .nhp-button {
    flex: 1 1 122px;
    min-height: 46px;
    padding: 10px clamp(8px, 2.6vw, 13px);
    gap: clamp(5px, 1.5vw, 9px);
    font-size: clamp(11px, 3.05vw, 13px);
  }

  .nhp-app .nhp-hero .nhp-controls {
    margin-block-start: 16px;
    gap: clamp(4px, 1.5vw, 8px);
  }

  .nhp-app .nhp-hero .nhp-progress {
    min-height: 44px;
  }
}

@media (max-width: 350px) {
  .nhp-app .nhp-hero .nhp-actions .nhp-button {
    flex-basis: 100%;
    font-size: 12px;
  }

  .nhp-app .nhp-hero .nhp-controls {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nhp-app .nhp-hero :is(.nhp-button, .nhp-control, .nhp-progress, .nhp-progress > span) {
    transition: none !important;
  }

  .nhp-app .nhp-hero .nhp-type-text:after {
    animation: none !important;
  }

  .nhp-app .nhp-hero :is(.nhp-button, .nhp-control):hover {
    transform: none;
  }
}
