/* Shared layout for the electricity and training-fund journeys. */
html:has(.focused-flow) { scroll-behavior: auto; }
.focused-flow {
  --flow-line: #d9cfb5;
  --flow-space: clamp(18px, 5vw, 64px);
  background-image: none;
}

.focused-flow .product-followup .compare-primary,
.focused-flow .lead-submit,
.focused-flow .electricity-offer-card .electricity-offer-cta,
.focused-flow .matcher-submit,
.focused-flow .result-link {
  min-height: 48px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: none;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
}
.focused-flow .product-followup .compare-primary:hover,
.focused-flow .lead-submit:hover:not(:disabled),
.focused-flow .electricity-offer-card .electricity-offer-cta:hover,
.focused-flow .matcher-submit:hover,
.focused-flow .result-link:hover { background: #ffdf74; transform: none; }
.focused-flow .electricity-offer-card .electricity-offer-cta:focus-visible,
.focused-flow .product-followup .compare-primary:focus-visible,
.focused-flow .matcher-submit:focus-visible,
.focused-flow .result-link:focus-visible,
.focused-flow .lead-submit:focus-visible { outline: 3px solid #743548; outline-offset: 3px; transform: none; box-shadow: none; }

.focused-flow .compare-jump-link,
.focused-flow .product-back,
.focused-flow .lead-general-link,
.focused-flow .electricity-offer-source,
.focused-flow .lead-context button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.focused-flow .lead-context button[hidden] { display: none; }
.focused-flow .flow-return { gap: 8px; }
.focused-flow .flow-return::before {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.focused-flow .product-back { margin-top: 4px; font-size: .92rem; }

.focused-flow .comparison-status {
  min-height: 0;
  padding: 12px var(--flow-space);
  border-bottom: 1px solid var(--flow-line);
  background: #f9f1d9;
  font-size: .94rem;
}
.focused-flow .supplier-directory {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px var(--flow-space) 32px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.focused-flow .supplier-directory-heading {
  align-items: start;
  gap: 8px 24px;
  padding-bottom: 12px;
  border: 0;
}
.focused-flow .supplier-directory-heading h2,
.focused-flow .matcher-heading h2,
.focused-flow .plans-heading h2,
.focused-flow .trust-section h2,
.focused-flow .product-overview h2,
.focused-flow .product-source-card h2,
.focused-flow .product-lead h2,
.focused-flow .lead-preview h2 {
  margin: 0 0 5px;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: normal;
}
.focused-flow .supplier-directory-heading p { font-size: .94rem; font-weight: 400; }
.focused-flow .electricity-offer-grid { gap: 14px; margin-top: 4px; }
.focused-flow .electricity-offer-grid .electricity-offer-card {
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  scroll-margin-top: 76px;
}
.focused-flow .electricity-offer-grid .is-preference-match { border-color: #887020; background: #fff9e3; }
.focused-flow .electricity-recommended-badge { margin: 0 0 10px; padding: 4px 8px; border-width: 1px; box-shadow: none; }
.focused-flow .electricity-offer-provider { padding-bottom: 10px; border-bottom: 1px solid var(--flow-line); }
.focused-flow .electricity-offer-provider img { height: 46px; border: 1px solid var(--flow-line); border-radius: 8px; }
.focused-flow .electricity-offer-rate { margin: 14px 0 3px; }
.focused-flow .electricity-offer-rate strong { font-size: 2.6rem; line-height: 1; }
.focused-flow .electricity-offer-schedule { min-height: 0; margin: 3px 0 8px; font-size: 1rem; }
.focused-flow .electricity-offer-note { margin: 8px 0 12px; }
.focused-flow .electricity-offer-chips > span { padding: 4px 8px; border-width: 1px; }
.focused-flow .electricity-offer-actions { width: 100%; gap: 0; }
.focused-flow .electricity-offer-source { justify-content: center; font-size: .94rem; }

.focused-flow .matcher-section,
.focused-flow .plans-section,
.focused-flow .trust-section,
.focused-flow .product-overview,
.focused-flow .product-source-section {
  padding: 30px var(--flow-space);
  border-width: 1px;
  border-color: var(--flow-line);
  background: #fffaf0;
}
.focused-flow .matcher-card,
.focused-flow .match-result,
.focused-flow .plan-card,
.focused-flow .product-fact,
.focused-flow .product-source-card {
  padding: 18px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.focused-flow .plan-card.is-match { border-color: #887020; box-shadow: none; transform: none; }
.focused-flow .trust-section { gap: 12px 28px; color: var(--ink); }
.focused-flow .trust-section > div:first-child > p { color: #6d5b20; }
.focused-flow .trust-copy p { border-color: var(--flow-line); }
.focused-flow .lead-submit .app-arrow { display: none; }
.focused-flow .product-overview-heading { margin-bottom: 16px; text-align: start; }
.focused-flow .product-overview-heading > p:last-child,
.focused-flow .product-source-card .source-description { margin: 8px 0 0; }
.focused-flow .product-followup { max-width: 1350px; margin: 16px auto 0; }
.focused-flow .product-fact h3 { margin: 10px 0 6px; }
.focused-flow .product-source-link { border-width: 1px; border-radius: 12px; box-shadow: none; background: var(--paper); }

.focused-flow .lead-preview,
.focused-flow .product-lead {
  min-height: 0;
  padding: 20px var(--flow-space) 38px;
  border-top: 1px solid var(--flow-line);
  background: var(--paper);
}
.focused-flow .lead-preview::before { display: none; }
.focused-flow .lead-preview {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  align-items: start;
  justify-content: center;
  text-align: start;
}
.focused-flow .product-lead { grid-template-columns: minmax(0, 620px); justify-content: center; gap: 12px; }
.focused-flow .lead-preview .lead-intro,
.focused-flow .product-lead-copy > p:last-child { margin: 0 0 10px; font-size: 1rem; }
.focused-flow .lead-context { justify-content: flex-start; gap: 0 12px; margin: 0 0 10px; }
.focused-flow .lead-selection { padding: 6px 10px; border: 0; border-radius: 8px; background: #f8edc6; }
.focused-flow .lead-form {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  box-shadow: none;
}
.focused-flow .lead-form :is(.lead-fields, .lead-form-grid) { gap: 12px; }
.focused-flow .lead-form :is(.lead-field, .lead-fields label) input {
  min-height: 48px;
  border: 1px solid #847c68;
  border-radius: 8px;
  background: #fff;
  font-size: max(16px, 1rem);
}
.focused-flow .lead-consent { min-height: 44px; padding-block: 4px; }
.focused-flow .lead-form-status:empty { display: none; }
.focused-flow :is(#matcher, #product-overview, #plans, .plan-card) { scroll-margin-top: 76px; }

@media (max-width: 700px) {
  .focused-flow .product-followup .compare-primary { width: 100%; }
  .focused-flow .match-result .compare-result-actions { align-items: stretch; flex-direction: column; gap: 1px; }
  .focused-flow .comparison-status { gap: 2px 12px; }
  .focused-flow .electricity-offer-grid { grid-template-columns: minmax(0, 1fr); }
  .focused-flow .supplier-directory-heading { grid-template-columns: 1fr; }
}

.offer-toolbar { margin: 4px 0 12px; padding-block: 12px; border-block: 1px solid var(--flow-line); }
.offer-filters { min-width: 0; margin: 0; padding: 0; border: 0; }
.offer-filters legend { padding: 0; font-weight: 700; }
.offer-filter-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.offer-filter-options label { position: relative; cursor: pointer; }
.offer-filter-options input { position: absolute; opacity: 0; }
.offer-filter-options span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #9a8f76;
  border-radius: 8px;
  background: #fff;
  font-size: .95rem;
}
.offer-filter-options input:checked + span { border-color: var(--ink); background: var(--yellow); font-weight: 700; }
.offer-filter-options input:focus-visible + span,
.focused-flow summary:focus-visible { outline: 3px solid #743548; outline-offset: 2px; }
.offer-toolbar-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 9px; }
.offer-toolbar-meta p { margin: 0; color: #554c3a; font-size: .92rem; }
.offer-empty { grid-column: 1 / -1; margin: 0; padding: 16px; border: 1px solid var(--flow-line); border-radius: 12px; }

.electricity-offer-details { width: 100%; }
.electricity-offer-details summary {
  display: list-item;
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.electricity-offer-details .electricity-offer-note { margin-top: 0; }

.focused-flow .matcher-heading { margin-bottom: 16px; }
.focused-flow .matcher-progress { margin: 0 0 10px; color: #6d5b20; font-weight: 700; }
.focused-flow .matcher-card fieldset[hidden],
.focused-flow .matcher-actions [hidden] { display: none; }
.focused-flow .matcher-card fieldset { margin: 0; padding: 0; border: 0; }
.focused-flow .matcher-card legend > span { display: none; }
.focused-flow .matcher-card legend { padding: 0; font-size: 1.25rem; }
.focused-flow .matcher-card .choice-row { margin-top: 10px; }
.focused-flow .matcher-card .choice-row label > span {
  min-height: 48px;
  border-width: 1px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 1rem;
}
.focused-flow .matcher-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; }
.focused-flow .matcher-actions .matcher-submit { margin: 0; }
.focused-flow #matcher-error { margin: 8px 0 0; color: #a11b12; font-weight: 700; }
.focused-flow #match-result { scroll-margin-top: 76px; }

.focused-flow details.product-fact { padding: 0; }
.focused-flow .product-facts { align-items: start; gap: 8px; }
.focused-flow .product-fact summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.focused-flow .product-fact summary::-webkit-details-marker { display: none; }
.focused-flow .product-fact summary::after { content: "+"; margin-inline-start: auto; font-size: 1.25rem; }
.focused-flow .product-fact[open] summary::after { content: "−"; }
.focused-flow .product-fact summary > span { width: 28px; height: 28px; flex: 0 0 28px; border-width: 1px; }
.focused-flow .product-fact > p { padding: 0 12px 12px; }

@media (max-width: 700px) {
  .offer-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer-filter-options span { justify-content: center; padding-inline: 4px; text-align: center; line-height: 1.15; }
  .focused-flow .matcher-actions { flex-direction: column; align-items: stretch; }
  .focused-flow .matcher-actions .compare-jump-link { justify-content: center; }
}

@media (max-width: 700px) {
  .focused-flow:not(.investment-product-body) .supplier-directory { padding-top: 14px; }
  .focused-flow:not(.investment-product-body) .offer-toolbar { padding-block: 8px; margin-bottom: 8px; }
}
