/* Scoped to the integrated UK preview; the main Observatory is unchanged. */
.uk-preview-methodology {
  --uk-method-tint: color-mix(in srgb, var(--brand-pink-light) 45%, var(--report-paper));
  font-family: var(--font-body);
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--report-line);
  scroll-margin-top: 110px;
  color: var(--brand-black);
}
.uk-preview-methodology .uk-method-heading { max-width: 780px; margin-bottom: 1.75rem; }
/* Matches the report's section captions (see .uk-report-kicker). */
.index-page .uk-preview-methodology p.uk-method-eyebrow,
.uk-preview-methodology .uk-method-eyebrow { color: #72534e; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; margin: 0 0 12px; }
.uk-preview-methodology h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.1; margin: 0 0 1rem; }
.index-page .editorial-report .uk-preview-methodology h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .65rem; }
.index-page .editorial-report .uk-preview-methodology h4 { font-size: 1rem; line-height: 1.4; margin: 0 0 .4rem; }
.uk-preview-methodology p { font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }
.uk-preview-methodology a { color: var(--brand-blue); text-underline-offset: .16em; overflow-wrap: anywhere; }
.uk-method-reading-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin: 0 0 1.75rem; }
.uk-method-reading-key > div { padding-top: .8rem; border-top: 2px solid var(--brand-blue); }
.uk-method-reading-key > div:first-child { border-color: var(--brand-orange); }
.uk-method-reading-key > div:last-child { border-color: var(--brand-green); }
.uk-method-pillar-definitions > div:first-child { border-color: var(--brand-blue); }
.uk-method-pillar-definitions > div:nth-child(2) { border-color: var(--brand-green); }
.uk-method-pillar-definitions > div:last-child { border-color: var(--brand-orange); }
.uk-preview-methodology .uk-method-reading-key p { font-size: .94rem; }
.uk-method-fold { border: 1px solid var(--report-line); background: var(--report-paper); margin: .75rem 0; min-width: 0; }
.uk-preview-methodology .uk-method-fold > summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.05rem 1.25rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; font-weight: 700; cursor: pointer; list-style: none; transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.uk-method-fold > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
.uk-method-fold > summary:hover { transform: translateY(-2px); background: var(--brand-pink-light); }
.uk-method-fold > summary:hover i { font-weight: 700; }
}
.uk-method-fold > summary:focus-visible, .uk-method-source-detail > summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.uk-method-fold > summary i { font-style: normal; color: var(--brand-orange); font-size: 1.7rem; font-weight: 400; line-height: 1; flex: 0 0 1rem; }
.uk-method-fold > summary i::before { content: "+"; }
.uk-method-fold[open] > summary i::before { content: "−"; }
.uk-method-fold > summary small { color: var(--brand-burgundy); font-size: .8rem; font-weight: 400; margin-left: .65rem; white-space: nowrap; }
.uk-method-fold-body { padding: .25rem 1.25rem 1.25rem; min-width: 0; }
/* Match the dark background and warm lettering of the preparedness slide. */
.uk-preview-methodology > .uk-method-fold { border: 0; }
.uk-preview-methodology > .uk-method-fold > summary {
  background: var(--brand-black);
  color: var(--brand-pink-light);
}
.uk-preview-methodology > .uk-method-fold > summary > span { color: inherit; }
.uk-preview-methodology > .uk-method-fold > summary:focus-visible {
  outline-color: var(--brand-orange);
}
.uk-preview-methodology > .uk-method-fold > .uk-method-fold-body { padding-top: 1.25rem; }
@media (hover: hover) {
  .uk-preview-methodology > .uk-method-fold > summary:hover {
    background: color-mix(in srgb, var(--brand-black) 90%, white);
    box-shadow: none;
  }
}
.uk-method-fold-body > h3:not(:first-child) { margin-top: 2rem; }
.uk-preview-methodology .uk-method-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; margin: .5rem 0 1rem; }
.uk-method-table th, .uk-method-table td { padding: .95rem .8rem; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--report-rule); overflow-wrap: anywhere; line-height: 1.55; }
.uk-method-table thead th { font-size: .8rem; color: var(--brand-burgundy); font-weight: 600; background: var(--uk-method-tint); }
.uk-method-table th:first-child { width: 24%; }
.uk-method-table th:nth-child(2) { width: 33%; }
.uk-method-table tbody th { font-weight: 600; }
.uk-method-table ul { list-style: none; margin: 0 0 .55rem; padding: 0; }
.uk-method-table li + li { margin-top: .35rem; }
.uk-preview-methodology .uk-method-table p { font-size: .86rem; line-height: 1.55; margin: .6rem 0; }
.uk-method-role { display: block; margin-top: .45rem; color: var(--brand-burgundy); font-size: .75rem; font-weight: 500; }
.uk-method-role.is-scored { color: var(--brand-blue); }
.uk-method-source-detail > summary { font-size: .8rem; color: var(--brand-burgundy); cursor: pointer; }
.uk-method-source-detail[open] { background: var(--uk-method-tint); padding: .55rem; }
.uk-method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; gap: 1.35rem; margin: .8rem 0 1.4rem; }
.uk-method-step-number { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--brand-pink-light); border: 1px solid var(--brand-pink); border-radius: 50%; color: var(--brand-burgundy); font-size: .85rem; margin-bottom: .7rem; }
.uk-preview-methodology .uk-method-steps p { font-size: .93rem; }
.uk-method-equation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1.1rem 0; }
.uk-method-equation > div { align-self: stretch; border: 1px solid var(--report-line); padding: 1rem; }
.uk-method-equation strong, .uk-method-equation span { display: block; }
.uk-method-equation strong { color: var(--brand-blue); margin-bottom: .5rem; }
.uk-method-equation span { font-size: .93rem; line-height: 1.5; }
.uk-method-axis-key, .uk-method-notes, .uk-method-scale-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1rem 0; }
.uk-method-axis-key { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--uk-method-tint); padding: 1rem; }
.uk-method-axis-key dt { font-weight: 700; margin-bottom: .35rem; }
.uk-method-axis-key dd { margin: 0; font-size: .9rem; line-height: 1.5; }
.uk-method-scale-list ul { list-style: none; padding: 0; margin: 0; }
.uk-method-scale-list li { margin: .65rem 0; line-height: 1.5; font-size: .87rem; }
.uk-method-scale-list li span { display: block; color: var(--brand-burgundy); }
.uk-preview-methodology footer { display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: space-between; padding: 1rem 0; font-size: .85rem; line-height: 1.5; }
.uk-preview-methodology footer span { color: var(--brand-burgundy); }
@media (max-width: 800px) {
  .uk-method-reading-key, .uk-method-steps, .uk-method-notes, .uk-method-scale-list { grid-template-columns: 1fr; gap: .85rem; }
  .uk-method-steps > li { display: flex; gap: .8rem; }
  .uk-method-step-number { flex-shrink: 0; margin: 0; }
  .uk-preview-methodology .uk-method-fold > summary { padding: .9rem; font-size: 1rem; }
  .uk-method-fold-body { padding: .2rem .9rem .9rem; }
  .uk-method-table, .uk-method-table tbody, .uk-method-table tr, .uk-method-table th, .uk-method-table td { display: block; width: 100% !important; }
  .uk-method-table thead { display: none; }
  .uk-method-table tr { padding: .8rem 0; border-bottom: 1px solid var(--report-line); }
  .uk-method-table th, .uk-method-table td { border: 0; padding: .35rem 0; }
  .uk-method-table td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--brand-burgundy); margin: .3rem 0; }
  .uk-method-table tbody th { font-size: 1rem; }
  .uk-method-role { display: inline-block; margin-left: .5rem; }
  .uk-method-axis-key { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 480px) {
  .uk-method-equation { grid-template-columns: 1fr; gap: .5rem; }
  .uk-method-equation > b { text-align: center; }
  .uk-method-fold .uk-method-fold > summary { padding: .75rem; }
  .uk-method-fold .uk-method-fold-body { padding: .2rem .75rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .uk-preview-methodology .uk-method-fold > summary { transition: none; transform: none; }
}

/* Deric's final A–E slide: five adjacent colour panels and its exact question. */
.uk-preview-methodology .uk-method-rating-slide {
  margin: .75rem 0 1.5rem; padding: clamp(18px, 2.5vw, 32px);
  background: var(--brand-black); color: var(--brand-pink-light);
}
.index-page .editorial-report .uk-method-rating-slide > figcaption {
  max-width: 900px; margin: 0 0 32px; font: 400 clamp(23px, 2.6vw, 34px)/1.15 var(--font-body);
}
.uk-method-rating-slide > figcaption strong { font-family: var(--font-display); font-weight: 700; }
.uk-method-rating-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.uk-method-rating-panel {
  display: flex; flex-direction: column; justify-content: flex-end; position: relative;
  min-width: 0; min-height: 300px; padding: 48px 12px 18px;
  border: 1px solid var(--brand-pink-light); color: white; box-sizing: border-box;
}
.uk-method-rating-panel + .uk-method-rating-panel { border-left: 0; }
.uk-method-rating-panel.is-grade-a { background: var(--brand-green); }
.uk-method-rating-panel.is-grade-b { background: var(--brand-blue); }
.uk-method-rating-panel.is-grade-c { background: #eb8d11; color: var(--brand-black); }
.uk-method-rating-panel.is-grade-d { background: var(--brand-orange); color: var(--brand-black); }
.uk-method-rating-panel.is-grade-e { background: var(--brand-black); }
.uk-method-rating-letter { font: 700 36px/1 var(--font-display); margin-bottom: 6px; }
.index-page .editorial-report .uk-method-rating-panel h4 { color: inherit; font: 700 17px/1.2 var(--font-display); margin: 0 0 6px; }
.index-page .editorial-report .uk-method-rating-panel p { color: inherit; font: 400 15px/1.4 var(--font-body); margin: 0; }
.uk-method-rating-current { position: absolute; top: 12px; left: 12px; right: 12px; font: 700 11px/1.3 var(--font-ui); }
.uk-method-rating-current::before { content: "●"; margin-right: 5px; }
.uk-method-rating-logo { display: block; width: 100px; height: auto; margin-top: 22px; }
@media (max-width: 1000px) {
  .uk-method-rating-scale { grid-template-columns: 1fr; }
  .uk-method-rating-panel { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px 12px; min-height: 0; padding: 18px; }
  .uk-method-rating-panel + .uk-method-rating-panel { border-left: 1px solid var(--brand-pink-light); border-top: 0; }
  .uk-method-rating-letter { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .uk-method-rating-panel :is(h4,p) { grid-column: 2; }
  .uk-method-rating-current { grid-column: 2; position: static; margin-top: 4px; }
  .index-page .editorial-report .uk-method-rating-slide > figcaption { margin-bottom: 24px; }
}

/* Nested indicator folds use the report's disclosure treatment (see .uk-report-explorer). */
.uk-method-fold .uk-method-fold { border: 1px solid var(--brand-pink-light); background: color-mix(in srgb, var(--brand-pink-light) 25%, transparent); margin: 16px 0 0; }
.uk-preview-methodology .uk-method-fold .uk-method-fold > summary { padding: 16px; gap: 20px; }
.uk-method-fold .uk-method-fold > summary:hover { transform: none; background: color-mix(in srgb, var(--brand-pink-light) 45%, transparent); }
.uk-method-fold .uk-method-fold > .uk-method-fold-body { padding: 0 16px 16px; }
.uk-method-fold .uk-method-fold + :not(.uk-method-fold) { margin-top: 24px; }
