/* ayves.ai: the few page patterns the reference pages do not have. Tokens only; no colour, radius,
   shadow, typeface or easing of its own. */

/* Footer with the site's sections in columns */
.x-foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 48px; align-items: start; }
.x-foot__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 32px; }
.x-foot__h { margin: 0 0 4px; color: var(--ay-text-primary); font: var(--ay-type-title-s-weight) var(--ay-type-title-s-size) / var(--ay-type-title-s-line) var(--ay-font-sans); letter-spacing: var(--ay-type-title-s-tracking); }
.x-foot__col ul { list-style: none; margin: 0; padding: 0; }
.x-foot__col a { display: inline-flex; align-items: center; min-height: var(--ay-size-tap); color: var(--ay-text-secondary); text-decoration: none; font: 400 var(--ay-type-body-s-size) / 1.3 var(--ay-font-sans); }
.x-foot__col a:hover { color: var(--ay-text-primary); text-decoration: underline; }
@media (max-width: 1079px) { .x-foot { grid-template-columns: minmax(0, 1fr); } .x-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .x-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The clickable platform on a tablet: landscape from 600 px, upright below */
.x-demo { margin-top: 56px; }
.x-demo iframe { display: block; width: 100%; max-width: 1120px; margin-inline: auto; border: 0; background: transparent; }
.x-demo__wide { aspect-ratio: 1180 / 820; }
.x-demo__tall { display: none !important; aspect-ratio: 820 / 1180; }
@media (max-width: 599px) { .x-demo__wide { display: none !important; } .x-demo__tall { display: block !important; } .x-demo { margin-top: 32px; } }

/* Team portraits: the photograph in the 4 by 5 portrait frame */
.x-portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: inset 0 0 0 1px var(--ay-line-hairline); }

/* Lenses and other short equal items in the hairline grid of the eight questions */
.x-grid .question { grid-template-rows: auto 1fr; }
.x-link { color: inherit; text-decoration: none; }
.x-link:hover { text-decoration: underline; }

/* A plan's contact action under its text */
.x-plan-act { display: block; margin-top: 12px; }

/* Plain text pages */
.x-prose { max-width: 680px; }
.x-prose p { color: var(--ay-text-secondary); font: 400 var(--ay-type-body-m-size) / var(--ay-type-body-m-line) var(--ay-font-sans); }
.x-prose p + p { margin-top: 12px; }
.x-prose__h { margin: 40px 0 12px; color: var(--ay-text-primary); }
.x-prose__h:first-child { margin-top: 0; }

/* Route groups on overview pages */
.x-group + .x-group { margin-top: 64px; }
.x-group__h { margin: 0 0 16px; color: var(--ay-text-primary); font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / var(--ay-type-title-l-line) var(--ay-font-sans); }

/* The lenses: norms, the base of every portfolio check, takes a full row; the nine themes fill three columns under it. One column on phones. */
.questions.x-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.questions.x-grid > li:first-child, .x-mega ul.x-mega__grid > li:first-child { grid-column: 1 / -1; }
@media (max-width: 699px) { .questions.x-grid { grid-template-columns: minmax(0, 1fr); } }
.x-link { display: inline-flex; align-items: center; min-height: var(--ay-size-tap); }
@media (max-width: 599px) { .x-grid .question { grid-template-columns: minmax(0, 1fr); } }

/* The client platform in the tablet frame: the app is laid out at 1.180 by 820 points and scaled with the screen */
.x-tablet__app { display: block; width: 1180px; height: 820px; border: 0; background: var(--ay-bg-page); }

/* Header menus: a panel under the bar, groups in columns */
.x-nav__item { display: flex; }
.x-nav__trigger { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; }
.x-nav__trigger svg { width: 10px; height: 10px; transition: transform var(--ay-duration-quick) var(--ay-ease-standard); }
.x-nav__trigger[aria-expanded="true"], .x-nav__trigger.is-current { background: var(--ay-bg-tonal); color: var(--ay-text-primary); }
.x-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.x-mega { position: absolute; left: 0; right: 0; top: 100%; padding: 28px 0 32px; background: var(--ay-bg-surface); box-shadow: var(--ay-shadow-3); border-radius: 0 0 var(--ay-radius-xl) var(--ay-radius-xl); }
.x-mega[hidden] { display: none; }
.x-mega__inner { display: grid; grid-template-columns: repeat(var(--_cols, 3), minmax(0, 1fr)); gap: 24px 48px; }
.x-mega__h { margin: 0 0 8px; color: var(--ay-text-tertiary); font: 600 12px / 1.3 var(--ay-font-sans); }
.x-mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.x-mega ul.x-mega__grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 48px; }
.x-mega__link { display: flex; flex-direction: column; gap: 2px; margin: 0 -12px; padding: 10px 12px; border-radius: var(--ay-radius-md); color: var(--ay-text-primary); text-decoration: none; }
.x-mega__link b { font: 550 15px / 1.3 var(--ay-font-sans); }
.x-mega__link span { color: var(--ay-text-secondary); font: 400 13px / 1.4 var(--ay-font-sans); }
.x-mega__link:hover, .x-mega__link:focus-visible { background: var(--ay-bg-tonal); outline: none; }
.x-mega__link[aria-current="page"] { background: var(--ay-bg-tonal); }

/* The menu sheet on smaller screens: the three menus fold open */
.x-sheet__group { border-bottom: 1px solid var(--ay-line-hairline); }
.x-sheet__group summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--ay-size-tap); padding: 12px 0; cursor: pointer; list-style: none; color: var(--ay-text-primary); font: var(--ay-type-title-l-weight) var(--ay-type-title-l-size) / 1.2 var(--ay-font-sans); }
.x-sheet__group summary::-webkit-details-marker { display: none; }
.x-sheet__group summary svg { width: 12px; height: 12px; transition: transform var(--ay-duration-quick) var(--ay-ease-standard); }
.x-sheet__group[open] summary svg { transform: rotate(180deg); }
.x-sheet__links { display: grid; padding-bottom: 12px; }
.x-sheet__h { margin: 12px 0 2px; color: var(--ay-text-tertiary); font: 600 12px / 1.3 var(--ay-font-sans); }
.ay-sheet__nav .x-sheet__links a { min-height: var(--ay-size-tap); padding: 8px 0; border-bottom: 0; color: var(--ay-text-secondary); font: 500 16px / 1.3 var(--ay-font-sans); }
.ay-sheet__nav .x-sheet__links a[aria-current="page"] { color: var(--ay-text-primary); }

/* The data date under the tablet */
.x-tablet-caption { margin: 32px 0 0; text-align: center; color: var(--ay-text-tertiary); font: 400 12px / 1.4 var(--ay-font-sans); }

/* A short statement with a link, beside a section title */
.x-lead { display: grid; gap: 24px; align-content: start; }
.x-lead p { margin: 0; color: var(--ay-text-primary); }

/* The header is a full-width frosted bar on every page, also before the scripts run.
   The hairline under it appears once the page scrolls (the design system's .is-scrolled). */
.ay-header { background: var(--ay-bg-glass); -webkit-backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); backdrop-filter: blur(var(--ay-glass-blur)) saturate(var(--ay-glass-saturate)); }

/* Keeps a hyphenated term on one line in a large heading */
.x-nw { white-space: nowrap; }
