/* ==========================================================================
   Adapt Practice -- EU AI Act & Workplace AI Literacy Training stylesheet

   Page-specific components for eu-ai-act-training.html only.
   This file must be loaded after adapt-practice.css.
   Header, hero, sub-nav, split layout, info panel, checklist, feature
   panel, editorial rows, connected process and final CTA all come from
   adapt-practice.css. The footnote, audience and FAQ blocks below follow
   the same per-page convention as ai-visibility-audit.css, because those
   components are not in the shared stylesheet.
   ========================================================================== */

.eu-ai-act-page .section__header,
.eu-ai-act-page .section__intro { max-width: 820px; }

/* Short sub-nav: keep the shared overflow-x safety net, hide the bar. */
.eu-ai-act-page .page-subnav__links { scrollbar-width: none; }
.eu-ai-act-page .page-subnav__links::-webkit-scrollbar { display: none; }

.split-layout--centred { align-items: center; }

/* =========================================================================
   Hero
   ========================================================================= */
.eu-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
}

.page-hero__content .eu-hero__support {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

/* =========================================================================
   Shared body copy
   ========================================================================= */
.eu-lead {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.eu-body {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.section--navy .eu-lead--navy { color: var(--white); }
.section--navy .eu-body--navy { color: rgba(255, 255, 255, 0.78); }

.section__footnote {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
  margin-top: 2rem;
  max-width: 780px;
}

/* =========================================================================
   Why it matters -- provider / deployer comparison
   ========================================================================= */
.role-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.role-compare__col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.role-compare__col--highlight { border-top: 4px solid var(--teal); }

.role-compare__col h3 { margin: 0.6rem 0 0.75rem; }
.role-compare__col p:not(.editorial-tag) {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.role-compare__col .role-compare__example {
  margin-top: 0.75rem;
  font-style: italic;
}
.role-compare__col .role-compare__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--teal-text);
}

/* =========================================================================
   Article 4 -- quoted provision, four-step framework
   ========================================================================= */
.article-quote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.article-quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--navy);
}

.article-quote figcaption {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-quote figcaption a {
  color: var(--gold-deep);
  font-weight: 600;
}
.article-quote figcaption a:hover { color: var(--gold-deep-hover); }

.a4-framework__header { margin: 4rem 0 2rem; }
.a4-framework__title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.a4-framework {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.a4-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.a4-step .connected-process__number {
  flex-shrink: 0;
  margin-bottom: 0;
}
.a4-step h4 {
  font-size: 1.1rem;
  margin: 0.55rem 0 0.6rem;
}
.a4-step p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.a4-step__points {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.a4-step__points li {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.a4-step__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.eu-callout { margin-top: 3rem; }
.eu-callout p + p { margin-bottom: 0; }

/* =========================================================================
   Baseline -- two-column editorial rows
   ========================================================================= */
.baseline-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  border-top: none;
}

/* =========================================================================
   Roles -- tiers with a text-labelled depth meter
   ========================================================================= */
.role-tiers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.role-tier {
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--teal);
  padding: 2rem 1.75rem;
}
.role-tier:nth-child(3) { border-top-color: var(--gold); }

.role-tier__depth {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.role-tier__meter {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.role-tier__meter span {
  width: 14px;
  height: 6px;
  border-radius: 2px;
  background: var(--grey-mid);
}
.role-tier__meter--1 span:nth-child(-n+1),
.role-tier__meter--2 span:nth-child(-n+2),
.role-tier__meter--3 span:nth-child(-n+3) { background: var(--teal); }

.role-tier h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.role-tier p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.role-tier .role-tier__who {
  color: var(--text-body);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.role-tier .role-tier__focus-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

/* =========================================================================
   The training (navy section)
   ========================================================================= */
.navy-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 1rem;
}

.navy-list,
.training-components {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.navy-list li,
.training-components li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.navy-list li::before,
.training-components li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.method-strip {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.method-strip li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.method-strip strong { color: var(--white); }
.method-strip__number {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--gold);
}

.training-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
/* Columns rather than grid so a wrapped item doesn't stretch its row. */
.training-components:not(.training-components--single) {
  display: block;
  columns: 2;
  column-gap: 2rem;
}
.training-components:not(.training-components--single) li {
  break-inside: avoid;
  margin-bottom: 0.65rem;
}

.section--navy .training-detail__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================================
   What the organisation receives
   ========================================================================= */
.eu-disclaimer {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--grey);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* =========================================================================
   From training to adoption
   ========================================================================= */
.adoption-extras {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.adoption-extras__intro {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.adoption-extras__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================================================
   Who this is for (same pattern as ai-visibility-audit.css)
   ========================================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.audience-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
}
.audience-col--for { border-top: 3px solid var(--teal); }
.audience-col--not-for { border-top: 3px solid var(--grey-mid); }

.audience-col h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.audience-col--for h3 { color: var(--gold-deep); }
.audience-col--not-for h3 { color: var(--text-muted); }

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.audience-list li {
  font-size: 0.95rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
}
.audience-col--for .audience-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.audience-col--not-for .audience-list li::before {
  content: '✕';
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================================
   Timeline
   ========================================================================= */
.ai-act-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
}

.ai-act-timeline__item {
  position: relative;
  padding-top: 2rem;
}
/* Rail segment + node per item, so it wraps cleanly at any column count. */
.ai-act-timeline__item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: -2rem;
  height: 2px;
  background: var(--grey-mid);
}
.ai-act-timeline__item:last-child::before { right: 0; }
.ai-act-timeline__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--grey);
  box-shadow: 0 0 0 2px var(--navy);
}
.ai-act-timeline__item--current::after {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.ai-act-timeline__date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.ai-act-timeline__item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.source-list {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.source-list__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}
.source-list ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.source-list a {
  font-size: 0.9rem;
  color: var(--navy);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.source-list a:hover { color: var(--gold-deep); }

/* =========================================================================
   FAQs (same pattern as ai-visibility-audit.css)
   ========================================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  margin-left: 1rem;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-items: start;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .role-compare,
  .a4-framework,
  .baseline-list,
  .role-tiers,
  .training-detail,
  .audience-grid { grid-template-columns: 1fr; }

  .training-detail { gap: 2rem; }

  .ai-act-timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .ai-act-timeline__item:nth-child(2)::before { right: 0; }
}

@media (max-width: 640px) {
  .training-components:not(.training-components--single) { columns: 1; }
  .a4-step { flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.5rem; }
  .article-quote { padding: 1.5rem; }
  .source-list { padding: 1.5rem 1.25rem; }

  /* Vertical rail on phones */
  .ai-act-timeline { grid-template-columns: 1fr; gap: 0; }
  .ai-act-timeline__item { padding: 0 0 2rem 2rem; }
  .ai-act-timeline__item::before {
    top: 14px;
    left: 6px;
    right: auto;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .ai-act-timeline__item:last-child::before { display: none; }
  .ai-act-timeline__item:nth-child(2)::before { right: auto; }
}
