/* The course uses the same masthead, palette, type, buttons and cards as the homepage. */
.blog-page .site-header nav a[aria-current=page]{color:var(--blue);text-decoration:underline;text-underline-offset:6px}
.blog-intro{background:#eef3f2;padding-block:clamp(38px,6.5vw,85px)}
.blog-intro .eyebrow{margin-bottom:16px}
.blog-intro h1{font-size:clamp(36px,6vw,69px);line-height:1.04;max-width:17ch;text-wrap:balance}
.blog-intro .blog-lede{margin-top:19px;max-width:62ch;font-size:clamp(17px,2.25vw,21px)}
.blog-intro .blog-back{margin:-13px 0 14px;color:var(--blue)}
.blog-index{padding-block:clamp(40px,7vw,84px)}
.blog-index .section-intro{margin-bottom:24px}
.blog-grid{align-items:stretch}
.blog-grid .installation-card{display:flex;flex-direction:column}
.blog-grid .card-body{height:100%;display:flex;flex-direction:column;align-items:flex-start}
.blog-grid .card-body h3 a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.blog-grid .card-body p{max-width:46ch}
.blog-grid .card-body .text-link{margin-top:auto;padding-top:10px}
.blog-grid .blog-illustration{display:block;height:auto;min-height:0;padding:0;aspect-ratio:16/9;overflow:hidden;background:#10243a;border-bottom:1px solid var(--line)}
.blog-grid .blog-illustration svg{display:block;width:100%;height:100%;max-width:none;stroke:none}
.blog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin-top:25px}
.blog-actions .button{gap:14px}
.blog-download{color:var(--blue)}
.blog-article{max-width:760px;padding-block:clamp(34px,6vw,76px)}
.blog-section + .blog-section{margin-top:33px}
.blog-section h2,.blog-related h2{font-size:clamp(24px,4vw,33px);margin-bottom:11px}
.blog-section p,.blog-section li{font-size:17px;color:var(--muted);line-height:1.72}
.blog-section p + p{margin-top:13px}
.blog-section :is(ul,ol){padding-left:1.38em}
.blog-section li + li{margin-top:5px}
.blog-section a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.blog-note{border-left:3px solid var(--blue);background:#eef3f2;padding:15px 18px;margin-top:38px}
.blog-note p{font-size:14px}
.blog-related{border-top:1px solid var(--line);padding-top:26px;margin-top:35px}
.blog-related .text-link{display:flex;width:fit-content;color:var(--blue);gap:10px}
@media(max-width:650px){.blog-grid{grid-template-columns:1fr}.blog-grid .card-body{padding:23px}}

/* Teaching figures follow the article's existing typography, cards and colours. */
.blog-visual{margin:0 0 34px;background:#eef3f2;border:1px solid var(--line);border-radius:6px;padding:clamp(15px,3vw,28px)}
.blog-visual>.eyebrow{margin-bottom:7px}
.blog-visual>h2{font-size:clamp(26px,4.3vw,36px);line-height:1.13;margin-bottom:18px}
.blog-visual figcaption{border-top:1px solid var(--line);margin-top:16px;padding-top:11px;font-size:14px;line-height:1.6;color:var(--muted)}
.blog-visual h3{font-size:clamp(16px,2.3vw,18px);letter-spacing:-.01em;line-height:1.26;color:var(--navy)}
.point-number{display:inline-grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:var(--navy);color:#fff;font-size:14px;font-weight:700;line-height:1}
.cert-flow,.cycle-data,.cycle-key{padding:0;margin:0;list-style:none}
.cert-step,.cert-branch,.cycle-card{background:#fff;border:1px solid var(--line);border-radius:5px;padding:11px 12px}
.cert-step,.cycle-card{display:flex;align-items:flex-start;gap:10px}
.cert-step p,.cert-branch p,.cycle-card p{margin-top:4px;font-size:16px;line-height:1.48}
.cert-next{display:flex;align-items:center;gap:8px;min-height:31px;padding-left:13px;font-size:14px;font-weight:650;color:var(--blue)}
.cert-next b{font-size:17px;line-height:1}
.cert-branches{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;padding-top:10px}
.cert-branches::before{position:absolute;content:"";height:9px;width:50%;left:25%;top:0;border:1px solid #769195;border-bottom:0}
.cert-branch .branch-label{font-size:14px;font-weight:750;line-height:1.35;letter-spacing:.028em;color:var(--blue);margin:0}
.cycle-schematic{display:block;width:100%;height:auto;max-width:640px;background:#fff;border:1px solid var(--line);border-radius:5px}
.cycle-schematic text{font:650 23px "Public Sans",Arial,sans-serif;fill:var(--navy);text-anchor:middle}
.cycle-schematic .cycle-small{font-size:14px;letter-spacing:.075em;fill:var(--blue)}
.cycle-schematic .cycle-lane{font-size:16px}
.cycle-part rect{fill:#f7f7f2;stroke:#95abad;stroke-width:1.5}
.cycle-schematic .pipe-high,.cycle-schematic .pipe-low{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.flow-high{--pipe:#9a4221}
.flow-low{--pipe:#27687c}
.cycle-schematic .pipe-high{stroke:#9a4221}
.cycle-schematic .pipe-low{stroke:#27687c}
.cycle-schematic .pipe-arrow-high{fill:#9a4221}
.cycle-schematic .pipe-arrow-low{fill:#27687c}
.cycle-dot circle{fill:var(--navy);stroke:white;stroke-width:2.5}
.cycle-schematic .cycle-dot text{fill:white;font-size:20px;font-weight:750}
.cycle-key{display:flex;flex-wrap:wrap;gap:6px 20px;margin-block:10px 12px;color:var(--muted);font-size:14px}
.cycle-key li{display:flex;align-items:center;gap:7px}
.cycle-key li::before{content:"";width:22px;border-top:4px solid var(--pipe);border-radius:3px}
.cycle-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cycle-card{border-left:3px solid var(--pipe);height:100%;min-width:0}
.cycle-connector{display:none}
.cycle-reading{color:var(--navy);font-weight:650}
@media(max-width:640px){
 .cycle-schematic{display:none}
 .cycle-data{grid-template-columns:minmax(0,1fr);gap:0}
 .cycle-card{height:auto}
 .cycle-connector{display:flex;gap:8px;align-items:baseline;padding:6px 0 6px 13px;color:var(--pipe)}
 .cycle-connector span{font-size:20px;line-height:1;font-weight:650}
 .cycle-connector p{font-size:14px;line-height:1.45;color:var(--navy)}
 .cycle-return{padding-block:8px 0}
}
@media(max-width:520px){
 .cert-branches{grid-template-columns:minmax(0,1fr);padding-top:0}
 .cert-branches::before{display:none}
 .blog-actions{align-items:stretch;flex-direction:column}
 .blog-actions a{min-height:48px;justify-content:space-between;padding-inline:14px}
 .blog-actions .blog-download{border:1px solid var(--line);border-radius:var(--radius);background:white}
 .blog-article .blog-sources a{display:inline-flex;align-items:center;min-height:44px}
}
@media print{.blog-visual,.cycle-data li,.cert-step,.cert-branch{break-inside:avoid}}

.blog-intro .blog-video-status{margin-top:12px;font-size:16px;color:var(--muted)}
.phase-pressure{font-size:16px;margin-bottom:10px}
.phase-pressure strong{color:var(--navy)}
.phase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.phase-card{background:#fff;border:1px solid var(--line);border-radius:5px;padding:14px}
.phase-card .phase-temp{font-size:14px;line-height:1.35;margin-bottom:10px}
.phase-temp strong{display:block;font-size:25px;color:var(--blue)}
.phase-temp span{font-weight:650}
.phase-card p,.phase-card li{font-size:16px;line-height:1.55}
.phase-card h3+p{margin-top:8px}
.phase-card ul{margin:8px 0;padding-left:1.25em;color:var(--muted)}
@media(max-width:520px){.phase-grid{grid-template-columns:minmax(0,1fr)}}

.phase-card .formula-result{color:var(--navy);padding-top:9px;border-top:1px solid var(--line)}

.nameplate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:640px){.nameplate-grid{grid-template-columns:minmax(0,1fr)}}
.route-card .route-flow{display:grid;gap:18px;list-style:decimal inside;margin:12px 0 0;padding:0}
.route-flow li{position:relative;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:4px;color:var(--navy)}
.route-flow li:not(:first-child)::before{content:"";position:absolute;top:-14px;left:18px;width:7px;height:7px;border:solid var(--blue);border-width:0 2px 2px 0;transform:rotate(45deg)}
.route-flow li::marker{color:var(--blue);font-weight:700}

/* Opt-in, synchronised animation: the numbered schematic and its mobile text flow. */
.cycle-motion-toggle{display:flex;align-items:center;gap:10px;min-height:44px;width:fit-content;color:var(--navy);font-weight:700;cursor:pointer}
.cycle-motion-toggle input{width:20px;height:20px;accent-color:#13736e}
.cycle-motion-toggle input:focus-visible{outline:3px solid #13736e;outline-offset:4px}
.cycle-motion-note{margin:0 0 12px;color:var(--muted);font-size:14px}
@keyframes cycle-card-step{
  0%,19.9%{background:#e1f3ef;box-shadow:inset 0 0 0 2px #13736e}
  20%,100%{background:#fff;box-shadow:none}
}
@keyframes cycle-dot-step{
  0%,19.9%{fill:#13736e;stroke:#10243a;stroke-width:4}
  20%,100%{fill:var(--navy);stroke:#fff;stroke-width:2.5}
}
@media (prefers-reduced-motion:no-preference){
  .cycle-animation:has(#cycle-motion:checked) .cycle-data>li .cycle-card{animation:cycle-card-step 15s steps(1,end) infinite;animation-delay:var(--cycle-delay,0s)}
  .cycle-animation:has(#cycle-motion:checked) .cycle-dot circle{animation:cycle-dot-step 15s steps(1,end) infinite;animation-delay:var(--cycle-delay,0s)}
  .cycle-data>li:nth-of-type(2),.cycle-dot:nth-last-of-type(4){--cycle-delay:3s}
  .cycle-data>li:nth-of-type(3),.cycle-dot:nth-last-of-type(3){--cycle-delay:6s}
  .cycle-data>li:nth-of-type(4),.cycle-dot:nth-last-of-type(2){--cycle-delay:9s}
  .cycle-data>li:nth-of-type(5),.cycle-dot:nth-last-of-type(1){--cycle-delay:12s}
}
@media (prefers-reduced-motion:reduce),print{.cycle-motion-toggle,.cycle-motion-note{display:none}}

.cycle-flow-motion{display:none}
@keyframes cycle-flow-dashes{to{stroke-dashoffset:-28}}
@media (prefers-reduced-motion:no-preference){
  .cycle-animation:has(#cycle-motion:checked) .cycle-flow-motion{display:block;fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:7 21;animation:cycle-flow-dashes 900ms linear infinite}
}

/* Portrait drawing keeps the component labels and playback readable on phones. */
.cycle-schematic-phone{display:none}
@media(max-width:640px){
 .cycle-schematic.cycle-schematic-phone{display:block;max-width:360px;margin-inline:auto}
 .cycle-schematic-phone text{font-size:16px}
 .cycle-schematic-phone .cycle-small{font-size:11px}
 .cycle-schematic-phone .cycle-dot text{font-size:16px}
 .cycle-schematic-phone .cycle-dot circle{r:12px}
}
@media print{.cycle-schematic.cycle-schematic-phone{display:none}.cycle-schematic:not(.cycle-schematic-phone){display:block}}
