/*
 * Namirial Design System 2026 (DS v2) styles for the public SPID landing page
 * spidSelf (SWEIDAW-3530); Namirial-only page, layout modelled on the PORTAL public
 * homepage v2 (LEGACYPORTAL-4757). All rules are scoped under .nds-landing
 * (body.login-spid-body.nds-landing) and are loaded after the commoninclude
 * stylesheets, so they win at equal specificity. Tokens come from
 * namirial-ds-tokens.css (design-tokens/tokens.json), icons from namirial-icons.css.
 * Only DS v2 tokens are used: no legacy v1 aliases, no literal colours.
 */

/* Page background (DS v2 landing): a calm neutral surface (basic-100) for the
   whole page. The official MyNamirial login artwork (background-light.svg,
   1440x1024, #E7FFCF base with lime line shapes at 15% opacity) is confined to
   the hero band below the navbar (.nds-hero-band), where it fades into this
   surface across the band's lower half - see the band rule below. The footer
   bands carry their own opaque backgrounds on top of it; the navbar is
   transparent over the band while the page is at the top (see the navbar
   rules below) and white when scrolled or without JavaScript. */
.nds-landing {
  /* Height of the landing navbar: logo (40px) + 2 x 16px inner padding, 64px
     under 600px where the logo drops to 32px (media query with the logo rule).
     The hero band is pulled up under the navbar by exactly this amount, so the
     lime artwork shows behind the transparent bar, and the band's padding-top
     pushes the hero content back down by the same amount. */
  --nds-landing-navbar-h: 72px;
  background: var(--nds-background-secondary);
}

/* Hero band: full-width soft-lime band behind the navbar. The texture stays at
   full strength over the top 55% of the band and is faded into the page
   surface (background-secondary) over the bottom 45%, so the hero text keeps
   >= 4.5:1 contrast (worst-case pixel behind the text: the darkest lime line
   of the svg, #041D00 at the artwork's 15% group opacity over the #E7FFCF
   base, i.e. about rgb(197,221,176) - title 13.6:1, subtitle 7.0:1) while the
   cards below sit on the calm neutral page. Desktop (>= 1024px) makes the
   band about 420px tall via min-height plus bottom padding, and the cards
   overlap its faded bottom edge (see the 1024px media query); below 1024px
   the band is only as tall as its content. The padding-top compensates the
   navbar's negative margin-bottom, so the hero content starts exactly where
   it started when the band sat below the navbar. */
.nds-landing .nds-hero-band {
  background:
    linear-gradient(to bottom, transparent 55%, var(--nds-background-secondary) 100%),
    url("/wizard/javax.faces.resource/images/landing/background-light.svg.xhtml?ln=namirial&v=20261201213327") center top / cover no-repeat;
  padding-top: var(--nds-landing-navbar-h);
}

/* Top navbar, PORTAL public landing behaviour (LEGACYPORTAL-4757): transparent
   over the hero band while the page is at the top, white with border and
   shadow once the page is scrolled. The default (this rule) is the no-JS
   fallback: plain white bar, and the band pulled up under it stays hidden
   behind the opaque background, so the page looks like it did before. The
   scroll state is managed by namirial-navbar.js, which adds nds-navbar-js at
   init and toggles is-scrolled. Sticky uses plain CSS position: sticky, NOT
   p:sticky - PORTAL had to neutralise p:sticky's inline styles with
   !important hacks on mobile (layout-namirial-tsp.css ~l.1243). */
.nds-landing .nds-landing-navbar {
  position: relative; /* anchor for the z-index below; scrolls away under 1025px */
  z-index: 900; /* above the page content (max z-index 1), below the PrimeFaces overlays (1000+) */
  background-color: var(--nds-background);
  border-bottom: var(--nds-border-regular) solid var(--nds-border);
  border-radius: 0;
  box-shadow: var(--nds-shadow-layout);
  /* pull the hero band up behind the navbar (the band's padding-top gives the
     space back to the hero content) */
  margin-bottom: calc(-1 * var(--nds-landing-navbar-h));
}
.nds-landing .nds-landing-navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo 40px on desktop, 32px under 600px (width auto): same sizes as the
   PORTAL public pages (layout-namirial-tsp.css ~l.753). The markup height
   attribute is 40 too, so there is no layout jump before the CSS loads.
   The image comes from brandLogo.xhtml (single source); max-width (also on
   the 600px rule below via this one) leaves room for the language trigger. */
.nds-landing .nds-landing-navbar-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 60vw;
}
/* Transparent state, JS only: the hero band's lime artwork shows through the
   bar. Without nds-navbar-js (no JS) the white default above applies. */
.nds-landing .nds-landing-navbar.nds-navbar-js:not(.is-scrolled) {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* Mobile/tablet (< 1025px): the navbar scrolls away with the page and stays
   transparent over the band whatever the scroll state - the is-scrolled
   toggle is irrelevant once the bar has left the screen (PORTAL scrolls the
   navbar away under 1024px too). */
@media (max-width: 1024px) {
  .nds-landing .nds-landing-navbar.nds-navbar-js {
    background-color: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }
}
/* Desktop (>= 1025px): the navbar sticks to the top of the viewport and turns
   into a white bar with border and shadow once the page is scrolled
   (namirial-navbar.js toggles is-scrolled). */
@media (min-width: 1025px) {
  .nds-landing .nds-landing-navbar {
    position: sticky;
    top: 0;
  }
  .nds-landing .nds-landing-navbar.nds-navbar-js {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .nds-landing .nds-landing-navbar.nds-navbar-js.is-scrolled {
    background-color: var(--nds-background);
    border-bottom: var(--nds-border-regular) solid var(--nds-border);
    box-shadow: var(--nds-shadow-first-floor);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nds-landing .nds-landing-navbar.nds-navbar-js {
    transition: none;
  }
}
/* Logo and navbar shrink under 600px, as on the PORTAL public pages: the band
   padding-top follows through --nds-landing-navbar-h, so the hero content
   keeps its position. */
@media (max-width: 600px) {
  .nds-landing {
    --nds-landing-navbar-h: 64px;
  }
  .nds-landing .nds-landing-navbar-logo img {
    height: 32px;
  }
}

/* Language trigger in the navbar: a real <button type="button"> so it is keyboard
   operable (Enter/Space, WCAG 2.1.1); type="button" prevents any form submission.
   Rendered as a DS v2 ghost button in the small control size (32px, radius-xs per
   the "sm buttons" radius usage); ghost hover lifts the background to the
   secondary surface. UA button styles are reset (the page stylesheets have no
   global bare-button rules, only .ui-button ones). */
.nds-landing button.nds-landing-lang {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: var(--nds-border-none);
  padding: 0 var(--nds-space-sm);
  margin: 0;
  font: inherit;
  font-size: var(--nds-font-text-s-size);
  display: inline-flex;
  align-items: center;
  gap: var(--nds-space-xs);
  height: var(--nds-control-sm);
  box-sizing: border-box;
  border-radius: var(--nds-radius-xs);
  color: var(--nds-button-primary-ghost-primary);
  text-decoration: none;
  cursor: pointer;
}
.nds-landing button.nds-landing-lang:hover {
  background-color: var(--nds-background-secondary);
  color: var(--nds-button-primary-ghost-primary);
}
.nds-landing button.nds-landing-lang:focus-visible {
  outline: 2px solid var(--nds-focus);
  outline-offset: 2px;
}

/*
 * The languageSidebar include is shared with the partner wizard steps and cannot be edited:
 * its round trigger button (.languageButton) carries an inline style block, so display:none
 * needs !important. The languagePanel sidebar itself is NOT hidden (it is position:fixed and
 * stays usable through the navbar trigger).
 */
.nds-landing .wizardTopButtonsContainer .languageButton {
  display: none !important; /* inline style in the shared include */
}
/* The row only hosted that button: collapse it, keeping the sidebar rendered */
.nds-landing .wizardTopButtonsContainer {
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* ===== Language side panel (#languagePanel, p:sidebar of the shared
   include/parts/languageSidebar.xhtml) =====
   spidSelf does not load namirial-ds-support.css, which gives the wizard
   drawers their DS Drawer look, so the panel would keep the Ultima colours
   (the #bdbdbd border of commoninclude layout.css "body .ui-widget-content"
   and the #212121 widget text of the PrimeFaces Ultima theme). The rules
   below mirror the drawer rules of namirial-ds-support.css ("Side panel
   chrome" + "Language panel"), scoped to the landing page. The id selector
   is exact: the sidebar renders OUTSIDE every form in spidSelf, so its
   client id has no container prefix ("languagePanel", not "...:languagePanel"),
   and the id also wins the specificity race against every "body .ui-widget*"
   competitor regardless of source order. */
.nds-landing #languagePanel {
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 100vw;
  padding: 0;
  box-sizing: border-box;
  background: var(--nds-background-secondary); /* was #bdbdbd (layout.css body .ui-widget-content) */
  border: var(--nds-border-regular) solid var(--nds-border);
  border-radius: var(--nds-radius-xl) 0 0 var(--nds-radius-xl);
  box-shadow: var(--nds-shadow-layout);
}
/* Close icon: muted foreground, hover surface = the DS selectable-item hover */
.nds-landing #languagePanel .ui-sidebar-close {
  position: absolute;
  top: 22px;
  right: var(--nds-space-md);
  float: none;
  color: var(--nds-foreground-muted);
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  line-height: 32px;
  text-align: center;
  border-radius: var(--nds-radius-2xs);
  z-index: 1;
}
.nds-landing #languagePanel .ui-sidebar-close:hover {
  background-color: var(--nds-select-hover-background);
}
/* Header: DS Drawer title row (h5 typography, soft divider, sticky over the
   scrolling panel). !important only on font-weight: the shared include sets an
   inline font-weight:normal on the h1. */
.nds-landing #languagePanel h1 {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--nds-background-secondary);
  flex: 0 0 auto;
  font-size: var(--nds-font-h5-size);
  line-height: var(--nds-font-h5-line-height);
  font-weight: var(--nds-font-h5-weight) !important;
  color: var(--nds-foreground); /* was the Ultima widget text #212121 */
  margin: 0 0 var(--nds-space-lg);
  padding: var(--nds-space-lg) var(--nds-space-4xl) var(--nds-space-md) var(--nds-space-lg);
  border-bottom: var(--nds-border-regular) solid var(--nds-border-soft);
  border-radius: var(--nds-radius-xl) 0 0 0;
}
/* Language rows: the wrapper spans of the shared markup carry the body gutter */
.nds-landing #languagePanel > span {
  display: block;
  padding: var(--nds-space-md) var(--nds-space-lg) var(--nds-space-lg);
}
.nds-landing #languagePanel a.ui-commandlink {
  display: block;
  text-decoration: none;
}
/* !important: the <p> carries an inline color:black in the shared markup.
   Rows behave like DS selectable items: foreground text, hover surface = the
   select-hover background. */
.nds-landing #languagePanel a.ui-commandlink > p {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: var(--nds-font-text-m-size);
  color: var(--nds-foreground) !important;
  padding: 0 var(--nds-space-sm);
  margin: 0;
  border-radius: var(--nds-radius-2xs);
}
.nds-landing #languagePanel a.ui-commandlink:hover > p {
  background-color: var(--nds-select-hover-background);
}
/* DS v2 focus ring: 2px outline with 2px offset, per the focus token usage */
.nds-landing #languagePanel a.ui-commandlink:focus-visible {
  outline: 2px solid var(--nds-focus);
  outline-offset: 2px;
  border-radius: var(--nds-radius-2xs);
}
.nds-landing #languagePanel br {
  display: none;
}

/* Hero: title directly on the page background, no panel box (overrides .upper-panel) */
.nds-landing .upper-panel,
.nds-landing .upper-panel .ui-panel-content {
  background: none;
  border: 0 none;
  box-shadow: none;
}
.nds-landing .upper-panel {
  min-height: 0;
  width: 90%;
  max-width: 1080px;
  margin: 0 auto; /* vertical spacing is provided by .nds-hero-inner padding */
}
.nds-landing .upper-panel .ui-panel-content {
  padding: 0;
}
.nds-landing .nds-hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--nds-space-3xl) var(--nds-space-md) var(--nds-space-xl) var(--nds-space-md);
  box-sizing: border-box;
}
.nds-landing .nds-hero-spid-logo {
  display: block;
  margin: 0 auto var(--nds-space-md) auto;
  width: 150px;
  max-width: 100%;
  height: auto;
}
/* Hero claim: DS v2 Heading h2 style (desktop; h4 under 640px) in the default
   foreground colour, directly on the band texture. text-wrap: balance plus a
   centred ~28ch measure lets the claim break after "digitale" onto two even
   lines on desktop ("Attiva la tua identità digitale / SPID con Namirial")
   instead of wrapping to three lines; under 640px the measure drops back to
   21ch (see the media query) so it stays balanced at the h4 size on 375px. */
.nds-landing .upper-panel h1.nds-hero-title {
  margin: 0 auto;
  max-width: 28ch;
  text-wrap: balance;
  font-size: var(--nds-font-h2-size);
  line-height: var(--nds-font-h2-line-height);
  font-weight: var(--nds-font-h2-weight);
  color: var(--nds-foreground);
  text-shadow: none;
}
.nds-landing .nds-hero-subtitle {
  font-size: var(--nds-font-paragraph-m-size);
  line-height: var(--nds-font-paragraph-m-line-height);
  color: var(--nds-foreground-muted);
  margin: var(--nds-space-md) auto 0 auto;
  max-width: 640px;
}
/* AgID trust line as a pill: opaque background surface (no translucent token
   exists, so the pill covers the texture completely) with a default border,
   full radius, DS focus-safe muted text (10.3:1 on the pill background) */
.nds-landing .nds-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--nds-space-3xs);
  font-size: var(--nds-font-text-s-size);
  color: var(--nds-foreground-muted);
  margin-top: var(--nds-space-sm);
  padding: var(--nds-space-3xs) var(--nds-space-sm);
  border: var(--nds-border-regular) solid var(--nds-border);
  border-radius: var(--nds-radius-full);
  background: var(--nds-background);
}
.nds-landing .nds-hero-trust .nds-icon {
  color: var(--nds-foreground-accent);
}

/* Choice cards: DS v2 Card spec - background surface, radius-lg, first-floor
   shadow, no border (the card tokens define border width 0 in v2) */
.nds-landing .nds-choice-wrapper {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  background: transparent;
}
.nds-landing .nds-choice-card {
  background: var(--nds-background);
  border: var(--nds-border-none);
  border-radius: var(--nds-radius-lg);
  box-shadow: var(--nds-shadow-first-floor);
  box-sizing: border-box;
}
.nds-landing .nds-choice-card .ui-panel-content {
  background: var(--nds-background);
  border: 0 none;
  border-radius: var(--nds-radius-lg);
  padding: var(--nds-space-xl);
}
/* custom.css (shared, not editable) forces min-height and centre-aligned text on
   .landing-spid-choice, also with !important in its media queries; the card content
   is left-aligned (#captchaSection keeps its own centred inline style) */
.nds-landing .landing-spid-choice.nds-choice-card {
  min-height: 0 !important;
  height: 100%;
  text-align: left;
}
.nds-landing .landing-spid-choice.nds-choice-card .ui-panel-content {
  text-align: left;
}
/* Equal-height cards: the panelGrid row becomes a flex row (cells keep their
   ui-g-12/ui-md-6 widths), each cell a flex container so the card stretches
   to the tallest sibling; the card content is a column so the actions block
   can be pushed to the bottom and the two buttons align */
.nds-landing .nds-choice-wrapper .ui-panelgrid-content > .ui-g {
  display: flex;
  flex-wrap: wrap;
}
.nds-landing .nds-choice-wrapper .ui-panelgrid-content > .ui-g > .ui-panelgrid-cell {
  display: flex;
}
.nds-landing .nds-choice-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.nds-landing .nds-choice-card .ui-panel-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--nds-space-md);
}
/* Card content: header row (icon + price badge), title, text, requirements, actions */
.nds-landing .nds-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nds-landing .nds-choice-icon {
  color: var(--nds-foreground-accent);
}
/* Price badges: DS v2 Tag/Badge soft intents - positive for the free CIE flow,
   secondary (neutral) for the paid video flow */
.nds-landing .nds-badge {
  display: inline-block;
  font-size: var(--nds-font-text-xs-size);
  font-weight: var(--nds-font-text-xs-semibold-weight);
  padding: var(--nds-space-3xs) var(--nds-space-xs);
  border-radius: var(--nds-radius-full);
}
.nds-landing .nds-badge-free {
  background: var(--nds-tag-badge-positive-soft);
  color: var(--nds-foreground-positive);
}
/* Paid flow: neutral tag with a visible 1px border so it does not nearly
   disappear on the card. The border uses the secondary tag medium token
   (olive-600): 5.9:1 against the card surface, well over the 3:1 non-text
   minimum; the text keeps 17.6:1 on the soft secondary background. */
.nds-landing .nds-badge-paid {
  background: var(--nds-tag-badge-secondary-soft);
  color: var(--nds-foreground-secondary);
  border: var(--nds-border-regular) solid var(--nds-tag-badge-secondary-medium);
}
.nds-landing .nds-choice-title {
  margin: 0;
  font-size: var(--nds-font-h5-size);
  line-height: var(--nds-font-h5-line-height);
  font-weight: var(--nds-font-h5-weight);
  color: var(--nds-foreground);
}
.nds-landing .nds-choice-text {
  margin: 0;
  font-size: var(--nds-font-paragraph-m-size);
  line-height: var(--nds-font-paragraph-m-line-height);
  color: var(--nds-foreground-secondary);
}
.nds-landing .nds-choice-req {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nds-landing .nds-choice-req li {
  display: flex;
  align-items: flex-start;
  gap: var(--nds-space-xs);
  font-size: var(--nds-font-paragraph-s-size);
  line-height: var(--nds-font-paragraph-s-line-height);
  color: var(--nds-foreground-secondary);
  margin-bottom: var(--nds-space-xs);
}
.nds-landing .nds-choice-req li:last-child {
  margin-bottom: 0;
}
.nds-landing .nds-choice-req .nds-icon {
  color: var(--nds-foreground-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.nds-landing .nds-choice-actions {
  margin-top: auto;
}
/* "Not available" note: DS v2 secondary callout (radius per the callout usage
   of radius-xs) */
.nds-landing .nds-choice-unavailable {
  margin-top: var(--nds-space-xs);
  font-size: var(--nds-font-text-s-size);
  color: var(--nds-callout-secondary-foreground);
  background: var(--nds-callout-secondary-background);
  padding: var(--nds-space-xs) var(--nds-space-sm);
  border-radius: var(--nds-radius-xs);
}

/* Buttons: DS v2 primary - control-md (40px) as a MINIMUM height with the
   radius-sm the tokens assign to md buttons; background always paired with
   its foreground token across default/hover/active. The label uses the
   paragraph-m line-height (1.5 -> 24px line box at 16px) with 8px block
   padding, so a single-line button is exactly 40px tall and a wrapped label
   grows the button in 24px steps instead of stretching the line box (the
   PrimeFaces theme line-height would otherwise make a 2-line label 80px tall).
   The lucide icon is positioned at top:50% by the theme, so it stays centred
   on the button for both one and two lines. */
.nds-landing .ui-button.nds-btn-primary {
  min-height: var(--nds-control-md);
  font-size: var(--nds-font-text-m-size);
  border-radius: var(--nds-radius-sm);
  box-shadow: none;
  padding: 0 var(--nds-space-lg);
  width: auto;
  background-color: var(--nds-button-primary-default-background);
  border: var(--nds-border-regular) solid var(--nds-button-primary-default-border);
  color: var(--nds-button-primary-foreground);
}
.nds-landing .ui-button.nds-btn-primary .ui-button-text {
  line-height: var(--nds-font-paragraph-m-line-height);
  padding: var(--nds-space-xs) 0;
}
.nds-landing .ui-button.nds-btn-primary.ui-state-hover,
.nds-landing .ui-button.nds-btn-primary.ui-state-focus {
  background-color: var(--nds-button-primary-hover-background);
  border-color: var(--nds-button-primary-hover-border);
  color: var(--nds-button-primary-foreground);
}
.nds-landing .ui-button.nds-btn-primary.ui-state-active,
.nds-landing .ui-button.nds-btn-primary:active {
  background-color: var(--nds-button-primary-active-background);
  border-color: var(--nds-button-primary-active-border);
  color: var(--nds-button-primary-foreground);
}
/* DS v2 focus ring: 2px outline with 2px offset, per the focus token usage */
.nds-landing .ui-button.nds-btn-primary:focus-visible {
  outline: 2px solid var(--nds-focus);
  outline-offset: 2px;
}
/* Icon colour: the theme forces .ui-button .ui-icon to white; the mask icon
   uses currentColor, so inherit the button text colour */
.nds-landing .ui-button.nds-btn-primary .ui-icon {
  color: inherit;
}
/* Inside the choice cards the buttons are full width, label centred,
   icon on the left (btnContinue keeps its icon on the right via iconPos) */
.nds-landing .nds-choice-card .ui-button.nds-btn-primary {
  width: 100%;
  text-align: center;
  margin: var(--nds-space-xs) 0;
}

/* FAQ link below the cards: accent link style (paragraph-m-link), underline on
   hover, DS focus ring */
.nds-landing .nds-faq-link {
  text-align: center;
  margin: var(--nds-space-lg) 0 var(--nds-space-3xl) 0;
}
.nds-landing .nds-faq-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--nds-space-2xs);
  font-size: var(--nds-font-paragraph-m-link-size);
  line-height: var(--nds-font-paragraph-m-link-line-height);
  font-weight: var(--nds-font-paragraph-m-link-weight);
  color: var(--nds-foreground-accent);
  text-decoration: none;
}
.nds-landing .nds-faq-link a:hover {
  text-decoration: underline;
  color: var(--nds-foreground-accent);
}
.nds-landing .nds-faq-link a:focus-visible {
  outline: 2px solid var(--nds-focus);
  outline-offset: 2px;
}

/* Lucide line icons inside buttons, as on the PORTAL homepage: 20px mask icon in currentColor.
   PrimeFaces positions the icon span absolutely (left .5em / right .5em, top 50%). */
.nds-landing .ui-button .ui-icon.lucide-icon {
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}
.nds-landing .ui-button .ui-icon.lucide-icon:before {
  content: none;
}
.nds-landing .ui-button .ui-icon.lucide-id-card {
  -webkit-mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-id-card.svg.xhtml?ln=namirial&v=20261201213327");
  mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-id-card.svg.xhtml?ln=namirial&v=20261201213327");
}
.nds-landing .ui-button .ui-icon.lucide-video {
  -webkit-mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-video.svg.xhtml?ln=namirial&v=20261201213327");
  mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-video.svg.xhtml?ln=namirial&v=20261201213327");
}
.nds-landing .ui-button .ui-icon.lucide-circle-question-mark {
  -webkit-mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-circle-question-mark.svg.xhtml?ln=namirial&v=20261201213327");
  mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-circle-question-mark.svg.xhtml?ln=namirial&v=20261201213327");
}
.nds-landing .ui-button .ui-icon.lucide-chevron-right {
  -webkit-mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-chevron-right.svg.xhtml?ln=namirial&v=20261201213327");
  mask-image: url("/wizard/javax.faces.resource/images/icons/lucide-chevron-right.svg.xhtml?ln=namirial&v=20261201213327");
}

/* Public footer, structured like the namirial.it footer (PORTAL v2 nam-footer):
   light DS v2 rendering - every band on the secondary surface (basic-100) with
   default borders as separators, highlighted (lime-800) column titles, muted
   text and links, accent on hover/focus */
.nds-landing .nam-footer {
  font-size: 13px;
  line-height: 22px;
  color: var(--nds-foreground-muted);
}
.nds-landing .nam-footer .nam-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--nds-space-lg);
  box-sizing: border-box;
}
.nds-landing .nam-footer a {
  color: var(--nds-foreground-muted);
  text-decoration: none;
}
.nds-landing .nam-footer a:hover,
.nds-landing .nam-footer a:focus-visible {
  color: var(--nds-foreground-accent);
  text-decoration: underline;
}
.nds-landing .nam-footer a:focus-visible {
  outline: 2px solid var(--nds-focus);
  outline-offset: 2px;
}
/* Social band */
.nds-landing .nam-footer .nam-footer-social {
  background-color: var(--nds-background-secondary);
  border-top: var(--nds-border-regular) solid var(--nds-border);
}
.nds-landing .nam-footer .nam-footer-social .nam-footer-inner {
  display: flex;
  align-items: center;
  gap: var(--nds-space-md);
  min-height: 64px;
}
.nds-landing .nam-footer .nam-footer-social-title {
  color: var(--nds-foreground-highlight);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.nds-landing .nam-footer .nam-footer-social-link {
  color: var(--nds-foreground);
  font-size: 22px;
  line-height: 1;
}
.nds-landing .nam-footer .nam-footer-social-link:hover {
  color: var(--nds-foreground-accent);
  text-decoration: none;
}
/* Brand icons as CSS masks (namirial-icons.css): sized 20px like PORTAL instead
   of the old inherited font-size; colour follows the link via currentColor. */
.nds-landing .nam-footer .nam-footer-social-link .nds-icon {
  width: 20px;
  height: 20px;
}
/* Link columns */
.nds-landing .nam-footer .nam-footer-main {
  background-color: var(--nds-background-secondary);
  border-top: var(--nds-border-regular) solid var(--nds-border);
  padding: var(--nds-space-2xl) 0 var(--nds-space-xl) 0;
}
.nds-landing .nam-footer .nam-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nds-space-xl);
}
.nds-landing .nam-footer .nam-footer-title {
  margin: 0 0 var(--nds-space-sm) 0;
  color: var(--nds-foreground-highlight);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nds-landing .nam-footer .nam-footer-address {
  margin: 0;
  color: var(--nds-foreground-muted);
}
.nds-landing .nam-footer .nam-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nds-landing .nam-footer .nam-footer-links li {
  margin-bottom: var(--nds-space-xs);
}
/* Legal bar */
.nds-landing .nam-footer .nam-footer-legal {
  background-color: var(--nds-background-secondary);
  border-top: var(--nds-border-regular) solid var(--nds-border);
  padding: var(--nds-space-md) 0;
}
.nds-landing .nam-footer .nam-footer-legal-row {
  display: flex;
  align-items: center;
  gap: var(--nds-space-lg);
}
.nds-landing .nam-footer .nam-footer-logo {
  flex: 0 0 auto;
}
/* Footer legal-bar logo (brandLogo.xhtml, single source): 28px like today
   (also the markup height attribute), capped like the PORTAL public footer
   so it never crowds the legal text beside it. */
.nds-landing .nam-footer .nam-footer-logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 200px;
}
.nds-landing .nam-footer .nam-footer-legal-text {
  font-size: 12px;
  line-height: 18px;
  color: var(--nds-foreground-muted);
}

/* Responsive */
/* Desktop (>= 1024px): the hero band is about 420px tall (min-height plus the
   band's own bottom padding) and the cards overlap its faded bottom edge by
   40px (space-2xl), emerging from the band. The hero's own bottom padding
   (space-2xl) plus the band's bottom padding (space-xl) guarantee at least
   space-xl of clear air between the trust pill and the cards even when the
   hero content grows taller than the band minimum. */
@media (min-width: 1024px) {
  .nds-landing .nds-hero-band {
    min-height: 420px;
    padding-bottom: var(--nds-space-xl);
  }
  .nds-landing .nds-choice-wrapper {
    margin-top: calc(-1 * var(--nds-space-2xl));
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 980px) {
  /* keep the hero transparent where the legacy stylesheet forced white */
  .nds-landing .upper-panel {
    background: none;
  }
}
@media (max-width: 768px) {
  /* cells stack full width (ui-g-12): cards auto height with a 16px gap */
  .nds-landing .nds-choice-wrapper .ui-panelgrid-content > .ui-g {
    row-gap: var(--nds-space-md);
  }
  .nds-landing .nds-choice-card .ui-panel-content {
    padding: var(--nds-space-lg);
  }
  .nds-landing .nam-footer .nam-footer-columns {
    grid-template-columns: 1fr;
    gap: var(--nds-space-lg);
  }
  .nds-landing .nam-footer .nam-footer-legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--nds-space-sm);
  }
}
@media (max-width: 640px) {
  /* Compact hero so the choice cards are visible right away: the band is only
     as tall as its content (no min-height below 1024px) and ends right after
     the trust pill; the cards start at most space-lg below it. */
  .nds-landing .nds-hero-inner {
    padding-top: var(--nds-space-xl);
    padding-bottom: var(--nds-space-lg);
  }
  .nds-landing .nds-hero-spid-logo {
    width: 120px;
  }
  /* hero claim steps down from h2 to h4 and back to the tighter 21ch measure:
     at the h4 size 28ch would exceed the 375px viewport and unbalance the wrap */
  .nds-landing .upper-panel h1.nds-hero-title {
    font-size: var(--nds-font-h4-size);
    line-height: var(--nds-font-h4-line-height);
    max-width: 21ch;
  }
  /* subtitle steps down from paragraph-m to paragraph-s with tighter spacing,
     so it stays within a few lines without any clamping */
  .nds-landing .nds-hero-subtitle {
    font-size: var(--nds-font-paragraph-s-size);
    line-height: var(--nds-font-paragraph-s-line-height);
    margin-top: var(--nds-space-sm);
  }
  /* trust pill keeps its shape with smaller padding */
  .nds-landing .nds-hero-trust {
    padding: var(--nds-space-4xs) var(--nds-space-xs);
    margin-top: var(--nds-space-xs);
  }
  .nds-landing .nds-choice-wrapper,
  .nds-landing .upper-panel {
    width: 100%;
  }
  /* language drawer: full width on small screens, as in the wizard */
  .nds-landing #languagePanel {
    width: 100vw;
  }
}

/* ===== Ajax loading dialog (template-vouchercreation, widgetVar "status") =====
   The PrimeFaces dialog shown for every ajax request: Font Awesome spinner
   (i.fa-circle-o-notch.fa-spin.ajax-loader, green #669933 in commoninclude
   layout.css) plus text and modal overlay in the Ultima theme greys.
   Restyled to DS v2: accent spinner, secondary text, background-surface card,
   second-floor shadow (the tokens assign it to dialogs), blanket overlay.
   Scoped to .nds-landing, so only the Namirial public pages loading this file
   are affected. */
.nds-landing .ajax-loader {
  color: var(--nds-foreground-accent); /* beats the .ajax-loader (0,1,0) rule of commoninclude layout.css */
}
/* Dialog card: background surface, radius-xs, second-floor shadow, no border.
   The second selector (with .ui-shadow) keeps the shadow override winning over
   the theme rule "body .ui-dialog.ui-shadow" (0,2,1). */
.nds-landing .ui-dialog,
.nds-landing .ui-dialog.ui-shadow {
  background: var(--nds-background);
  border: 0 none;
  border-radius: var(--nds-radius-xs);
  box-shadow: var(--nds-shadow-second-floor);
}
/* Header bar: no theme border (the widget-header purple frame). The loader
   dialog has no header, so its empty titlebar is collapsed; browsers without
   :has support degrade to a thin empty white strip. Dialogs with a real header
   (the spidSelf alert dialog) keep it, restyled. */
.nds-landing .ui-dialog .ui-dialog-titlebar {
  background: var(--nds-background);
  border: 0 none;
  color: var(--nds-foreground);
}
.nds-landing .ui-dialog .ui-dialog-titlebar:has(.ui-dialog-title:empty) {
  display: none;
}
/* Content: the "wait" text in the secondary foreground, no theme border */
.nds-landing .ui-dialog .ui-dialog-content {
  background: var(--nds-background);
  border: 0 none;
  color: var(--nds-foreground-secondary);
  border-radius: 0 0 var(--nds-radius-xs) var(--nds-radius-xs);
}
/* Modal overlay: the DS v2 blanket token (background basic-900 at 70% alpha)
   instead of the theme grey. The theme also sets opacity .8 on the overlay:
   opacity is reset to 1 so the token alpha is the only transparency
   (otherwise the two would compound). */
.nds-landing .ui-widget-overlay {
  background-color: var(--nds-blanket);
  opacity: 1;
}
