/* v17.7.0: industry guides (/ai-for-<trade>/ and /guides/) */
.bng { position: relative; z-index: 1; }
.bng h1, .bng h2, .bng h3 { font-family: var(--display); }
.bng h1 i, .bng h2 i { color: var(--ion); }

/* Hero */
.bng-hero { position: relative; text-align: center; padding-block: clamp(36px, 7vw, 84px) 28px; }
.bng-hero::before { content: ""; position: absolute; inset: 0 8% auto; height: 380px; background: radial-gradient(ellipse at center, rgba(90, 168, 255, 0.2), rgba(140, 242, 255, 0.05) 45%, transparent 70%); pointer-events: none; }
.bng-hero .bn-wrap { display: grid; gap: 16px; justify-items: center; }
.bng-hero h1 { font-size: clamp(44px, 7.5vw, 88px); line-height: 1; }
.bng-lede { max-width: 680px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.bng-crumb { font-size: 13px; color: var(--muted); text-decoration: none; }
.bng-crumb:hover { color: var(--ink); }
.bng-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 6px; }
.bng-hero-actions .bn-btn-ghost { padding: 13px 22px; text-decoration: none; }
.bng-by { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.bng-figure figure { margin: 0 auto; max-width: 1080px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 120px -30px rgba(90, 168, 255, 0.7); }
.bng-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Body */
.bng-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: clamp(32px, 6vw, 64px) 24px; }
.bng-body { width: 100%; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; }
.bn .bng-body > * + * { margin-top: 18px; }
.bn .bng-body h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; margin-top: 56px; }
.bn .bng-body > h2:first-child { margin-top: 0; }
.bn .bng-body h2 + * { margin-top: 14px; }
.bng-body h3 { font-size: 26px; }
.bng-body p { color: #cdd6ec; }
.bng-body strong { color: var(--ink); }
.bng-body a { color: var(--ion); }
.bng-body ol, .bng-body ul { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.bng-body ol > li { position: relative; padding: 14px 16px 14px 56px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: #cdd6ec; }
.bng-body ol > li::before { content: counter(list-item); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--void); background: linear-gradient(180deg, var(--core), var(--ion)); }
.bng-body ul > li { position: relative; padding-left: 24px; color: #cdd6ec; }
.bng-body ul > li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 10px var(--plasma); }

.bng-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); -webkit-overflow-scrolling: touch; }
.bng-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.bng-body th, .bng-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bng-body th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ion); font-weight: 500; white-space: nowrap; }
.bng-body tr:last-child td { border-bottom: 0; }
.bng-table:has(th:nth-child(5)) td:first-child { font-family: var(--mono); color: var(--muted); }
.bng-table:has(th:nth-child(5)) td:nth-child(2) { font-weight: 700; color: var(--ink); }
.bng-table:not(:has(th:nth-child(4))) td:nth-child(2) { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.bng-table:not(:has(th:nth-child(4))) td:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.bng-table:not(:has(th:nth-child(4))) tr:last-child td:last-child { color: var(--flare); }
.bng-table:has(th:nth-child(5)) table { min-width: 640px; }

/* Flow */
.bng-flow { margin: 28px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(90, 168, 255, .08), rgba(16, 26, 52, .5)); display: grid; gap: 14px; }
.bng-flow figcaption { font-family: var(--display); font-size: 24px; line-height: 1.15; color: var(--ink); }
.bng-flow-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bng-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 0; margin: 0; list-style: none; }
.bng-flow ol > li { position: relative; display: grid; gap: 2px; padding: 12px 12px 12px 12px; background: rgba(4, 6, 13, .55); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.35; }
.bng-flow ol > li::before { display: none; }
.bng-flow ol > li b { color: var(--ink); font-size: 14.5px; }
.bng-flow ol > li span { color: var(--muted); }
.bng-flow ol > li.is-key { border-color: var(--ion); background: rgba(140, 242, 255, .1); box-shadow: 0 0 24px -8px var(--ion); }
.bng-flow ol > li:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 12px; height: 12px; border-top: 1.5px solid var(--ion); border-right: 1.5px solid var(--ion); transform: translateY(-50%) rotate(45deg); opacity: .7; }
.bng-flow .is-back { position: relative; }
.bng-flow .is-back::before { content: "↓"; position: absolute; right: 12%; top: -16px; color: var(--ion); font-size: 14px; }
@media (max-width: 760px) {
	.bng-flow ol { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bng-flow ol > li::after { display: none; }
	.bng-flow .is-back::before { display: none; }
}

/* Calculator */
.bng-calc { margin-top: 32px !important; padding: clamp(18px, 3vw, 28px); border-radius: 20px; border: 1px solid rgba(140, 242, 255, .3); background: linear-gradient(135deg, rgba(90, 168, 255, 0.12), rgba(140, 242, 255, 0.04)); display: grid; gap: 20px; scroll-margin-top: 20px; }
.bng-calc-head { display: grid; gap: 6px; }
.bng-calc-head h3 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; }
.bng-calc-head p { color: var(--muted); font-size: 15px; }
.bng-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.bng-calc-ins { display: grid; gap: 12px; }
.bng-in { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.bng-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 6, 13, .7); padding: 0 12px; transition: border-color .2s; }
.bng-box:focus-within { border-color: var(--ion); }
.bng-box i { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.bng-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 600 18px/1 var(--mono); padding: 12px 6px; outline: none; }
.bng-box input::-webkit-inner-spin-button { opacity: .4; }
.bng-calc-out { padding: 16px; border-radius: 14px; background: rgba(4, 6, 13, .6); border: 1px solid var(--line); display: grid; gap: 10px; }
.bng-calc-out table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bng-calc-out td { padding: 9px 4px; border-bottom: 1px solid var(--line); color: #cdd6ec; }
.bng-calc-out td:first-child { font-family: var(--body); color: #cdd6ec; }
.bng-calc-out td:nth-child(2) { font-weight: 400; }
.bng-calc-out .bng-m { font-family: var(--mono); font-size: 12.5px; color: var(--muted) !important; white-space: nowrap; }
.bng-calc-out td:last-child { text-align: right; font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.bng-calc-out .bng-tot td { border-bottom: 0; font-size: 15px; }
.bng-calc-out .bng-tot td:last-child { color: var(--flare); font-size: 20px; }
.bng-range, .bng-year { font-size: 14px; color: var(--muted) !important; }
.bng-range b { color: var(--ink); font-family: var(--mono); }
.bng-calc-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.bng-2-out { grid-column: 1 / -1; font-size: 15px; color: var(--muted) !important; }
.bng-2-out b { color: var(--flare); font-family: var(--mono); font-size: 16px; }
.bng-note { font-size: 13px; color: var(--muted) !important; }
@media (max-width: 760px) {
	.bng-calc-grid, .bng-calc-2 { grid-template-columns: 1fr; }
	.bng-calc-out .bng-m { display: none; }
}

/* Scan CTA */
.bng-scan { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px; border: 1px solid rgba(140, 242, 255, .35); border-radius: 18px; background: rgba(4, 6, 13, .6); margin-top: 22px !important; }
.bng-scan input { flex: 1 1 220px; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 500 17px/1 var(--body); padding: 14px 12px; outline: none; }
.bng-scan .bn-btn { padding: 14px 22px; }
.bng-scan-note { font-size: 14px; color: var(--muted) !important; }

/* PDF form */
.bng-get { padding-block: 24px clamp(48px, 8vw, 96px); scroll-margin-top: 20px; }
.bng-get-box { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 24px; border: 1px solid rgba(140, 242, 255, 0.3); background: linear-gradient(135deg, rgba(90, 168, 255, 0.14), rgba(140, 242, 255, 0.05)); }
.bng-get-copy { display: grid; gap: 12px; }
.bng-get-copy h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; }
.bng-get-copy p { color: var(--muted); }
.bng-form { display: grid; gap: 12px; }
.bng-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.bng-form input { background: rgba(4, 6, 13, .7); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 500 16px/1.2 var(--body); padding: 13px 14px; outline: none; }
.bng-form input:focus { border-color: var(--ion); }
.bng-form .bn-btn { width: 100%; text-align: center; }
.bng-form.is-done { justify-items: start; }
.bng-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bng-form-msg { min-height: 1.3em; font-size: 14px; color: var(--muted); }
.bng-form-msg.err { color: var(--flare); }
.bng-form-msg.ok { color: var(--ion); }
.bng-fine { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .bng-get-box { grid-template-columns: 1fr; } }

/* Cards (hub and "other trades") */
.bng-more { padding-bottom: clamp(56px, 8vw, 96px); }
.bng-more h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.bng-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bng-cards-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bng-card { display: grid; gap: 8px; align-content: start; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); padding-bottom: 16px; transition: border-color .2s, transform .2s; }
.bng-card:hover { border-color: var(--ion); transform: translateY(-3px); }
.bng-card img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.bng-card span { padding: 4px 16px 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.bng-cards-sm .bng-card span { font-size: 15px; padding-top: 2px; }
.bng-card em { padding: 0 16px; font-style: normal; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bng-hub-list { padding-block: 20px clamp(56px, 8vw, 96px); }
.bng-hub-cta { margin-top: 36px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--muted); }
@media (max-width: 960px) { .bng-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bng-cards-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bng-cards { grid-template-columns: 1fr; } .bng-cards-sm { grid-template-columns: 1fr 1fr; } }
