/* The public site in the Vainu V2 look. Every value comes from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

/* Clears the nav, the tabs and the summary above them. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 170px; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font: 400 var(--fs-body-md) / var(--lh-normal) var(--font-body);
}

h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.ruler { max-width: calc(var(--page-max) + 2 * var(--page-x)); margin: 0 auto; padding: 0 var(--page-x); }

@media (min-width: 820px) {
  :root { --page-x: 40px; }
}

/* Links and buttons */

a { color: inherit; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 560ms var(--ease-out); }
.link:hover { background-size: 100% 1px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-button);
  font: 400 var(--fs-body-sm) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-glide), color var(--dur-base) var(--ease-glide), transform var(--dur-fast) var(--ease-out);
}
.button:active { transform: scale(0.97); }
/* The page's one green: the primary button glides to it on hover. */
.button--primary { background: var(--vu-black); color: var(--vu-white); }
.button--primary:hover { background: var(--vu-green); color: var(--vu-green-ink); }

@media (min-width: 820px) {
  .nav .button { min-height: 32px; }
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__bar { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.nav__logo { display: block; width: 88px; color: var(--text-primary); }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; font-size: var(--fs-body-sm); }
.nav__login { display: none; }
@media (min-width: 820px) {
  .nav__bar { min-height: 76px; }
  .nav__login { display: inline; }
}

.nav__languages { position: relative; }
.nav__languages summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; color: var(--text-secondary); }
.nav__languages summary::-webkit-details-marker { display: none; }
.nav__languages ul {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 160px;
  padding: var(--space-2) 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-ui);
}
.nav__languages a { display: block; padding: var(--space-2) var(--space-4); text-decoration: none; }
.nav__languages a:hover, .nav__languages a[aria-current] { color: var(--text-primary); background: var(--surface-canvas); }

/* Headline: Aeroport 400 black statement, Aeroport 300 grey continuation. */

.headline {
  font: 400 var(--fs-heading-lg) / var(--lh-tight) var(--font-sans);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.headline__tail { font-weight: 300; color: var(--vu-grey-400); }
.headline--band { font-size: var(--fs-heading-md); }
@media (min-width: 820px) {
  .headline { font-size: var(--fs-heading-xl); }
  .headline--band { font-size: var(--fs-heading-lg); }
}

.label { font: 500 var(--fs-micro) / 1.4 var(--font-body); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-secondary); }

/* Sections */

.section { padding: var(--space-16) 0; }
.section--paper { background: var(--vu-paper); }
.section__title { font: 400 var(--fs-heading-md) / var(--lh-snug) var(--font-sans); letter-spacing: -0.02em; margin-bottom: var(--space-8); }
@media (min-width: 820px) {
  .section { padding: var(--space-20) 0; }
}

/* Profile */

.profile { padding: var(--space-12) 0 var(--space-12); }
.profile__description { max-width: 64ch; margin-top: var(--space-6); color: var(--text-secondary); font-weight: 300; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.breadcrumb { margin-bottom: var(--space-6); font-size: var(--fs-caption); color: var(--text-secondary); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); color: var(--text-tertiary); }

/* Figures: Aeroport 400 over a hairline, uppercase label below. */

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 820px) {
  .figures { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.figure { padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.figures > .figure:first-child { border-top-color: var(--border-strong); }
.figure__value { font: 400 var(--fs-heading-md) / var(--lh-tight) var(--font-sans); letter-spacing: -0.04em; }
.figure--large .figure__value { font-size: var(--fs-heading-md); }
@media (min-width: 820px) {
  .figure--large .figure__value { font-size: var(--fs-heading-lg); }
}
.figure__label { margin-top: var(--space-2); font: 500 var(--fs-micro) / 1.4 var(--font-body); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-secondary); }
.figure__year { color: var(--text-tertiary); }
.figure__change { font: 400 var(--fs-caption) / 1 var(--font-body); letter-spacing: 0; color: var(--text-secondary); white-space: nowrap; }
.figure__change--down { color: var(--vu-negative); }
.figure__caption { margin-top: var(--space-1); font-size: var(--fs-caption); color: var(--text-secondary); }.figure__note { margin-top: var(--space-1); font-size: var(--fs-caption); color: var(--text-tertiary); }
.figure--outdated .figure__value { color: var(--text-tertiary); }
.figure__approximate { margin-right: var(--space-1); color: var(--text-tertiary); }
.figures--small .figure__value { font-size: var(--fs-heading-sm); }

/* Tabs: plain anchors, the bar stays under the nav. */

.tabs { position: sticky; top: 64px; z-index: 5; background: var(--surface-page); border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 820px) { .tabs { top: 76px; } }
.tabs__links { display: flex; gap: var(--space-6); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; min-height: 48px; font-size: var(--fs-body-sm); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text-primary); }

/* The headline and key figures in one line, folded open by the script in company.html. */
.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-8);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-base) var(--ease-glide), opacity var(--dur-base) var(--ease-glide), padding var(--dur-base) var(--ease-glide);
}
.tabs--summary .summary { max-height: 80px; padding-top: var(--space-3); opacity: 1; }
.summary__name { font: 400 var(--fs-body-lg) / var(--lh-snug) var(--font-sans); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.summary__location { font-weight: 300; color: var(--vu-grey-400); }
.summary__figures { display: none; gap: var(--space-6); font-size: var(--fs-caption); color: var(--text-secondary); white-space: nowrap; }
.summary__value { font: 400 var(--fs-body-md) / 1 var(--font-sans); color: var(--text-primary); letter-spacing: -0.02em; }
@media (min-width: 620px) { .summary__figures { display: flex; } }
/* With one section there are no tabs: the bar shows only while it carries the summary. */
.tabs:not(:has(.tabs__links)):not(.tabs--summary) { border-bottom-color: transparent; }
.tabs:not(:has(.tabs__links)) .summary { padding-bottom: var(--space-3); }

/* Basic details */

.details-layout { display: grid; gap: var(--space-12); }
@media (min-width: 980px) { .details-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }

.details__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); }
@media (min-width: 620px) { .details__row { grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-6); } }
.details__row dt { font-size: var(--fs-body-sm); color: var(--text-secondary); }
.details__row dd { overflow-wrap: anywhere; font-size: var(--fs-body-sm); }
.details__row--alert dd { color: var(--vu-negative); }
.details__line { display: block; }
.details__more summary { cursor: pointer; color: var(--text-secondary); font-size: var(--fs-body-sm); }

.card { container-type: inline-size; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--surface-canvas); }
.cta-card { padding: var(--space-8); display: grid; gap: var(--space-4); justify-items: start; }
.cta-card__count { font: 300 var(--fs-display-md) / 0.9 var(--font-sans); letter-spacing: -0.05em; }
.cta-card__title { font: 400 var(--fs-heading-sm) / var(--lh-snug) var(--font-sans); letter-spacing: -0.02em; }
.cta-card__aside { font-weight: 300; color: var(--text-secondary); }

/* People: the channels Vainu holds, as icons; a person known only from the web has no name. */
.channels { width: 1%; white-space: nowrap; text-align: right; }
.channels__list { display: inline-flex; gap: var(--space-3); color: var(--text-primary); }
/* The global `svg { max-width: 100% }` shrank these to nothing in the shrink-to-fit cell. */
/* A missing channel keeps its slot, so each icon stays in its own column. */
.channel { flex: none; width: 20px; height: 20px; max-width: none; }
.table thead td { border-bottom-color: var(--border-strong); }
.person--anonymous td:first-child { color: var(--text-secondary); font-style: italic; }

/* People and registers side by side; one of them alone takes the whole width. */
.split { display: grid; gap: var(--space-16); }
@media (min-width: 980px) { .split { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }

/* Tables */

.table-scroll { margin-top: var(--space-12); overflow-x: auto; }

/* Sparklines: one grey bar per year; only the newest is coloured: green after a rise, red after a fall
   or when it is a loss, otherwise black. */

.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: var(--space-3); }
.sparkline__bar { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--vu-grey-200); }
.sparkline__bar:last-child { background: var(--vu-black); }
.sparkline__bar--negative:last-child, .sparkline--down .sparkline__bar:last-child { background: var(--vu-negative); }
.sparkline--up .sparkline__bar:last-child { background: var(--vu-green); }
/* Tiles in a row share their height; the bars sit on one baseline whatever lines the tiles carry. */
.figure { display: flex; flex-direction: column; }
.figure > .sparkline { margin-top: auto; padding-top: var(--space-3); box-sizing: content-box; }
.table__trend { width: 88px; }
.table__trend .sparkline { width: 64px; height: 18px; margin: 0 0 0 auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.table thead th { font: 500 var(--fs-micro) / 1.4 var(--font-body); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-secondary); border-bottom-color: var(--border-strong); }
.table-scroll .table td, .table-scroll .table thead th + th { text-align: right; white-space: nowrap; }
.table tbody th { font-weight: 400; color: var(--text-secondary); }

/* Technologies */

.reach { display: grid; gap: var(--space-8); margin-bottom: var(--space-16); }
@media (min-width: 820px) { .reach { grid-template-columns: 1fr 1fr; } }
.technologies { display: grid; gap: var(--space-8); }
@media (min-width: 820px) { .technologies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.chips li { padding: var(--space-1) var(--space-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-ui); background: var(--surface-card); font-size: var(--fs-caption); }

/* Search */

.nav__search { display: none; flex: 1; max-width: 420px; }
@media (min-width: 820px) { .nav__search { display: block; } }

.search__input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-6);
  border: 1px solid var(--border-subtle);
  /* Pill-shaped, like the vainu.com form fields. */
  border-radius: var(--radius-button);
  background: var(--surface-card);
  color: var(--text-primary);
  font: 400 var(--fs-body-md) / 1 var(--font-body);
  transition: border-color var(--dur-base) var(--ease-glide);
}
.search__input:hover { border-color: var(--border-default); }
.search__input:focus { border-color: var(--border-strong); outline: none; }
.search__input--nav { min-height: 36px; padding: 0 var(--space-4); font-size: var(--fs-body-sm); }

.hero { padding-bottom: var(--space-12); }
.hero__subtitle { max-width: 56ch; margin-top: var(--space-4); color: var(--text-secondary); font-weight: 300; }
/* One pill: the Enter hint and a round magnifier button sit inside its right end. */
.search { position: relative; margin-top: var(--space-8); max-width: 720px; }
.search .search__input { min-height: 52px; padding-right: 140px; }
.search__enter { position: absolute; top: 50%; right: 58px; transform: translateY(-50%); padding: 2px 7px; border: 1px solid var(--border-subtle); border-radius: var(--radius-ui); color: var(--text-tertiary); font: var(--fs-micro) / 1.4 var(--font-body); pointer-events: none; }
/* A touch keyboard has its own search key. */
@media (hover: none) {
  .search .search__input { padding-right: 60px; }
  .search__enter { display: none; }
}
.search__submit { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--vu-black); color: var(--vu-white); cursor: pointer; transition: background-color var(--dur-base) var(--ease-glide), color var(--dur-base) var(--ease-glide), transform var(--dur-fast) var(--ease-out); }
.search__submit:hover { background: var(--vu-green); color: var(--vu-green-ink); }
.search__submit:active { transform: scale(0.94); }
.search__hint { margin-top: var(--space-2); color: var(--text-tertiary); font-size: var(--fs-caption); }

/* Ticker: the newest news, scrolling slowly; it stops under the pointer so a headline can be clicked.
   Borderless paper tiles that lift into a card on hover, like the customer grid on vainu.com. */
.ticker { margin-bottom: var(--space-16); padding-block: var(--space-4); overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 90s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
/* The trailing padding is the gap between the two copies, so the loop at -50% is seamless. */
.ticker__list { display: flex; gap: var(--space-2); padding-right: var(--space-2); }
.ticker__item { display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); min-height: 64px; padding: var(--space-3) var(--space-8); border-radius: var(--radius-ui); background: var(--vu-paper); font-size: var(--fs-body-sm); color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: background-color .2s, box-shadow .2s; }
.ticker__item b { font-weight: 500; color: var(--text-primary); }
.ticker__item:hover { color: var(--text-primary); background: var(--surface-card); box-shadow: 0 8px 24px rgb(0 0 0 / 8%); }
/* A long headline is cut and fades out; the whole one is in its title. */
.ticker__headline { max-width: 48ch; overflow: hidden; }
.ticker__headline--cut { mask-image: linear-gradient(to right, #000 75%, transparent); }
.ticker__id, .ticker__time { color: var(--text-tertiary); font-size: var(--fs-caption); }
.ticker__id { font-variant-numeric: tabular-nums; }
.ticker__line { display: flex; align-items: center; gap: var(--space-2); }
.ticker__flag { flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 8%); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
/* Asked for less motion: a third of the speed rather than none, so the band still reads as live. */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation-duration: 270s; }
}

.notice { margin-bottom: var(--space-8); padding: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-ui); background: var(--vu-paper); }

.results { margin-top: var(--space-12); max-width: 720px; }
.results__countries ul { display: flex; flex-wrap: wrap; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-strong); }
.results__countries a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-secondary); text-decoration: none; font-size: var(--fs-body-sm); }
.results__countries a[aria-current] { color: var(--text-primary); }
.result { padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.result__name { font: 400 var(--fs-heading-sm) / var(--lh-snug) var(--font-sans); letter-spacing: -0.02em; }
.result__meta { margin-top: var(--space-1); color: var(--text-secondary); font-size: var(--fs-body-sm); }
.results__empty { margin-top: var(--space-6); color: var(--text-secondary); }

.profile__description--full { display: block; -webkit-line-clamp: none; margin-top: var(--space-8); }

/* Closing CTA band */

.cta-band { display: grid; justify-items: center; gap: var(--space-6); padding: var(--space-16) var(--space-6); text-align: center; background: var(--surface-canvas); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); }
.cta-band__support { max-width: 48ch; color: var(--text-secondary); font-size: var(--fs-body-lg); font-weight: 300; }

/* Footer */

.footer { padding: var(--space-16) 0 var(--space-8); border-top: 1px solid var(--border-subtle); }
.footer__statement { font: 400 var(--fs-heading-md) / var(--lh-snug) var(--font-sans); letter-spacing: -0.02em; }
.footer__figures { margin-top: var(--space-3); color: var(--text-secondary); font-size: var(--fs-body-sm); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-6); margin-top: var(--space-12); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); font-size: var(--fs-caption); color: var(--text-secondary); }
.footer__legal a { min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
