/*
 * Niguro page CSS: the info pages, in niguroapp's look (niguro.com's account.css "info and legal pages"
 * and about.css). Static pages (static.tpl, .ng-ip: About, Privacy, Terms, Editorial, Code of Conduct,
 * Disclaimer, Advertising, Careers, Help…), About (__ng_about.tpl, .ng-ab) and Contact Us (contact.tpl,
 * .ng-ct). The frame is the page kit's hub frame (8px gutter under 1024px, 20px under the header).
 * Colours only from tokens; icon tiles in the one accent, as in the kit. Buttons are the kit's .ng-pbtn.
 */

/* ======================================================================== */
/* Static pages: the reading column (736px)                                  */
/* ======================================================================== */

/* The page head and the blocks are one column; the badge, which the text brings, goes above the title. */
.ng-ip { display: flex; flex-direction: column; color: var(--ng-ink); }
.ng-ip > * { margin: 14px 0 0; }
.ng-ip > .ng-ip-badge { order: -1; }
.ng-ip p { margin: 0; }
.ng-ip a:not(.ng-pbtn) { color: var(--ng-brand); text-decoration: none; }
.ng-ip a:not(.ng-pbtn):hover { text-decoration: underline; }

/* head: badge, title, line, last updated (on the canvas, text 12px from the screen edge on phones) */
.ng-ip > :is(.ng-ip-badge, h1, .ng-ip__title, .ng-ip-lead, .ng-ip-updated) { margin-left: 4px; margin-right: 4px; }
@media (min-width: 768px) { .ng-ip > :is(.ng-ip-badge, h1, .ng-ip__title, .ng-ip-lead, .ng-ip-updated) { margin-left: 0; margin-right: 0; } }
:is(.ng-ip, .ng-ip-ghero) > .ng-ip-badge {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; height: 26px; margin-top: 8px; padding: 0 10px; border-radius: 999px;
  background: var(--ng-tint); color: var(--ng-brand); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
/* badge-check, drawn with the text colour */
:is(.ng-ip, .ng-ip-ghero) > .ng-ip-badge::before {
  content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.ng-ip, .ng-ip-ghero) > h1, .ng-ip__title {
  margin-top: 8px; font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ng-ink-strong);
}
.ng-ip:has(> .ng-ip-badge) > :is(h1, .ng-ip__title) { margin-top: 12px; }
:is(.ng-ip, .ng-ip-ghero) > .ng-ip-lead { margin-top: 10px; max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
:is(.ng-ip, .ng-ip-ghero) > .ng-ip-updated { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ng-sub); }
:is(.ng-ip, .ng-ip-ghero) > .ng-ip-updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ng-brand); }
/* the body starts 20px under the head */
.ng-ip > :is(.ng-ip-lead, .ng-ip-updated) + :not(.ng-ip-updated) { margin-top: 20px; }
.ng-ip > .ng-ip-head { margin-top: 32px; }

/* intro / summary note: a brand-tinted box */
.ng-ip-note { padding: 18px 22px; border-radius: var(--ng-r-md); background: hsl(var(--primary) / .08); }
.ng-ip-note h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ng-ink-strong); }
.ng-ip-note p { font-size: 15px; line-height: 1.7; color: hsl(var(--foreground) / .85); }

/* the document: one card, numbered sections with hairlines between them */
.ng-ip-doc { counter-reset: ng-ip-doc; padding: 8px 0; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-ip-sec { counter-increment: ng-ip-doc; position: relative; padding: 22px 26px; }
.ng-ip-sec + .ng-ip-sec::after { content: ""; position: absolute; top: 0; left: 26px; right: 26px; border-top: 1px solid var(--ng-line); }
.ng-ip-sec::before {
  content: counter(ng-ip-doc); position: absolute; top: 22px; left: 26px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ng-tint); color: var(--ng-brand); font-size: 15px; font-weight: 700;
}
.ng-ip-sec h3 { display: flex; align-items: center; min-height: 34px; margin: 0 0 8px; padding-left: 46px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--ng-ink-strong); }
.ng-ip-sec p { padding-left: 46px; font-size: 15px; line-height: 1.75; color: hsl(var(--foreground) / .82); }
.ng-ip-sec p + p { margin-top: 8px; }
@media (max-width: 520px) {
  .ng-ip-sec { padding: 18px; }
  .ng-ip-sec::before { top: 18px; left: 18px; }
  .ng-ip-sec + .ng-ip-sec::after { left: 18px; right: 18px; }
  .ng-ip-sec p { padding-left: 0; }
}
/* a page without blocks (Help, Affiliate…): the whole text in the document card */
.ng-ip-doc--prose { padding: 22px 26px; font-size: 15px; line-height: 1.75; color: hsl(var(--foreground) / .85); overflow-wrap: anywhere; }
@media (max-width: 520px) { .ng-ip-doc--prose { padding: 18px; } }
.ng-ip-doc--prose > :first-child { margin-top: 0; }
.ng-ip-doc--prose > :last-child { margin-bottom: 0; }
.ng-ip-doc--prose :is(h1, h2, h3, h4) { margin: 22px 0 8px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--ng-ink-strong); }
.ng-ip-doc--prose h1 { font-size: 22px; }
.ng-ip-doc--prose h2 { font-size: 19px; }
.ng-ip-doc--prose :is(h3, h4) { font-size: 17px; }
.ng-ip-doc--prose p { margin: 0 0 12px; }
.ng-ip-doc--prose :is(ul, ol) { margin: 0 0 12px; padding-left: 22px; }
.ng-ip-doc--prose li + li { margin-top: 4px; }
.ng-ip-doc--prose img { max-width: 100%; height: auto; border-radius: var(--ng-r-sm); }

/* section head (editorial, code of conduct): eyebrow, title, line */
.ng-ip-head { padding: 0 4px; }
@media (min-width: 768px) { .ng-ip-head { padding: 0; } }
.ng-ip-head h2, .ng-ip-split__text h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ng-ip-head h2, .ng-ip-split__text h2 { font-size: 26px; } }
.ng-ip-head p { max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip p.ng-ip-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 0 0 12px; padding: 0 10px; border-radius: 999px;
  background: var(--ng-tint); color: var(--ng-brand); font-size: 12px; font-weight: 600; line-height: 1;
}

/* a text beside value tiles (editorial newsroom, our commitment) */
.ng-ip-split { display: grid; gap: 16px; align-items: center; }
@media (min-width: 1024px) { .ng-ip-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; } }
.ng-ip-split__text { padding: 0 4px; }
@media (min-width: 768px) { .ng-ip-split__text { padding: 0; } }
.ng-ip-split__text > p:not(.ng-ip-eyebrow) { font-size: 15px; line-height: 1.7; color: hsl(var(--foreground) / .9); }
.ng-ip-split__text > p + p { margin-top: 12px; }
.ng-ip blockquote { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid var(--ng-brand); border-radius: 0 var(--ng-r-sm) var(--ng-r-sm) 0; background: hsl(var(--primary) / .07); }
.ng-ip blockquote p:first-child { font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.5; color: var(--ng-brand); }
.ng-ip blockquote p + p { margin-top: 4px; font-size: 12px; color: var(--ng-sub); }
.ng-ip-vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ng-ip-vals .ng-ip-card { padding: 16px; }
.ng-ip-vals .ng-ip-card::before {
  content: ""; display: block; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 10px;
  background: var(--ng-tint) center / 18px no-repeat;
}
.ng-ip-vals .ng-ip-card::after {
  content: ""; position: absolute; top: 25px; left: 25px; width: 18px; height: 18px; background: var(--ng-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ng-ip-vals .ng-ip-card h3 { min-height: 0; margin-bottom: 4px; padding-left: 0; font-size: 14px; }
.ng-ip-vals .ng-ip-card p { font-size: 12.5px; line-height: 1.55; }

/* card grids (standards, guidelines, why join): numbered tiles like the document's sections */
.ng-ip-grid { counter-reset: ng-ip-card; display: grid; gap: 12px; }
@media (min-width: 576px) { .ng-ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ng-ip-card { position: relative; min-width: 0; padding: 20px; border-radius: var(--ng-r); background: var(--ng-card); /* [Card radius] */ }
.ng-ip-grid > .ng-ip-card { counter-increment: ng-ip-card; }
.ng-ip-grid > .ng-ip-card::before {
  content: counter(ng-ip-card); position: absolute; top: 20px; left: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ng-tint); color: var(--ng-brand); font-size: 15px; font-weight: 700;
}
.ng-ip-card h3 { display: flex; align-items: center; min-height: 34px; margin: 0 0 8px; padding-left: 46px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ng-ink-strong); }
.ng-ip-card p { font-size: 14px; line-height: 1.65; color: var(--ng-sub); }

/* what we don't publish: a card with a red eyebrow and crossed items */
.ng-ip-dont { padding: 22px; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-ip-dont p.ng-ip-eyebrow { background: hsl(var(--destructive) / .1); color: hsl(var(--destructive)); }
.ng-ip-dont ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ng-ip-dont li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip-dont li::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 18px; height: 18px; background: hsl(var(--destructive));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* an empty state (no team profiles yet, no open positions) */
.ng-ip-empty { padding: 28px 22px; border-radius: var(--ng-r); background: var(--ng-card); text-align: center; }
.ng-ip-empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ng-ink-strong); }
.ng-ip-empty p { max-width: 520px; margin: 0 auto; font-size: 14px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip-empty .ng-ip-acts { justify-content: center; margin-top: 16px; }

/* buttons in a row */
.ng-ip p.ng-ip-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* closing call to action: a card, the text left and the buttons right (stacked on phones) */
.ng-ip-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 20px 22px; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-ip-cta > :is(h2, h3) { grid-column: 1; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ng-ink-strong); }
.ng-ip-cta > p:not(.ng-ip-acts) { grid-column: 1; font-size: 14px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip-cta > .ng-ip-acts { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 520px) {
  .ng-ip-cta { grid-template-columns: minmax(0, 1fr); }
  .ng-ip-cta > .ng-ip-acts { grid-column: 1; grid-row: auto; margin-top: 10px; }
}

/* careers: a hero card and sheets */
.ng-ip-hero, .ng-ip-sheet { padding: 24px 22px; border-radius: var(--ng-r); background: var(--ng-card); scroll-margin-top: calc(var(--ng-top, 56px) + 16px); }
.ng-ip-hero { background: radial-gradient(420px 220px at 100% 0, hsl(var(--primary) / .16), transparent 70%), var(--ng-card); }
.ng-ip > .ng-ip-hero { margin-top: 0; }
.ng-ip-hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ng-ink-strong); }
.ng-ip-hero > p:not(.ng-ip-acts) { max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip-hero .ng-ip-acts { margin-top: 16px; }
.ng-ip-sheet > h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ng-ink-strong); }
.ng-ip-sheet > p:not(.ng-ip-acts) { font-size: 14px; line-height: 1.6; color: var(--ng-sub); }
.ng-ip-sheet > p.ng-ip-acts { margin-top: 16px; }
.ng-ip-sheet > :is(.ng-ip-grid, .ng-ip-empty) { margin-top: 16px; }
.ng-ip-sheet .ng-ip-card, .ng-ip-sheet .ng-ip-empty { background: var(--ng-fill); }

/* ======================================================================== */
/* Brand kit (images/brand, the Niguro brand kit's web files; __ng_brand_mark.tpl). Used by About, Contact Us, */
/* the guide and careers heroes, the 404 and the sign-in / sign-up brand pane. Before the pages' blocks, so */
/* their placements (size, corner, opacity) win.                                                              */
/* ======================================================================== */

/* the app tile: the rounded-square app icon tilted -8deg with a soft layered shadow, over a tinted second
   tile tilted the other way. --_m is the icon's size (the page sets it); the box is 1.4x for the tilt and the
   back tile. The icon's corner is the kit's (rx 230 of 1024 = 22.5%). */
.ng-bmark { --_m: 64px; position: relative; z-index: 1; display: block; flex: none; width: calc(var(--_m) * 1.4); height: calc(var(--_m) * 1.4); pointer-events: none; }
.ng-bmark__back, .ng-bmark__icon { position: absolute; left: 50%; top: 50%; width: var(--_m); height: var(--_m); border-radius: 22.5%; }
.ng-bmark__back { transform: translate(-34%, -62%) rotate(9deg); background: hsl(var(--primary) / .16); }
.ng-bmark__icon {
  display: block; max-width: none; transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: 0 1px 2px hsl(143 60% 12% / .16), 0 6px 14px hsl(143 60% 14% / .16), 0 18px 36px hsl(143 70% 18% / .22);
}
body.night-mode .ng-bmark__icon { box-shadow: 0 0 0 1px hsl(0 0% 100% / .06), 0 2px 4px hsl(0 0% 0% / .35), 0 10px 22px hsl(0 0% 0% / .35), 0 24px 48px hsl(0 0% 0% / .45); }

/* the fiddlehead motif: a faint corner of its card, under the card's content (the card is position: relative,
   isolation: isolate and overflow: hidden, so it crops it) */
.ng-bmotif { position: absolute; z-index: -1; width: auto; max-width: none; opacity: .1; pointer-events: none; user-select: none; }
body.night-mode .ng-bmotif { opacity: .16; }

/* the lockup: the round N icon and the wordmark (the green wordmark by day, the white one by night) */
.ng-blockup { display: inline-flex; align-items: center; gap: 10px; }
.ng-blockup__icon { flex: none; width: 40px; height: 40px; }
.ng-blockup__word { display: block; width: auto; height: 26px; }
.ng-blockup__word--night, body.night-mode .ng-blockup__word--day { display: none; }
body.night-mode .ng-blockup__word--night { display: block; }

/* the fiddlehead motif as a card corner where the page text is the admin's (static pages): a mask in the accent */
:is(.ng-ip > .ng-ip-ghero, .ng-ip > .ng-ip-hero) { position: relative; overflow: hidden; isolation: isolate; }
:is(.ng-ip > .ng-ip-ghero, .ng-ip > .ng-ip-hero)::after {
  content: ""; position: absolute; z-index: -1; top: -34px; right: -38px; width: 140px; height: 226px; pointer-events: none;
  background: var(--ng-brand); opacity: .1;
  -webkit-mask: url("../../images/brand/fiddlehead-motif.svg") center / contain no-repeat;
          mask: url("../../images/brand/fiddlehead-motif.svg") center / contain no-repeat;
}
body.night-mode :is(.ng-ip > .ng-ip-ghero, .ng-ip > .ng-ip-hero)::after { opacity: .16; }
@media (min-width: 768px) { :is(.ng-ip > .ng-ip-ghero, .ng-ip > .ng-ip-hero)::after { top: -30px; right: -14px; width: 168px; height: 272px; } }

/* 404 (404.tpl): the app tile where the utility art was, the motif in the card's corner */
.ng-ustate__mark { --_m: 68px; margin: 4px 0 20px; }
@media (min-width: 768px) { .ng-ustate__mark { --_m: 76px; } }
.ng-ustate__motif { top: -40px; right: -44px; height: 230px; }

/* sign in / sign up (_sign_form.tpl): the motif's curl in the brand pane's lower corner, under the note (two-pane card only) */
@media (min-width: 768px) {
  .ng-auth__brand::after {
    content: ""; position: absolute; z-index: 0; left: -36px; bottom: -150px; width: 150px; height: 242px; pointer-events: none;
    background: var(--ng-brand); opacity: .12; transform: scaleX(-1);
    -webkit-mask: url("../../images/brand/fiddlehead-motif.svg") center / contain no-repeat;
            mask: url("../../images/brand/fiddlehead-motif.svg") center / contain no-repeat;
  }
  body.night-mode .ng-auth__brand::after { opacity: .18; }
}

/* getting started (started.tpl): the app icon as the brand's tile */
.ng-onb__logo.ng-onb__logo--kit { background: none; }
.ng-onb__logo--kit img { display: block; width: 100%; height: 100%; border-radius: 22.5%; }

/* ======================================================================== */
/* About (/about)                                                             */
/* ======================================================================== */

.ng-ab { --ab-gap: 12px; display: flex; flex-direction: column; gap: var(--ab-gap); padding-bottom: 12px; color: var(--ng-ink); }
@media (min-width: 768px) { .ng-ab { --ab-gap: 16px; } }
.ng-hubwrap.ng-ab > * + :not(template) { margin-top: 0; }
.ng-ab .card { margin: 0; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-ab p { margin: 0; }
.ng-ab .ng-ico { width: 18px; height: 18px; flex: none; }

/* icon tiles: the one accent, like every tile (--ng-tile behind a --ng-brand icon) */
.ng-ab__tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ng-tile); color: var(--ng-brand);
}
.ng-ab__tile--lg { width: 48px; height: 48px; border-radius: 14px; }
.ng-ab__tile--lg .ng-ico { width: 22px; height: 22px; }
.ng-ab__tile--sm { width: 36px; height: 36px; border-radius: 10px; }

/* hero */
.ng-ab__hero {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 28px 16px;
  background: radial-gradient(80% 120% at 100% 0%, hsl(var(--primary) / .16), transparent 62%), radial-gradient(60% 90% at 0% 100%, hsl(var(--primary) / .07), transparent 60%), var(--ng-card) !important;
}
@media (min-width: 768px) { .ng-ab__hero { padding: 40px; } }
.ng-ab__herobody { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; flex: 1 1 auto; }
.ng-ab__badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--ng-tint); color: var(--ng-brand); font-size: 12px; font-weight: 600; line-height: 1.3; }
.ng-ab__badge .ng-ico { width: 14px; height: 14px; }
.ng-ab__title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ng-ink-strong); }
.ng-ab__title span { color: var(--ng-brand); }
@media (min-width: 768px) { .ng-ab__title { font-size: 42px; } }
.ng-ab__lede { max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
@media (min-width: 768px) { .ng-ab__lede { font-size: 16px; } }
.ng-ab__mission { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; padding: 12px 14px; border-radius: 12px; background: var(--ng-fill); color: var(--ng-ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.ng-ab__mission .ng-ico { margin-top: 1px; color: var(--ng-brand); }
.ng-ab__ctas { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ng-ab__ctas--center { justify-content: center; }
/* About hero: the app tile (Brand kit above). The tile above the badge on phones (64px icon), beside the text
   from 768px (128px) and 1024px (156px); the motif a faint corner of the card, cropped by its edge as on the
   kit's share image. */
.ng-ab .ng-ab__hero { overflow: hidden; isolation: isolate; }
.ng-ab__motif { top: -36px; right: -46px; height: 250px; }
.ng-ab__mark { --_m: 64px; }
@media (max-width: 767.98px) {
  .ng-ab__hero { flex-direction: column; align-items: stretch; gap: 14px; }
  .ng-ab__mark { order: -1; margin: 0 0 2px -4px; }
}
@media (min-width: 768px) {
  .ng-ab__mark { --_m: 128px; margin-right: 8px; }
  .ng-ab__motif { top: -6%; right: -2%; height: 118%; opacity: .14; }
  body.night-mode .ng-ab__motif { opacity: .2; }
}
@media (min-width: 1024px) { .ng-ab__mark { --_m: 156px; margin-right: 20px; } }

/* stats */
.ng-ab__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ab-gap); }
@media (min-width: 768px) { .ng-ab__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ng-ab .ng-ab__stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; background: linear-gradient(160deg, hsl(var(--primary) / .07), var(--ng-card) 70%); }
body.night-mode .ng-ab .ng-ab__stat { background: linear-gradient(160deg, hsl(var(--primary) / .12), var(--ng-card) 75%); }
.ng-ab__stat .ng-ab__tile { width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; }
.ng-ab__statval { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ng-ink-strong); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ng-ab__statval { font-size: 26px; } }
.ng-ab__statlabel { font-size: 12px; font-weight: 600; color: var(--ng-sub); }

/* blocks */
.ng-ab__block { padding: 20px 16px; }
@media (min-width: 768px) { .ng-ab__block { padding: 24px 28px; } }
.ng-ab__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ng-ab__h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--ng-ink-strong); }
.ng-ab__sub { font-size: 13.5px; line-height: 1.5; color: var(--ng-sub); }
.ng-ab__h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-ab__h3 .ng-ico { color: var(--ng-brand); }

/* services */
.ng-ab__services { display: grid; gap: 8px; }
@media (min-width: 640px) { .ng-ab__services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ng-ab__services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ng-ab__svc { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 12px; background: var(--ng-fill); color: var(--ng-ink); text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.ng-ab__svc:hover { background: var(--ng-fill-2); color: var(--ng-ink); transform: translateY(-1px); }
.ng-ab__svc:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ng-ab__svcbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ng-ab__svctitle { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ng-ink-strong); }
.ng-ab__svc:hover .ng-ab__svctitle { color: var(--ng-brand); }
.ng-ab__svcdesc { font-size: 12.5px; line-height: 1.45; color: var(--ng-sub); }
.ng-ab .ng-ab__chev { width: 16px; height: 16px; color: var(--ng-faint); }

/* story (the static page's text) + journey */
.ng-ab__story { display: grid; gap: 20px; }
@media (min-width: 900px) { .ng-ab__story { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.ng-ab__storytext { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.ng-ab__storytext > .ng-ip-story { display: flex; flex-direction: column; gap: 12px; }
.ng-ab__storytext h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ng-ab__storytext h2 { font-size: 26px; } }
.ng-ab__storytext p { font-size: 15px; line-height: 1.65; color: hsl(var(--foreground) / .9); }
.ng-ab__storytext a { color: var(--ng-brand); }
.ng-ab__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ng-tint); color: var(--ng-brand); font-size: 12px; font-weight: 600; }
.ng-ab__eyebrow .ng-ico { width: 14px; height: 14px; }
.ng-ab__journey { padding: 16px; border-radius: 12px; background: var(--ng-fill); }
.ng-ab__timeline { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ng-ab__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; }
.ng-ab__step::before { content: ""; position: absolute; left: 21px; top: 36px; bottom: -16px; width: 2px; border-radius: 2px; background: hsl(var(--primary) / .25); }
.ng-ab__step:last-child::before { display: none; }
.ng-ab__year { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 30px; border-radius: 999px; background: var(--ng-card); color: var(--ng-brand); font-size: 12px; font-weight: 600; }
.ng-ab__step.is-now .ng-ab__year { background: var(--ng-brand); color: hsl(var(--primary-foreground)); }
.ng-ab__year .ng-ico { width: 15px; height: 15px; }
.ng-ab__steptitle { padding-top: 5px; font-size: 14px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-ab__steptext { font-size: 13px; line-height: 1.55; color: var(--ng-sub); }
.ng-ab__steptext strong { color: var(--ng-ink-strong); }

/* values */
.ng-ab__values { display: grid; gap: 8px; }
@media (min-width: 560px) { .ng-ab__values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ng-ab__values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ng-ab__value { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 12px; background: var(--ng-fill); }
.ng-ab__valtitle { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-ab__valtext { font-size: 13px; line-height: 1.55; color: var(--ng-sub); }
.ng-ab__quote { margin: 16px 0 0; padding: 16px 18px; border-left: 4px solid var(--ng-brand); border-radius: 12px; background: hsl(var(--primary) / .07); }
.ng-ab__quote p { font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.5; color: var(--ng-brand); }
.ng-ab__quote footer { margin-top: 6px; font-size: 12px; color: var(--ng-sub); }

/* facts + connect */
.ng-ab__pair { display: grid; gap: var(--ab-gap); }
@media (min-width: 900px) { .ng-ab__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ng-ab__facts { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ng-ab__fact { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ng-ab__fact + .ng-ab__fact { border-top: 1px solid var(--ng-line); }
.ng-ab__fact:first-child { padding-top: 0; }
.ng-ab__fact:last-child { padding-bottom: 0; }
.ng-ab__factbody { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.ng-ab__factlabel { font-size: 12px; font-weight: 600; color: var(--ng-sub); }
.ng-ab__factval { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ng-ink-strong); }
.ng-ab__contact { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--ng-fill); color: var(--ng-ink); text-decoration: none; transition: background-color .15s ease; }
.ng-ab__contact:hover { background: var(--ng-fill-2); color: var(--ng-ink); }
.ng-ab p.ng-ab__follow { margin: 16px 0 8px; }
.ng-ab__connect .ng-ab__head + .ng-ab__follow { margin-top: 0; }
.ng-soc--tiles .ng-soc__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ng-fill); color: var(--ng-ink); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ng-soc--tiles .ng-soc__link:hover { background: var(--ng-tint); color: var(--ng-brand); }
.ng-soc--tiles .ng-soc__link svg { width: 18px; height: 18px; }

/* closing call to action */
.ng-ab__cta {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 16px; text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, hsl(var(--primary) / .14), transparent 70%), var(--ng-card) !important;
}
@media (min-width: 768px) { .ng-ab__cta { padding: 44px 40px; } }
.ng-ab__ctatitle { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ng-ab__ctatitle { font-size: 32px; } }
.ng-ab__ctatext { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
.ng-ab__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.ng-ab__trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ng-fill); color: var(--ng-sub); font-size: 12px; font-weight: 600; }
.ng-ab__trust .ng-ico { width: 14px; height: 14px; color: var(--ng-brand); }

@media (prefers-reduced-motion: reduce) {
  .ng-ab__svc, .ng-ab__contact, .ng-soc__link { transition: none !important; }
  .ng-ab__svc:hover { transform: none; }
}

/* ======================================================================== */
/* Contact Us (/contact)                                                      */
/* ======================================================================== */

.ng-ct { display: flex; flex-direction: column; gap: 16px; color: var(--ng-ink); }
.ng-hubwrap.ng-ct > * + :not(template) { margin-top: 0; }
.ng-ct .card { margin: 0; border: 0; border-radius: var(--ng-r); }
.ng-ct p { margin: 0; }
.ng-ct__hero { padding: 24px 22px; background: radial-gradient(420px 220px at 100% 0, hsl(var(--primary) / .16), transparent 70%), var(--ng-card) !important; }
.ng-ct__title { margin: 0 0 10px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ng-ink-strong); }
.ng-ct__lede { max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
.ng-ct__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.ng-ct__sheet { display: flex; flex-direction: column; gap: 24px; padding: 24px 22px; background: var(--ng-card); }
@media (max-width: 520px) { .ng-ct__sheet, .ng-ct__hero { padding: 20px 16px; } }
.ng-ct__intro { scroll-margin-top: calc(var(--ng-top, 56px) + 16px); }
.ng-ct__h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ng-ct__h2 { font-size: 24px; } }
.ng-ct__intro > p { font-size: 15px; line-height: 1.6; color: var(--ng-sub); }
.ng-ct__intro > p + p { margin-top: 6px; }
.ng-ct__aside { font-size: 13.5px !important; }
.ng-ct__aside a, .ng-ct__intro a { color: var(--ng-brand); font-weight: 600; text-decoration: none; }
.ng-ct__form { margin: -8px 0 0; }
.ng-ct__send { display: flex; justify-content: flex-end; }

.ng-ct__company { padding: 18px; border-radius: var(--ng-r-md); background: var(--ng-fill); }
.ng-ct__h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ng-ink-strong); }
.ng-ct__cards { display: grid; gap: 10px; }
@media (min-width: 768px) { .ng-ct__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ng-ct__card { padding: 18px; border-radius: var(--ng-r); background: var(--ng-card); /* [Card radius] */ }
.ng-ct__card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-ct__card h3 .ng-ico { width: 20px; height: 20px; color: var(--ng-brand); }
.ng-ct__card p { padding-left: 28px; font-size: 14px; line-height: 1.65; color: var(--ng-sub); }
.ng-ct__card p strong { font-weight: 600; color: var(--ng-ink); }
.ng-ct__card p.ng-ct__small { margin-top: 10px; font-size: 12px; }

.ng-ct__connect .ng-ct__h2 { margin-bottom: 14px; }
.ng-soc--pills { gap: 8px; }
.ng-soc--pills .ng-soc__link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--ng-fill); color: var(--ng-ink-strong); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.ng-soc--pills .ng-soc__link:hover { background: var(--ng-fill-2); color: var(--ng-ink-strong); }
.ng-soc--pills .ng-soc__link svg { width: 16px; height: 16px; }
.ng-ct__company + .ng-ct__connect .ng-soc--pills .ng-soc__link { background: var(--ng-fill); }

/* Contact Us with the brand kit (__ng_brand_mark.tpl): the hero's app tile beside the text (52px icon on phones,
   88px from 768px) with the motif in the card's corner; the company box as a letterhead (the lockup, the
   company's name under the wordmark) with the motif in its corner. */
.ng-ct .ng-ct__hero { position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; overflow: hidden; isolation: isolate; }
.ng-ct__herobody { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.ng-ct__mark { --_m: 52px; align-self: flex-start; margin: 2px -2px 0 0; }
.ng-ct__motif { top: -30px; right: -34px; height: 210px; }
@media (min-width: 768px) {
  .ng-ct__mark { --_m: 88px; align-self: center; margin: 0 12px 0 0; }
  .ng-ct__motif { top: -24px; right: 4px; height: 250px; }
}
.ng-ct__company { position: relative; overflow: hidden; isolation: isolate; }
.ng-ct__comotif { right: -26px; bottom: -64px; height: 200px; }
.ng-ct__letterhead { display: grid; grid-template-columns: auto; justify-items: start; gap: 6px; margin-bottom: 16px; }
.ng-ct .ng-ct__letterhead .ng-ct__h3 { margin: 0; padding-left: 50px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ng-sub); }

/* ======================================================================== */
/* Guide pages (static.tpl's guide branch: Advertising Policy, How Niguro Ads work): the head as a hero    */
/* card, a table of contents (__ng_ip_toc.tpl) in the column on phones and tablets and beside the text,   */
/* sticky, from 1200px; sections numbered through the whole page; lists inside sections.                   */
/* ======================================================================== */

.ng-hubwrap.ng-ipg { --ng-hub-max: 712px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) {
  .ng-hubwrap.ng-ipg { --ng-hub-max: 984px; grid-template-columns: minmax(0, 712px) 240px; justify-content: center; gap: 32px; }
}
.ng-hubwrap.ng-ipg > * + :not(template) { margin-top: 0; }

/* the hero: badge, title, line, last updated on the accent wash of the page kit's hero */
.ng-ip > .ng-ip-ghero {
  display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 24px 20px; border-radius: 22px;
  background:
    radial-gradient(90% 140% at 100% 0%, hsl(var(--primary) / .18), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, hsl(var(--primary) / .07), transparent 60%),
    var(--ng-card);
}
@media (min-width: 768px) { .ng-ip > .ng-ip-ghero { padding: 32px 36px; } }
.ng-ip-ghero > * { margin: 0; }
.ng-ip-ghero > .ng-ip-badge { order: -1; margin: 0; }
.ng-ip-ghero > :is(h1, .ng-ip__title) { margin-top: 12px; }
.ng-ip-ghero > .ng-ip-lead { margin-top: 10px; }
.ng-ip-ghero > .ng-ip-updated { margin-top: 14px; }
.ng-ip > .ng-ip-ghero + * { margin-top: 16px; }

/* one numbering for the whole page (the sections of both cards) */
.ng-ip--guide { counter-reset: ng-ip-doc; }
.ng-ip--guide .ng-ip-doc { counter-reset: none; }
.ng-ip--guide .ng-ip-sec { scroll-margin-top: calc(var(--ng-top, 56px) + 16px); }
.ng-ip--guide > .ng-ip-head { margin-top: 28px; }
.ng-ip--guide > .ng-ip-head + .ng-ip-doc { margin-top: 12px; }

/* lists and emphasis inside a section (aligned with its paragraphs) */
.ng-ip-sec ul { margin: 8px 0 0; padding-left: 64px; list-style: disc; }
.ng-ip-sec li::marker { color: var(--ng-brand); }
.ng-ip-sec li { font-size: 15px; line-height: 1.7; color: hsl(var(--foreground) / .82); }
.ng-ip-sec li + li { margin-top: 6px; }
.ng-ip-sec ul + p { margin-top: 10px; }
.ng-ip-sec strong { font-weight: 650; color: var(--ng-ink-strong); }
@media (max-width: 520px) { .ng-ip-sec ul { padding-left: 18px; } }

/* the table of contents */
.ng-ip-toc { margin: 0; padding: 14px 12px 12px; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-ip .ng-ip-toc__title, .ng-ip-toc__title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-sub);
}
.ng-ip-toc__title .ng-ico { width: 16px; height: 16px; color: var(--ng-brand); }
.ng-ip-toc__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 576px) { .ng-ip-toc--inline .ng-ip-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; } }
.ng-ip-toc__group { grid-column: 1 / -1; margin-top: 8px; padding: 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-brand); }
.ng-ip-toc__group:first-child { margin-top: 2px; }
.ng-ip-toc .ng-ip-toc__list a:not(.ng-pbtn) {
  display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 10px;
  font-size: 14px; line-height: 1.35; color: var(--ng-ink); text-decoration: none;
}
.ng-ip-toc .ng-ip-toc__list a:not(.ng-pbtn):hover { background: var(--ng-fill); color: var(--ng-ink-strong); text-decoration: none; }
.ng-ip-toc__num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ng-tint); color: var(--ng-brand); font-size: 12px; font-weight: 700; line-height: 1; }
.ng-ip-toc--side { display: none; }
@media (min-width: 1200px) {
  .ng-ip-toc--inline { display: none; }
  .ng-ipg__side { position: sticky; top: calc(var(--ng-top, 56px) + 20px); max-height: calc(100vh - var(--ng-top, 56px) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .ng-ip-toc--side { display: block; }
}

