/* Livera – Carbon-inspired variant.
   Borrowed from Carbon v11: IBM Plex Sans, the productive/expressive type scale,
   the spacing scale (8/16/24/32/48/64/80/96), the 16-column grid rhythm,
   gray-10 layers, square corners and the left-aligned button with an arrow.
   Not borrowed: Carbon blue and Carbon components. Livera uses its own red (logo #c8403a, UI #a3302b). */
:root {
  --bg: #ffffff;
  --layer: #f4f4f4;          /* gray 10 */
  --ink: #161616;            /* gray 100 */
  --muted: #525252;          /* gray 70 */
  --line: #e0e0e0;           /* gray 20 */
  --line-strong: #8d8d8d;    /* gray 50 */
  --brand: #a3302b;
  --brand-hover: #82241f;
  --link: #a3302b;
  --focus: #a3302b;
  --todo: #fff1a8;
  --max: 1312px;             /* Carbon max breakpoint content width */
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-size: 54px; line-height: 64px; font-weight: 300; }        /* heading-07 */
h2 { font-size: 32px; line-height: 40px; }                          /* heading-05 */
h3 { font-size: 20px; line-height: 28px; }                          /* heading-03 */
.h3 { font-size: 20px; line-height: 28px; margin-bottom: 8px; }
p { margin: 0; }
p + p { margin-top: 16px; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.measure { max-width: 40rem; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { top: 8px; }
.todo { background: var(--todo); padding: 0 4px; }

/* Header – Carbon UI shell proportions (48px bar) on white */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 64px; }
.logo img { display: block; height: 22px; width: auto; }
.logo { display: flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.site-nav li { display: flex; }
.site-nav a { display: flex; align-items: center; padding: 0 16px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 18px; border-bottom: 2px solid transparent; }
.site-nav a:hover { background: var(--layer); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.menu-btn { display: none; align-self: center; background: none; border: 0; padding: 12px 16px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: var(--layer); }

/* Intro */
.intro { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 10fr 6fr; gap: 32px; align-items: end; }
.kicker { font-size: 14px; line-height: 18px; color: var(--muted); margin-bottom: 24px; }
.lead { margin-top: 24px; font-size: 20px; line-height: 28px; color: var(--ink); max-width: 36rem; font-weight: 300; }
.facts-side { background: #fff; padding: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.facts-side div + div { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts-side strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; align-items: center; }
.btn { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 14px 64px 14px 16px; background: var(--brand); color: #fff; text-decoration: none; font-size: 14px; line-height: 18px; }
.btn::after { content: "→"; position: absolute; right: 16px; font-size: 16px; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.arrow-link { font-size: 14px; line-height: 18px; text-decoration: none; display: inline-block; padding: 15px 0; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

/* Sections */
section { padding: 64px 0; }
.tint { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; margin-bottom: 48px; }
.sec-head p { color: var(--muted); font-size: 16px; line-height: 24px; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; }
.split > h2 { position: sticky; top: 24px; align-self: start; }

/* Tiles: Carbon-style flat tiles separated by 1px gaps */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols > * { background: #fff; padding: 24px 24px 16px; }
.tint .cols > * { background: #fff; }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--muted); font-size: 16px; line-height: 24px; }
.cols p + p { margin-top: 8px; }
.status { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--muted); margin-bottom: 16px; }

/* Structured list (Carbon structured-list feel) */
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rule-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 32px; font-size: 14px; line-height: 20px; }
.rule-list strong { font-weight: 600; }
.rule-list span { color: var(--muted); }
.rule-list.simple li { display: block; font-size: 16px; line-height: 24px; }

/* Progress-indicator style steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 32px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 1px solid var(--brand); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--brand); background: #fff; }
.steps li::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--line-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 14px; line-height: 20px; }

/* Inline notification (Carbon "warning" low-contrast style, brand-neutral) */
.notice { border-left: 3px solid #b28600; background: #fcf4d6; padding: 16px; max-width: 40rem; font-size: 14px; line-height: 20px; }
.notice strong { display: block; margin-bottom: 4px; font-weight: 600; }

/* Group band – inverse theme (gray 100) with Livera green accent line */
.group { background: var(--ink); color: #c6c6c6; }
.group h2 { color: #fff; }
.group p { color: #c6c6c6; }
.group .cols { background: #393939; border-color: #393939; }
.group .cols.four { grid-template-columns: repeat(4, 1fr); }
.group .cols > * { background: #262626; border-top: 3px solid transparent; }
.group .cols > *:first-child { border-top-color: #ff8389; }
.group .cols h3 { color: #fff; font-size: 16px; line-height: 24px; font-weight: 600; }
.group .cols p { color: #c6c6c6; }

.contact-block dt { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--muted); margin-top: 16px; }
.contact-block dd { margin: 4px 0 0; font-size: 16px; line-height: 24px; }

.org { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line-strong); font-size: 14px; line-height: 20px; }
.org dt, .org dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.org dt { font-weight: 600; padding-right: 32px; }
.org dd { color: var(--muted); }

.prose { max-width: 40rem; }
.prose h2 { font-size: 20px; line-height: 28px; margin: 40px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 8px 0 0; }
.prose li + li { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--layer); padding: 48px 0 64px; font-size: 14px; line-height: 20px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 8fr 8fr; gap: 32px; }
.site-footer address { font-style: normal; }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 1056px) {  /* Carbon lg breakpoint */
  .menu-btn { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; height: auto; }
  .site-nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--brand); }
  .intro-grid, .sec-head, .split { grid-template-columns: 1fr; gap: 24px; }
  .split > h2 { position: static; }
  .cols.three, .group .cols.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 672px) {   /* Carbon md breakpoint */
  .wrap { padding: 0 16px; }
  h1 { font-size: 42px; line-height: 50px; }
  h2 { font-size: 28px; line-height: 36px; }
  .intro { padding: 48px 0; }
  section { padding: 48px 0; }
  .cols, .cols.three, .group .cols.four { grid-template-columns: 1fr; }
  .rule-list li { grid-template-columns: 1fr; gap: 4px; }
  .org { grid-template-columns: 1fr; }
  .org dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer ul { columns: 1; }
}

/* Keep intro text left-aligned with the grid; limit line length on the children. */
.wrap.measure { max-width: var(--max); }
.wrap.measure > * { max-width: 40rem; }
.wrap.measure > h1 { max-width: 30ch; text-wrap: balance; }
