/* =====================================================
   Lateral Minds Pages: homepage, Lincoln and Hull pages
   Palette and type match the Lateral Minds parent theme.
   ===================================================== */

.lmx-page {
  --ink: #312B56;
  --paper: #F7F6FB;
  --violet: #5A54A4;
  --violet-dark: #453F85;
  --edge: #FFB238;
  --line: #DDD9EC;
  --tint: #EDEAF7;
  --shadow: 0 2px 6px rgba(49, 43, 86, 0.07), 0 12px 32px rgba(49, 43, 86, 0.08);
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  overflow: hidden;
}
.lmx-page *,
.lmx-page *::before,
.lmx-page *::after { box-sizing: border-box; }

.lmx-page p { margin: 0 0 12px; font-size: 19px; }
.lmx-page a { color: var(--violet-dark); }
.lmx-page a:hover { color: var(--ink); }
.lmx-page a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--edge);
}

.lmx-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lmx-section { padding: 80px 0; }
.lmx-section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lmx-section--tint { background: var(--tint); }
.lmx-section--ink { background: var(--ink); color: var(--paper); }
.lmx-section--ink a { color: #fff; font-weight: 700; }

/* Type */
.lmx-eyebrow { font-size: 17px; font-weight: 700; color: var(--violet-dark); margin: 0 0 12px; }
.lmx-h1, .lmx-h2, .lmx-h3 {
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: inherit;
  margin: 0;
}
.lmx-h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.12; margin-bottom: 24px; }
.lmx-h1--page { font-size: clamp(36px, 5.2vw, 62px); }
.lmx-h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin-bottom: 16px; }
.lmx-h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.lmx-edge {
  background-image: linear-gradient(transparent 78%, var(--edge) 78%, var(--edge) 94%, transparent 94%);
}
.lmx-page .lmx-lead { font-size: 21px; line-height: 1.5; max-width: 600px; }
.lmx-page .lmx-lead--strong { font-weight: 700; }
.lmx-page .lmx-accent { color: var(--edge); font-weight: 700; }
.lmx-section--ink .lmx-h2 { color: #fff; }
.lmx-page .lmx-narrow { max-width: 760px; }

/* Buttons */
.lmx-btn {
  display: inline-block;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 12px;
  text-decoration: none;
  min-height: 44px;
  border: 2px solid transparent;
}
.lmx-page .lmx-btn--primary { background: var(--edge); color: var(--ink); }
.lmx-page .lmx-btn--dark { background: var(--ink); color: var(--paper); }
.lmx-page .lmx-btn--ghost { border-color: var(--ink); color: var(--ink); }
.lmx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

/* Chips */
.lmx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lmx-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: 700;
}

/* Layout */
.lmx-hero { padding: 72px 0 120px; }
.lmx-hero--page { padding: 72px 0 88px; }
.lmx-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lmx-split--top { align-items: flex-start; }
.lmx-col { flex: 1 1 440px; min-width: 0; }
.lmx-col--narrow { flex: 1 1 340px; }
.lmx-col--wide { flex: 2 1 520px; }

/* Hero panel with the angled edge */
.lmx-panel { position: relative; width: 100%; max-width: 420px; padding: 28px 0; margin: 0 auto; }
.lmx-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violet);
  border-radius: 22px;
  transform: rotate(-4deg);
}
.lmx-panel::after {
  content: "";
  position: absolute;
  left: -14px;
  right: 30px;
  bottom: 6px;
  height: 14px;
  background: var(--edge);
  border-radius: 4px;
  transform: rotate(-4deg);
}
.lmx-panel__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  margin: 0 22px;
  box-shadow: 0 2px 6px rgba(49, 43, 86, 0.07), 0 12px 32px rgba(49, 43, 86, 0.12);
}
.lmx-panel__label { font-size: 16px; font-weight: 700; color: var(--violet-dark); margin: 0 0 14px; }
.lmx-panel__title {
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 20px;
}

/* Amber square bullets */
.lmx-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lmx-ticks li { position: relative; padding-left: 22px; font-size: 18px; }
.lmx-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  background: var(--edge);
  transform: rotate(-4deg);
}

/* Angled dark band */
.lmx-band {
  background: var(--ink);
  color: var(--paper);
  margin-top: -56px;
  padding: 128px 0 88px;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
}
.lmx-band a { color: #fff; font-weight: 700; }
.lmx-band .lmx-h2 { color: #fff; }
.lmx-band__card { background: var(--violet-dark); border-radius: 18px; padding: 32px; }
.lmx-band__card .lmx-panel__label { color: var(--edge); }
.lmx-band__card .lmx-panel__title { color: #fff; margin: 0; }

/* Cards */
.lmx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.lmx-cards--four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lmx-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.lmx-page .lmx-card p { font-size: 17px; margin: 0; }
.lmx-page .lmx-card p + p { margin-top: 10px; }
.lmx-card__bar { width: 36px; height: 6px; background: var(--edge); transform: rotate(-4deg); margin-bottom: 18px; }
.lmx-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--edge);
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* Fact bars */
.lmx-bars { display: flex; flex-direction: column; gap: 14px; }
.lmx-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--edge);
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 19px;
  font-weight: 700;
}
.lmx-bar--plain { background: #fff; font-weight: 400; font-size: 18px; }

/* Person card */
.lmx-person { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.lmx-person::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 0;
  width: 72px;
  height: 8px;
  background: var(--edge);
  transform: rotate(-4deg);
}
.lmx-person__name { font-size: 16px; font-weight: 700; color: var(--violet-dark); margin: 8px 0 14px; }
.lmx-person ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }

/* Place tiles */
.lmx-tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--edge);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.lmx-tile--violet { border-top-color: var(--violet); }
.lmx-tile__name {
  display: block;
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.lmx-tile__text { display: block; color: #4A4470; font-size: 17px; }

/* FAQ */
.lmx-faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--edge);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.lmx-faq__item .lmx-h3 { font-size: 22px; }
.lmx-page .lmx-faq__item p { margin: 0; font-size: 18px; }

/* Testimonials */
.lmx-quote { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); margin: 0; }
.lmx-quote p { font-size: 19px; }
.lmx-quote cite { font-style: normal; font-weight: 700; color: var(--violet-dark); }

/* Contact list */
.lmx-contact { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.lmx-contact dt { font-size: 16px; font-weight: 700; color: var(--edge); }
.lmx-contact dd { margin: 0; font-size: 18px; color: #fff; }
.lmx-links { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
