/* LIVO 2026 site additions.
 * Extends the existing Editorial design without replacing its layout or fonts.
 */

:root {
  --livo-accent: #f56a6a;
  --livo-heading: #3d4449;
  --livo-text: #626b72;
  --livo-soft: #f5f6f7;
  --livo-border: rgba(210, 215, 217, 0.75);
}

html {
  scroll-behavior: smooth;
}

body,
input,
select,
textarea {
  color: var(--livo-text);
  font-size: 11.5pt;
}

body {
  overflow-wrap: anywhere;
}

header p {
  letter-spacing: 0.015em;
  text-transform: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--livo-accent);
  outline-offset: 3px;
}

.skip-link {
  background: var(--livo-heading);
  color: #fff !important;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10001;
}

.skip-link:focus {
  top: 1rem;
}

#header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#header .logo img {
  display: block;
  height: auto;
  width: 170px;
}

#banner .actions {
  flex-wrap: wrap;
  margin-top: 2rem;
  row-gap: 0.75rem;
}

#banner .content {
  min-width: 0;
}

#banner .content > :last-child {
  margin-bottom: 0;
}

#banner .content header p {
  line-height: 1.7;
}

.service-status {
  color: var(--livo-accent);
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.eyebrow {
  color: var(--livo-accent);
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.lead {
  color: #5f676d;
  font-size: 1.12em;
  line-height: 1.75;
}

.section-intro {
  max-width: 50rem;
}

.journey {
  counter-reset: journey;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.journey article {
  border-top: 3px solid var(--livo-accent);
  min-width: 0;
  padding-top: 1.25rem;
  position: relative;
}

.journey article::before {
  color: var(--livo-accent);
  content: "0" counter(journey);
  counter-increment: journey;
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.journey h3 {
  margin-bottom: 0.55rem;
}

.journey p {
  margin-bottom: 0;
}

.route-grid,
.evidence-grid,
.dimension-grid,
.insight-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.route-card,
.evidence-card,
.dimension-card,
.insight-card,
.notice {
  border: 1px solid var(--livo-border);
  border-radius: 0.375em;
  padding: 1.6rem;
}

.route-card {
  display: flex;
  flex-direction: column;
}

.route-card .actions {
  margin-top: auto;
}

.route-card p:last-of-type,
.evidence-card p:last-child,
.dimension-card p:last-child,
.insight-card p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.route-label,
.case-label,
.meta-label {
  color: var(--livo-accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.case-row {
  border-top: 1px solid var(--livo-border);
  padding: 0.85rem 0;
}

.case-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case-row:last-child {
  padding-bottom: 0;
}

.principles {
  columns: 2;
  column-gap: 3rem;
}

.principles li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.cta-panel {
  background: var(--livo-heading);
  border-radius: 0.375em;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem;
}

.cta-panel h2,
.cta-panel h3 {
  color: #fff;
}

.cta-panel a:not(.button) {
  color: #fff;
}

.service-section {
  scroll-margin-top: 2rem;
}

.service-details {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-details h3 {
  margin-bottom: 0.6rem;
}

.service-details ul {
  margin-bottom: 0;
}

.decision-principle {
  border-left: 4px solid var(--livo-accent);
  color: var(--livo-heading);
  font-family: "Roboto Slab", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.dimension-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dimension-card {
  padding: 1.25rem;
  text-align: center;
}

.dimension-card .icon {
  color: var(--livo-accent);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.selection-table th:first-child {
  width: 30%;
}

.selection-table th:nth-child(2) {
  width: 28%;
}

.programme-path {
  border-left: 3px solid var(--livo-accent);
  padding-left: 1.5rem;
}

.article-meta {
  color: var(--livo-text);
  font-size: 0.85rem;
  margin-top: -0.5rem;
}

.article-body {
  margin: 0 auto;
  padding-bottom: 2rem;
}

.article-body > header {
  margin-bottom: 3rem;
}

.article-body > section {
  margin-bottom: 2.5rem;
}

.founder-profile {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  max-width: 62rem;
}

.founder-portrait {
  background: var(--livo-soft);
  border-radius: 0.375em;
  display: block;
  height: auto;
  width: 100%;
}

.contact-banner {
  padding-bottom: 2.5rem !important;
}

.contact-banner .content {
  max-width: 52rem;
  width: 100% !important;
}

.content-narrow {
  max-width: 52rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field--full {
  grid-column: 1 / -1;
}

.required {
  color: var(--livo-accent);
}

.optional {
  color: var(--livo-text);
  font-size: 0.85em;
  font-weight: 400;
}

.form-note {
  background: var(--livo-soft);
  border-left: 3px solid var(--livo-accent);
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
}

.consent-row {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  width: auto;
}

.hp-field {
  left: -10000px;
  position: absolute;
}

.redirect-notice {
  margin: 5rem auto;
  max-width: 44rem;
  text-align: center;
}

.no-js-note {
  border: 1px solid var(--livo-border);
  padding: 1rem;
}

.copyright-year {
  white-space: nowrap;
}

#menu ul button.opener {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 400;
  height: auto;
  letter-spacing: inherit;
  line-height: inherit;
  padding: 0.625em 0;
  position: relative;
  text-align: left;
  text-transform: inherit;
  width: 100%;
}

#menu ul button.opener::before {
  color: #9fa3a6;
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#menu ul button.opener:hover,
#menu ul button.opener:hover::before {
  color: var(--livo-accent);
}

#menu ul button.opener.active + ul {
  display: block;
}

#menu ul button.opener.active::before {
  transform: rotate(-180deg);
}

@media screen and (max-width: 1280px) {
  .journey,
  .dimension-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 980px) {
  .journey,
  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-details {
    grid-template-columns: 1fr;
  }

  .founder-profile {
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media screen and (max-width: 736px) {
  #header .logo img {
    width: 135px;
  }

  #breadcrumb {
    text-align: left;
  }

  #banner .actions li {
    display: block;
    margin: 0 0 0.8rem;
    width: 100%;
  }

  #banner .actions .button {
    width: 100%;
  }

  .journey,
  .route-grid,
  .evidence-grid,
  .dimension-grid,
  .insight-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .founder-profile {
    grid-template-columns: 1fr;
  }

  .founder-portrait {
    max-width: 22rem;
  }

  .principles {
    columns: 1;
  }

  .cta-panel {
    padding: 1.75rem;
  }

  .selection-table table,
  .selection-table thead,
  .selection-table tbody,
  .selection-table th,
  .selection-table td,
  .selection-table tr {
    display: block;
  }

  .selection-table thead {
    left: -10000px;
    position: absolute;
  }

  .selection-table tr {
    border: 1px solid var(--livo-border);
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .selection-table td {
    border: 0;
    padding: 0.45rem;
  }

  .selection-table td::before {
    color: var(--livo-heading);
    content: attr(data-label);
    display: block;
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
