.pressure-grid article { display: flex; flex-direction: column; }
.framework-flow { display: grid; gap: 2.5rem; }
.framework-step { min-width: 0; }
.framework-step + .framework-step { border-top: 1px solid var(--line); padding-top: 2rem; }
.framework-step h3 { display: flex; align-items: baseline; gap: .85rem; font-size: 1.6rem; line-height: 1.3; margin: 0 0 1.2rem; }
.framework-letter { flex: 0 0 auto; color: var(--heat); font-size: 1.25rem; font-weight: 700; }
.framework-step .research-figure { margin: 0 0 1.2rem; }
/* Hide the embedded panel label; the heading provides the webpage label. */
.framework-algorithm-image { clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%, 0 6%, 3% 6%); }
.framework-step > p, .framework-step details { max-width: 900px; color: var(--muted); }
.framework-step details { border-top: 1px solid var(--line); padding-top: .85rem; }
.framework-step summary { color: var(--ink); font-weight: 600; cursor: pointer; }
.framework-step details p { margin: .85rem 0 0; }
.framework-step .workflow-subtitle { margin: 1.5rem 0 .5rem; color: var(--ink); font-size: 1.1rem; }
.framework-step .weather-generation-figure { margin: 1.25rem 0; }
@media (max-width: 900px) {
  .framework-step h3 { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .framework-step .research-figure { width: 100%; margin-left: 0; }
  .framework-step .research-figure > a { overflow-x: auto; }
  .framework-step .research-figure img { display: block; min-width: 680px; max-width: none; }
}
.model-open { display: flex; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; padding: 1.25rem 0 0; border: 0; background: none; color: var(--heat); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.model-open span { font-size: 1.3rem; }
.pressure-grid article:nth-child(2) .model-open { color: var(--cool); }
.pressure-grid article:nth-child(3) .model-open { color: var(--blue); }
.model-open[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 5px; }
.model-details { --model-accent: var(--heat); margin-top: 2rem; border-top: 2px solid var(--model-accent); scroll-margin-top: 90px; overflow-anchor: none; }
.model-details[data-active="supply"] { --model-accent: var(--cool); }
.model-details[data-active="transmission"] { --model-accent: var(--blue); }
.model-details [hidden], .model-details[hidden] { display: none; }
.model-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .6rem 0; }
.model-toolbar [role="tablist"] { display: flex; gap: 1.6rem; }
.model-toolbar [role="tab"] { border: 0; border-bottom: 3px solid transparent; background: none; padding: .8rem .25rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.model-toolbar [aria-selected="true"] { color: var(--model-accent); border-bottom-color: currentColor; }
.model-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 1.7rem; cursor: pointer; }
.model-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: min-content min-content 1fr; column-gap: 3rem; align-content: start; padding: 2.4rem 0 1.6rem; }
.model-panel > .eyebrow { grid-column: 1; margin: 0 0 .7rem; color: var(--model-accent); }
.model-panel > h3 { grid-column: 1; font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.25; margin: 0 0 1.1rem; text-wrap: balance; }
.model-layout { display: contents; }
.model-layout figure { grid-column: 2; grid-row: 1 / 4; align-self: start; margin: 0; min-width: 0; }
.model-copy { grid-column: 1; min-width: 0; }
.model-layout img { display: block; width: 100%; height: auto; }
.model-layout figcaption { color: var(--muted); font-size: .875rem; line-height: 1.55; padding: .7rem 0 0 .8rem; border-left: 2px solid var(--line); margin: .7rem 1rem 0; }
.model-copy p { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; line-height: 1.7; }
.model-copy details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.4rem 0; padding: .8rem 0; }
.model-copy summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.model-copy details p:first-of-type { margin-top: 1rem; }
.model-copy .model-equation { color: var(--ink); font-size: 1rem; font-weight: 600; background: #f4f6f7; padding: .85rem 1rem; border-left: 2px solid var(--model-accent); overflow-wrap: anywhere; }
.model-references { margin-top: 0; padding-top: 0; }
.model-references h4 { margin: 0 0 .7rem; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.model-references ul { list-style: none; padding: 0; margin: 0; }
.model-references li { margin: 0 0 .8rem; font-size: .875rem; line-height: 1.5; }
.model-references li:last-child { margin-bottom: 0; }
.model-references a { color: var(--model-accent); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.model-references span { display: block; margin-top: .15rem; color: var(--muted); }
.model-footer { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; gap: 2rem; justify-content: space-between; align-items: baseline; }
.model-footer p { max-width: 740px; margin: 0; color: var(--muted); font-size: .88rem; }
.model-footer a { flex-shrink: 0; font-weight: 600; }
.model-open:focus-visible, .model-toolbar button:focus-visible, .model-copy summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
@media (max-width: 900px) {
  .model-panel { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 1.6rem; }
  .model-layout figure { grid-column: 1; grid-row: 3; max-width: 660px; width: 100%; justify-self: center; margin-bottom: 1.5rem; }
  .model-copy { grid-row: 4; }
  .model-panel > h3 { font-size: 1.4rem; }
  .model-layout figcaption { margin-left: 0; margin-right: 0; }
  .model-footer { display: block; }
  .model-footer a { display: inline-block; margin-top: .8rem; }
}
@media (max-width: 480px) {
  .model-toolbar { gap: .5rem; }
  .model-toolbar [role="tablist"] { gap: 1rem; }
  .model-toolbar [role="tab"] { font-size: .85rem; }
  .model-close { flex-basis: 32px; width: 32px; }
}
