/* Generated from shared/styles by tools/sites.py. Edit the sources, not this file. */
/*
 * AIZEN design tokens — the single source for brand values.
 * Source: AIZEN Mobility Brand Guidelines, version 1.0 (August 2026).
 *
 * Cascade layers, lowest priority first:
 *   aizen-tokens      these custom properties
 *   aizen-base        shared element defaults (base.css)
 *   site-base         a site's own element resets: write `@layer site-base { a { ... } }`
 *   aizen-components  shared az-* components (components.css)
 *   (unlayered)       everything else in a site's stylesheet, which therefore
 *                     overrides shared components and tokens on purpose.
 * Keep bare element selectors (a, button, svg ...) in site-base so they never
 * restyle shared components by accident. Prefer semantic tokens (--az-color-*)
 * in site CSS; palette tokens exist for brand moments.
 */
@layer aizen-tokens, aizen-base, site-base, aizen-components;

@layer aizen-tokens {
  :root {
    /* Official palette. Usage proportion: navy 60%, bright blue 15%,
       white 10%, light gray 5%, gray 5%, black 5%. */
    --az-navy: #0F3B6F;
    --az-bright-blue: #00A4FF;
    --az-white: #FFFFFF;
    --az-light-gray: #EFF4F5;
    --az-gray: #DFDFDF;
    --az-black: #000000;

    /* Tints and shades derived from the palette for interface states.
       Never use these to recolor the logo. */
    --az-navy-900: #0A2A50;           /* pressed / dark surfaces */
    --az-navy-700: #0C508C;           /* navy blending toward bright blue */
    --az-navy-muted: #4A6582;         /* secondary text: 5.6:1 on white, 5.1:1 on light gray */
    --az-navy-subtle: #8FA3B8;        /* decorative strokes */
    --az-navy-tint: #E7EDF4;          /* hover fills on white */
    --az-blue-text: #0077BB;          /* bright blue for small text on white: 4.8:1 (AA) */
    --az-blue-tint: #E5F6FF;          /* selected / informational fills */
    --az-blue-glow: rgb(0 164 255 / 0.18);

    /* Semantic colors */
    --az-color-bg: var(--az-white);
    --az-color-surface: var(--az-white);
    --az-color-surface-muted: var(--az-light-gray);
    --az-color-text: var(--az-navy);
    --az-color-text-muted: var(--az-navy-muted);
    --az-color-heading: var(--az-navy);
    --az-color-border: var(--az-gray);
    --az-color-border-subtle: #E8EDF0;
    --az-color-accent: var(--az-bright-blue);
    --az-color-link: var(--az-navy);
    --az-color-action: var(--az-blue-text);
    --az-color-focus: var(--az-blue-text);
    --az-color-on-navy: var(--az-white);
    --az-color-on-navy-muted: #C9D8E8;
    --az-color-success: #1E7A4C;
    --az-color-success-bg: #E8F5EE;

    /* Typography: Helvetica Neue — Light, Regular, Medium, Bold.
       Pair Medium with Light, or Bold with Regular. */
    --az-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --az-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --az-weight-light: 300;
    --az-weight-regular: 400;
    --az-weight-medium: 500;
    --az-weight-bold: 700;

    --az-text-xs: 0.75rem;    /* 12px: minimum for labels */
    --az-text-sm: 0.875rem;   /* 14px */
    --az-text-md: 1rem;       /* 16px: body */
    --az-text-lg: 1.125rem;   /* 18px */
    --az-text-xl: 1.25rem;    /* 20px */
    --az-text-2xl: 1.5rem;    /* 24px */
    --az-text-3xl: 2rem;      /* 32px */
    --az-text-4xl: 2.5rem;    /* 40px */
    --az-text-display: clamp(2.5rem, 2rem + 2.4vw, 4rem); /* headline; subhead is half */

    --az-leading-tight: 1.12;
    --az-leading-snug: 1.3;
    --az-leading-body: 1.65;
    --az-tracking-tight: -0.02em;
    --az-tracking-caps: 0.14em;

    /* Spacing (4px base) */
    --az-space-1: 4px;
    --az-space-2: 8px;
    --az-space-3: 12px;
    --az-space-4: 16px;
    --az-space-5: 20px;
    --az-space-6: 24px;
    --az-space-8: 32px;
    --az-space-10: 40px;
    --az-space-12: 48px;
    --az-space-16: 64px;

    /* Shape and elevation (soft, navy-tinted, as in the guideline cards) */
    --az-radius-sm: 8px;
    --az-radius-md: 12px;
    --az-radius-lg: 20px;
    --az-radius-pill: 999px;
    --az-shadow-sm: 0 1px 2px rgb(15 59 111 / 0.06);
    --az-shadow-md: 0 6px 20px rgb(15 59 111 / 0.08);
    --az-shadow-lg: 0 18px 48px rgb(15 59 111 / 0.14);

    /* Layout */
    --az-container: 1240px;
    --az-gutter: 28px;
    --az-header-height: 76px;

    /* Logo: primary wordmark, min 120px wide on screen. Clear space equals
       the cap height of "A" in AIZEN (0.107 x logo width). */
    --az-logo-width: 148px;
    --az-logo-min-width: 120px;
    --az-logo-clearspace: calc(var(--az-logo-width) * 0.107);

    /* Motion */
    --az-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --az-duration: 160ms;
  }

  @media (max-width: 680px) {
    :root {
      --az-gutter: 20px;
      --az-header-height: 68px;
      --az-logo-width: var(--az-logo-min-width);
    }
  }
}

/*
 * Minimal element defaults shared by every site. Kept intentionally small:
 * site layout and content styles belong in each site's own stylesheet.
 */
@layer aizen-base {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    margin: 0;
    font-family: var(--az-font-sans);
    font-size: var(--az-text-md);
    font-weight: var(--az-weight-regular);
    line-height: var(--az-leading-body);
    color: var(--az-color-text);
    background: var(--az-color-bg);
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
  }

  h1, h2, h3, h4 {
    color: var(--az-color-heading);
    font-weight: var(--az-weight-medium);
    line-height: var(--az-leading-snug);
    letter-spacing: var(--az-tracking-tight);
  }

  button, input, select, textarea { font: inherit; color: inherit; }
  button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }

  a { color: var(--az-color-link); text-underline-offset: 0.22em; }

  code, kbd, pre, samp { font-family: var(--az-font-mono); }

  :focus-visible {
    outline: 3px solid var(--az-color-focus);
    outline-offset: 3px;
  }

  [hidden] { display: none !important; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/*
 * Shared AIZEN components. Every class is prefixed `az-` so shared styles
 * never collide with site classes. Components read semantic tokens, so a
 * site theme (for example a dark mode) restyles them by overriding tokens.
 */
@layer aizen-components {
  /* Accessibility helpers ------------------------------------------------ */
  .az-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .az-skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: var(--az-radius-pill);
    background: var(--az-navy);
    color: var(--az-white);
    font-weight: var(--az-weight-medium);
    text-decoration: none;
  }
  .az-skip-link:focus { top: 12px; }

  .az-container {
    width: 100%;
    max-width: var(--az-container);
    margin-inline: auto;
    padding-inline: var(--az-gutter);
  }

  /* Header and brand lockup ---------------------------------------------- */
  .az-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--az-color-bg);
    border-bottom: 1px solid var(--az-color-border-subtle);
  }
  .az-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--az-space-6);
    min-height: var(--az-header-height);
    max-width: var(--az-container);
    margin-inline: auto;
    padding-inline: var(--az-gutter);
  }
  .az-header__actions {
    display: flex;
    align-items: center;
    gap: var(--az-space-3);
  }

  .az-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }
  /* The padding is the guideline's clear space; the negative margin lets the
     wordmark align with content while the clear space sits in the gutter. */
  .az-brand__mark {
    display: block;
    flex-shrink: 0;
    padding: var(--az-logo-clearspace);
    margin-left: calc(var(--az-logo-clearspace) * -1);
    line-height: 0;
  }
  .az-brand__logo {
    display: block;
    width: var(--az-logo-width);
    min-width: var(--az-logo-min-width);
    height: auto;
  }
  .az-brand__logo--on-dark { display: none; }
  [data-theme="dark"] .az-brand__logo { display: none; }
  [data-theme="dark"] .az-brand__logo--on-dark { display: block; }
  .az-brand--stacked { flex-direction: column; align-items: flex-start; }
  .az-brand--stacked .az-brand__label {
    padding-left: 0;
    border-left: 0;
    color: var(--az-color-text-muted);
    font-size: var(--az-text-xs);
  }
  .az-brand__label {
    padding-left: var(--az-space-5);
    border-left: 1px solid var(--az-color-border);
    color: var(--az-color-heading);
    font-size: var(--az-text-sm);
    font-weight: var(--az-weight-medium);
    line-height: 1.3;
  }

  /* Buttons -------------------------------------------------------------- */
  .az-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--az-radius-pill);
    font-size: var(--az-text-sm);
    font-weight: var(--az-weight-bold);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--az-duration) var(--az-ease),
      border-color var(--az-duration) var(--az-ease),
      color var(--az-duration) var(--az-ease),
      box-shadow var(--az-duration) var(--az-ease);
  }
  .az-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .az-button--primary {
    background: linear-gradient(90deg, var(--az-navy) 0%, var(--az-navy-700) 100%);
    color: var(--az-white);
    box-shadow: var(--az-shadow-sm);
  }
  .az-button--primary:hover {
    background: var(--az-navy);
    box-shadow: 0 0 0 4px var(--az-blue-glow);
  }
  .az-button--secondary {
    background: var(--az-color-surface);
    color: var(--az-color-heading);
    border-color: var(--az-color-border);
    font-weight: var(--az-weight-medium);
  }
  .az-button--secondary:hover {
    background: var(--az-color-surface-muted);
    border-color: var(--az-color-heading);
  }
  .az-button--ghost {
    background: transparent;
    color: var(--az-color-heading);
    font-weight: var(--az-weight-medium);
  }
  .az-button--ghost:hover { background: var(--az-color-surface-muted); }
  .az-button--arrow::after {
    content: "→";
    content: "→" / "";
    font-weight: var(--az-weight-regular);
    transition: transform var(--az-duration) var(--az-ease);
  }
  .az-button--arrow:hover::after { transform: translateX(3px); }

  .az-icon-button {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--az-color-border);
    border-radius: 50%;
    background: var(--az-color-surface);
    color: var(--az-color-heading);
    line-height: 1;
    transition: background-color var(--az-duration) var(--az-ease),
      border-color var(--az-duration) var(--az-ease);
  }
  .az-icon-button:hover {
    background: var(--az-color-surface-muted);
    border-color: var(--az-color-heading);
  }
  .az-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Action link: "Learn more ->" (underlined on hover / active) ----------- */
  .az-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--az-color-action);
    font-weight: var(--az-weight-medium);
    text-decoration: none;
  }
  .az-action::after {
    content: "→";
    content: "→" / "";
    transition: transform var(--az-duration) var(--az-ease);
  }
  .az-action--external::after {
    content: "↗";
    content: "↗" / "";
  }
  .az-action:hover,
  .az-action:active {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
  }
  .az-action:hover::after { transform: translateX(3px); }
  .az-action--external:hover::after { transform: translate(2px, -2px); }

  /* Kicker, badges, callouts --------------------------------------------- */
  .az-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 var(--az-space-3);
    color: var(--az-color-text-muted);
    font-size: var(--az-text-xs);
    font-weight: var(--az-weight-medium);
    letter-spacing: var(--az-tracking-caps);
    line-height: 1.5;
    text-transform: uppercase;
  }
  .az-kicker::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--az-bright-blue);
  }

  .az-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: var(--az-radius-pill);
    background: var(--az-color-surface-muted);
    color: var(--az-color-heading);
    font-size: var(--az-text-xs);
    font-weight: var(--az-weight-medium);
    line-height: 1.5;
    white-space: nowrap;
  }
  .az-badge--accent { background: var(--az-blue-tint); color: var(--az-navy); }
  .az-badge--navy { background: var(--az-navy); color: var(--az-white); }
  .az-badge--outline { background: var(--az-color-surface); border-color: var(--az-color-border); }

  .az-callout {
    padding: var(--az-space-4) var(--az-space-5);
    border-radius: var(--az-radius-md);
    border-left: 3px solid var(--az-bright-blue);
    background: var(--az-color-surface-muted);
    color: var(--az-color-text);
  }

  /* Card ----------------------------------------------------------------- */
  .az-card {
    background: var(--az-color-surface);
    border: 1px solid var(--az-color-border-subtle);
    border-radius: var(--az-radius-lg);
    box-shadow: var(--az-shadow-md);
  }
  .az-card--interactive {
    transition: transform var(--az-duration) var(--az-ease),
      box-shadow var(--az-duration) var(--az-ease),
      border-color var(--az-duration) var(--az-ease);
  }
  .az-card--interactive:hover {
    transform: translateY(-3px);
    border-color: #C5D3E2;
    box-shadow: var(--az-shadow-lg);
  }

  /* Hero: navy band with the guideline's concentric ripple motif ---------- */
  .az-hero {
    --az-color-focus: var(--az-bright-blue);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--az-navy);
    color: var(--az-color-on-navy);
  }
  .az-hero::before,
  .az-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background: repeating-radial-gradient(circle,
      transparent 0 30px,
      rgb(255 255 255 / 0.05) 30px 54px);
    -webkit-mask-image: radial-gradient(circle, #000 0 40%, transparent 70%);
    mask-image: radial-gradient(circle, #000 0 40%, transparent 70%);
  }
  .az-hero::before { width: 760px; height: 760px; top: -330px; right: -240px; }
  .az-hero::after { width: 420px; height: 420px; bottom: -260px; left: -150px; opacity: 0.8; }
  .az-hero--panel { border-radius: var(--az-radius-lg); }
  .az-hero .az-kicker { color: var(--az-color-on-navy-muted); }
  .az-hero__title {
    margin: 0 0 var(--az-space-4);
    color: var(--az-white);
    font-size: var(--az-text-display);
    font-weight: var(--az-weight-medium);
    line-height: var(--az-leading-tight);
    letter-spacing: -0.03em;
  }
  .az-hero__accent { color: var(--az-bright-blue); }
  /* Subhead: half the headline size, in Light. */
  .az-hero__subtitle {
    margin: 0 0 var(--az-space-3);
    color: var(--az-white);
    font-size: calc(var(--az-text-display) / 2);
    font-weight: var(--az-weight-light);
    line-height: var(--az-leading-snug);
    letter-spacing: -0.01em;
  }
  .az-hero__lead {
    max-width: 62ch;
    margin: 0;
    color: var(--az-color-on-navy-muted);
    font-weight: var(--az-weight-light);
  }
  .az-hero a { color: var(--az-white); }

  /* Segmented control: audience filters, page tabs ----------------------- */
  .az-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: var(--az-radius-pill);
    background: var(--az-color-surface-muted);
  }
  .az-segmented > a,
  .az-segmented > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--az-radius-pill);
    background: transparent;
    color: var(--az-color-heading);
    font-size: var(--az-text-sm);
    font-weight: var(--az-weight-medium);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--az-duration) var(--az-ease),
      color var(--az-duration) var(--az-ease);
  }
  .az-segmented > a:hover,
  .az-segmented > button:hover { background: rgb(255 255 255 / 0.75); }
  .az-segmented > [aria-pressed="true"],
  .az-segmented > [aria-current="page"],
  .az-segmented > [aria-selected="true"] {
    background: var(--az-navy);
    color: var(--az-white);
    box-shadow: var(--az-shadow-sm);
  }
  .az-segmented__count {
    font-size: var(--az-text-xs);
    font-weight: var(--az-weight-regular);
    opacity: 0.75;
  }

  /* Search field --------------------------------------------------------- */
  .az-search {
    position: relative;
    display: flex;
    align-items: center;
  }
  .az-search__icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--az-color-text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    pointer-events: none;
  }
  .az-search__input {
    width: 100%;
    min-height: 46px;
    padding: 10px 18px 10px 44px;
    border: 1px solid var(--az-color-border);
    border-radius: var(--az-radius-pill);
    background: var(--az-color-surface);
    color: var(--az-color-text);
    font-size: var(--az-text-md);
    transition: border-color var(--az-duration) var(--az-ease),
      box-shadow var(--az-duration) var(--az-ease);
  }
  .az-search__input::placeholder { color: var(--az-color-text-muted); opacity: 1; }
  .az-search__input:focus { outline: none; }
  .az-search__input:focus-visible,
  .az-search:focus-within .az-search__input {
    outline: none;
    border-color: var(--az-color-heading);
    box-shadow: 0 0 0 4px var(--az-blue-glow);
  }

  /* Sidebar navigation item ---------------------------------------------- */
  .az-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--az-radius-sm);
    background: transparent;
    color: var(--az-color-text-muted);
    font-size: var(--az-text-sm);
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    transition: background-color var(--az-duration) var(--az-ease),
      color var(--az-duration) var(--az-ease);
  }
  .az-nav-item:hover {
    background: var(--az-color-surface);
    color: var(--az-color-heading);
  }
  .az-nav-item[aria-current]:not([aria-current="false"]),
  .az-nav-item[aria-pressed="true"],
  .az-nav-item.is-active {
    background: var(--az-color-surface);
    color: var(--az-color-heading);
    font-weight: var(--az-weight-medium);
    box-shadow: inset 3px 0 0 var(--az-bright-blue), var(--az-shadow-sm);
  }

  /* Table ---------------------------------------------------------------- */
  .az-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--az-text-sm);
  }
  .az-table th,
  .az-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--az-color-border-subtle);
    text-align: left;
    vertical-align: top;
  }
  .az-table thead th {
    background: var(--az-color-surface-muted);
    color: var(--az-color-heading);
    font-size: var(--az-text-xs);
    font-weight: var(--az-weight-bold);
    letter-spacing: 0.02em;
  }

  /* Footer --------------------------------------------------------------- */
  .az-footer {
    border-top: 1px solid var(--az-color-border-subtle);
    background: var(--az-color-surface-muted);
    color: var(--az-color-text-muted);
    font-size: var(--az-text-sm);
  }
  .az-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--az-space-3) var(--az-space-6);
    max-width: var(--az-container);
    margin-inline: auto;
    padding: var(--az-space-6) var(--az-gutter);
  }
  .az-footer__site,
  .az-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--az-space-2) var(--az-space-5);
    margin: 0;
  }
  .az-footer__site strong {
    color: var(--az-color-heading);
    font-weight: var(--az-weight-medium);
  }

  @media (max-width: 680px) {
    .az-brand__label {
      max-width: 15ch;
      padding-left: var(--az-space-4);
      font-size: var(--az-text-xs);
    }
    .az-segmented > a,
    .az-segmented > button { padding: 8px 12px; }
    .az-footer__inner { flex-direction: column; align-items: flex-start; }
  }
}
