/* Service editorial layout. Loaded before legacy layers so these deliberately
   scoped important rules replace the old high-specificity card presentation. */
@layer section-media-scroll, service-editorial-renewal;
@layer service-editorial-renewal {
  main[data-editorial-renewal] { --er-ink: #0f1e36; --er-copy: #43536a; --er-line: #dce2e9; --er-paper: #f5f7fa; }
  main[data-editorial-renewal] :is(.reveal,[data-motion]) { opacity: 1 !important; visibility: visible !important; translate: none !important; transform: none !important; }
  main[data-editorial-renewal] > section { padding-block: 40px 28px !important; min-height: 0 !important; height: auto !important; margin-block: 0 !important; background: #fff !important; scroll-margin-top: 105px; }
  main[data-editorial-renewal] > section:nth-of-type(4n+3) { background: var(--er-paper) !important; }
  main[data-editorial-renewal] .container { width: min(1180px, calc(100% - 64px)) !important; max-width: 1180px !important; margin-inline: auto !important; }
  main[data-editorial-renewal] :is(h2,h3,p,a,li,figcaption) { -webkit-text-fill-color: currentColor !important; }
  main[data-editorial-renewal] :is(h2,h3) { color: var(--er-ink) !important; text-align: left !important; text-wrap: pretty; }
  main[data-editorial-renewal] h2 { font: 400 clamp(1.7rem, 2.35vw, 2.15rem)/1.4 'Prata', Georgia, serif !important; max-width: 32ch !important; margin: 0 0 20px !important; }
  main[data-editorial-renewal] :is(p,li) { color: var(--er-copy) !important; font-size: 16px !important; line-height: 1.85 !important; }
  main[data-editorial-renewal] .eyebrow { color: var(--lifa-brand-navy, #0F1E36) !important; font-size: 11px !important; margin-bottom: 14px !important; }
  main[data-editorial-renewal] .section-heading { display: block !important; width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; margin: 0 0 28px !important; max-width: 780px !important; text-align: left !important; }
  main[data-editorial-renewal] .section-heading > * { grid-column: auto !important; grid-row: auto !important; width: auto !important; max-width: 100% !important; }
  main[data-editorial-renewal] .section-heading > :last-child { margin-bottom: 0 !important; }
  main[data-editorial-renewal] :is(.section-heading,.value-evidence__heading) h2::after { content: '' !important; display: block !important; position: static !important; width: 54px !important; height: 3px !important; margin-top: 20px !important; background: #eed47d !important; transform: none !important; }
  main[data-editorial-renewal] .content-signature { color: inherit !important; font: inherit !important; }
  main[data-editorial-renewal] .service-jumpnav { border-bottom: 1px solid var(--er-line); background: #fff; padding: 22px 0; }
  main[data-editorial-renewal] .service-jumpnav .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
  main[data-editorial-renewal] .service-jumpnav span { color: #617087; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  main[data-editorial-renewal] .service-jumpnav a { color: var(--er-ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: #c2cbd7; text-underline-offset: 5px; }
  main[data-editorial-renewal] .service-jumpnav a:hover { text-decoration-color: var(--lifa-brand-gold, #EED47D); }
  main[data-editorial-renewal] :is(.split,.value-evidence) { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 64px !important; align-items: center !important; }
  main[data-editorial-renewal] .split:has(> :only-child) { grid-template-columns: minmax(0,1fr) !important; max-width: 900px !important; }
  main[data-editorial-renewal] [data-editorial-role="overview"] { padding-block: 48px 32px !important; }
  main[data-editorial-renewal] [data-editorial-role="overview"] .feature-list { margin-top: 24px !important; }
  main[data-editorial-renewal] :is(.image-frame,.value-evidence__media) { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important; overflow: hidden !important; }
  main[data-editorial-renewal] :is(.image-frame,.value-evidence__media)::before,main[data-editorial-renewal] :is(.image-frame,.value-evidence__media)::after { content: none !important; }
  main[data-editorial-renewal] :is(.image-frame,.value-evidence__media) img { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 8px !important; }
  /* Concept art belongs to the page surface: no picture frame or backing panel. */
  main[data-editorial-renewal] :is(.image-frame,.value-evidence__media):has(img[data-visual-role="conceptual-illustration"]) { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
  main[data-editorial-renewal] img[data-visual-role="conceptual-illustration"] { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; object-fit: contain !important; }
  main[data-editorial-renewal] figure:has(img[data-visual-role="conceptual-illustration"]) figcaption { border: 0 !important; }
  main[data-editorial-renewal] figure:has(img[data-visual-role="conceptual-illustration"]) figcaption::before,main[data-editorial-renewal] figure:has(img[data-visual-role="conceptual-illustration"]) figcaption::after { content: none !important; }
  main[data-editorial-renewal] figcaption { padding: 12px 0 !important; background: none !important; color: #637187 !important; font-size: 12px !important; line-height: 1.6 !important; }
  main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-step,.process-info-card,.checklist-item,.value-evidence__item) { display: block !important; min-height: 0 !important; height: auto !important; padding: 24px 0 !important; border: 0 !important; border-top: 1px solid var(--er-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; transform: none !important; text-decoration: none !important; }
  main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-step,.process-info-card,.checklist-item,.value-evidence__item)::before,main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-step,.process-info-card,.checklist-item,.value-evidence__item)::after { content: none !important; }
  main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-step,.process-info-card,.checklist-item) h3 { margin: 0 0 12px !important; max-width: none !important; font: 400 19px/1.5 'Prata',Georgia,serif !important; }
  main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-step,.process-info-card,.checklist-item) p { margin: 0 !important; }
  main[data-editorial-renewal] :is(.card,.link-card) > :is(.lifa-number-badge,.lifa-feature-badge) { display: none !important; }
  main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-info-card,.process-feature-content,.process-step,.media-card) :is(p,h3) { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; text-overflow: clip !important; }
  main[data-editorial-renewal] :is(.card,.link-card):hover h3 { text-decoration: underline !important; text-decoration-color: var(--lifa-brand-gold, #EED47D) !important; text-underline-offset: 5px !important; }
  main[data-editorial-renewal] .card-link { position: static !important; display: inline-block !important; width: auto !important; margin: 15px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--er-ink) !important; font: 600 13px/1.6 'Open Sans',sans-serif !important; }
  main[data-editorial-renewal] :is(.grid,.related-links-grid,.decision-answers-grid,.checklist) { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 0 40px !important; align-items: start !important; }
  main[data-editorial-renewal] .checklist { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  main[data-editorial-renewal] .checklist-icon { display: none !important; }
  main[data-editorial-renewal] [data-editorial-role="directory"] > .container { display: grid !important; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.6fr) !important; align-items: start !important; gap: 56px !important; }
  main[data-editorial-renewal] [data-editorial-role="directory"] .section-heading { margin: 0 !important; }
  main[data-editorial-renewal] [data-editorial-role="directory"] .section-heading h2 { font-size: clamp(1.5rem, 1.9vw, 1.8rem) !important; }
  main[data-editorial-renewal] [data-editorial-role="directory"] :is(.card,.link-card) p { font-size: 14px !important; }
  main[data-editorial-renewal] .value-evidence__items { display: block !important; }
  main[data-editorial-renewal] .value-evidence__item { padding: 16px 0 !important; }
  main[data-editorial-renewal] .value-evidence__item > span { display: none !important; }
  main[data-editorial-renewal] .value-evidence__item h3 { font: 600 15px/1.6 'Open Sans',sans-serif !important; margin: 0 0 6px !important; }
  main[data-editorial-renewal] .value-evidence__item p { font-size: 14px !important; margin: 0 !important; }
  main[data-editorial-renewal] .process-grid { display: block !important; max-width: 950px !important; margin-inline: auto !important; }
  main[data-editorial-renewal] .process-step { position: relative !important; padding: 20px 0 20px 80px !important; }
  main[data-editorial-renewal] .process-step > .step-number { position: absolute !important; top: 28px !important; left: 0 !important; width: 48px !important; height: 48px !important; margin: 0 !important; background: var(--er-ink) !important; color: #eed47d !important; }
  main[data-editorial-renewal] .process-showcase-layout { display: grid !important; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) !important; align-items: center !important; gap: 64px !important; }
  main[data-editorial-renewal] .process-feature-card { min-height: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
  main[data-editorial-renewal] .process-feature-card::before,main[data-editorial-renewal] .process-feature-card::after { content: none !important; }
  main[data-editorial-renewal] .process-feature-card img { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: 3/2 !important; object-fit: cover !important; border-radius: 8px !important; filter: none !important; }
  main[data-editorial-renewal] .process-feature-content { position: static !important; padding: 22px 0 0 !important; background: none !important; color: var(--er-ink) !important; }
  main[data-editorial-renewal] .process-feature-content h3 { font: 400 21px/1.5 'Prata',Georgia,serif !important; margin: 0 0 12px !important; }
  main[data-editorial-renewal] .process-info-icon { display: inline-grid !important; margin: 0 0 16px !important; }
  main[data-editorial-renewal] .process-info-stack { display: block !important; }
  main[data-editorial-renewal] .image-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 32px !important; }
  main[data-editorial-renewal] :is(.media-card-link,.media-card) { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; padding: 0 !important; overflow: visible !important; }
  main[data-editorial-renewal] .media-card,main[data-editorial-renewal] .media-card > div { display: block !important; height: auto !important; min-height: 0 !important; }
  main[data-editorial-renewal] .media-card p { height: auto !important; min-height: 0 !important; flex: none !important; }
  main[data-editorial-renewal] .media-card > div { padding: 24px 0 0 !important; background: none !important; }
  main[data-editorial-renewal] .media-card img { width: 100% !important; height: auto !important; aspect-ratio: 3/2 !important; object-fit: cover !important; border-radius: 8px !important; }
  main[data-editorial-renewal] .media-card h3 { font: 400 20px/1.5 'Prata',Georgia,serif !important; }
  main[data-editorial-renewal] .media-card p { font-size: 14px !important; }
  main[data-editorial-renewal] .service-comparison-scroll { overflow-x: auto; border-top: 2px solid #eed47d; }
  main[data-editorial-renewal] .service-method-comparison table { width: 100%; border-collapse: collapse; background: #fff; color: var(--er-copy); font-size: 15px; line-height: 1.75; }
  main[data-editorial-renewal] .service-method-comparison :is(th,td) { padding: 22px 24px !important; border: 0 !important; border-bottom: 1px solid var(--er-line) !important; vertical-align: top; text-align: left; }
  main[data-editorial-renewal] .service-method-comparison thead th { background: var(--er-ink) !important; color: #fff !important; font-weight: 600; }
  main[data-editorial-renewal] .service-method-comparison tbody th { width: 22%; font-weight: 600; color: var(--er-ink) !important; background: #f5f7fa !important; }
  main[data-editorial-renewal] .service-method-comparison td { width: 39%; }
  main[data-editorial-renewal] .service-handover-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding: 36px 0 12px; }
  main[data-editorial-renewal] .service-handover-notes h3 { font: 400 19px/1.5 'Prata',Georgia,serif !important; margin: 0 0 14px !important; }
  main[data-editorial-renewal] .service-handover-notes p,main[data-editorial-renewal] .service-comparison-note { font-size: 14px !important; }
  main[data-editorial-renewal] :is(.cta-band,.cta-panel) { background: var(--er-ink) !important; padding: 40px !important; border-radius: 8px !important; }
  main[data-editorial-renewal] :is(.cta-band,.cta-panel) :is(h2,h3,p,li) { color: #fff !important; }
  main[data-editorial-renewal] :is(.cta-band,.cta-panel) .eyebrow { color: #eed47d !important; }
  main[data-editorial-renewal] :is(.cta-band,.cta-panel) .cta-value-list :is(strong,span) { color: #eed47d !important; -webkit-text-fill-color: #eed47d !important; }
  main[data-editorial-renewal] :is(.cta-band,.cta-panel) .cta-value-list small { color: #dce2e9 !important; -webkit-text-fill-color: #dce2e9 !important; }
  main[data-editorial-renewal] [data-editorial-role="request"] { background: var(--er-paper) !important; }
  main[data-editorial-renewal] a:focus-visible { outline: 3px solid var(--lifa-brand-navy, #0F1E36) !important; outline-offset: 5px !important; }
  @media(max-width: 1000px) {
    main[data-editorial-renewal] :is(.split,.value-evidence,.process-showcase-layout) { gap: 36px !important; }
    main[data-editorial-renewal] [data-editorial-role="directory"] > .container { display: block !important; }
    main[data-editorial-renewal] [data-editorial-role="directory"] .section-heading { margin-bottom: 30px !important; }
    main[data-editorial-renewal] .image-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  }
  @media(max-width: 760px) {
    main[data-editorial-renewal] > section,main[data-editorial-renewal] [data-editorial-role="overview"] { padding-block: 28px 20px !important; }
    main[data-editorial-renewal] .container { width: calc(100% - 40px) !important; }
    main[data-editorial-renewal] :is(.split,.value-evidence,.process-showcase-layout,.grid,.related-links-grid,.decision-answers-grid,.checklist,.image-grid) { grid-template-columns: minmax(0,1fr) !important; gap: 18px !important; }
    main[data-editorial-renewal] :is(.card,.link-card,.decision-answer-card,.process-info-card,.checklist-item) { padding-block: 18px !important; }
    main[data-editorial-renewal] .split > *,main[data-editorial-renewal] .value-evidence > * { order: initial !important; }
    main[data-editorial-renewal] [data-editorial-role="overview"] .image-frame { margin-top: 8px !important; }
    main[data-editorial-renewal] :is(p,li) { font-size: 15px !important; }
    main[data-editorial-renewal] .service-jumpnav .container { gap: 13px 20px !important; }
    main[data-editorial-renewal] .service-jumpnav span { width: 100%; }
    main[data-editorial-renewal] .process-step { padding-left: 64px !important; }
    main[data-editorial-renewal] .process-step > .step-number { width: 40px !important; height: 40px !important; }
    main[data-editorial-renewal] .service-handover-notes { grid-template-columns: minmax(0,1fr); gap: 12px; }
    main[data-editorial-renewal] .service-method-comparison :is(th,td) { padding: 14px 10px !important; font-size: 12px !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
    main[data-editorial-renewal] :is(.cta-band,.cta-panel) { padding: 26px 22px !important; }
    main[data-editorial-renewal] :is(.cta-band,.cta-panel) h2 { font-size: 24px !important; }
  }
}
