/* Plumbing Brief. Navy, orange and silver from the logo.
   Same skeleton as the sister sites (white masthead, section bar, lead + latest list, a block for every
   section). The lead story sits on a solid dark navy panel with heavy white type and a navy
   "why it matters" strip along its foot (an orange panel was rejected). Everything else is quiet: white page, navy type, silver
   rules, section names as plain orange text. No badges round the section icons, no gradients, no
   illustrations, no loose text in the masthead. */
:root{
  --navy:#08234a; --ink:#051630; --blue:#0879ce; --blue-ink:#0660a8; --orange:#e85a00; --orange-ink:#b54600; --silver:#bfc4c9;
  --wash:#f1f3f6; --rule:#d9dee4; --paper:#ffffff; --text:#151f2d; --muted:#5a6677;
  --head:"Poppins","Segoe UI",system-ui,sans-serif;   /* the logo's own letterforms, upright */
  --body:"Mulish","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--body);font-size:17.5px;line-height:1.6}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1220px;margin:0 auto;padding:0 28px}
.narrow{max-width:760px}
time,.updated,.fine{font-family:var(--body);font-size:13.5px;font-weight:600;color:var(--muted)}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:#fff;padding:8px;z-index:9}
.hp{position:absolute;left:-9999px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.ico{flex:none}

/* Masthead: slim ink strip, white logo row, navy section bar with an orange rule */
.util{background:var(--ink);color:#b3c0d2}
.util-in{display:flex;justify-content:space-between;align-items:center;min-height:34px}
.util .updated{color:#b3c0d2;font-size:13px}
.util-links{display:flex;gap:20px;font-family:var(--head);font-size:12.5px;font-weight:500}
.util-links a{text-decoration:none;color:#e3eaf3}.util-links a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.masthead{background:var(--paper)}
.brand-row{display:flex;justify-content:space-between;align-items:center;gap:28px;padding-top:18px;padding-bottom:16px;position:relative}
.brand img{width:min(330px,64vw)}
.brand-side{display:flex;align-items:center;gap:12px}
.btn.btn-ghost{background:transparent;color:var(--navy);box-shadow:inset 0 0 0 2px var(--navy)}
.btn.btn-ghost:hover{background:var(--navy);color:#fff}
.topics{background:var(--navy)}
.topics-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0}
.topics a{font-family:var(--head);font-weight:500;font-size:14px;text-decoration:none;color:#dfe7f1;padding:13px 9px 9px;border-bottom:4px solid transparent;white-space:nowrap}
.topics a:hover{color:#fff;border-bottom-color:#5d7396}
.topics a[aria-current]{color:#fff;font-weight:600;border-bottom-color:var(--orange)}
.stripes{height:4px;background:var(--orange)}
.burger{display:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid var(--rule);background:#fff;border-radius:4px;cursor:pointer}
.burger span,.burger span::before,.burger span::after{display:block;width:20px;height:2px;background:var(--navy);margin:0 auto;position:relative;content:""}
.burger span::before{position:absolute;top:-6px}.burger span::after{position:absolute;top:6px}

/* Shared */
.kicker{display:inline-block;font-family:var(--head);font-weight:600;font-size:13.5px;color:var(--orange-ink);text-decoration:none;margin-bottom:8px;line-height:1.2}
a.kicker:hover{text-decoration:underline;text-underline-offset:3px}
h1,h2,h3,h4{font-family:var(--head);color:var(--ink);line-height:1.18;margin:0;font-weight:700;letter-spacing:-.018em}
h1 a,h2 a,h3 a,h4 a{text-decoration:none}
h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover{color:var(--blue-ink)}
.dek{color:#3a4656;margin:8px 0 8px;font-size:16px;line-height:1.5}
main{padding-bottom:64px}
.btn,button[type=submit]{display:inline-block;background:#d65200;color:#fff;font-family:var(--head);font-weight:600;font-size:15px;border:0;border-radius:4px;padding:12px 20px;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover,button[type=submit]:hover{background:var(--navy);color:#fff}

/* Home, top: dark navy lead panel (solid, type only) with a navy foot, latest list beside it */
.home-top{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:36px;padding-top:28px}
.lead{background:var(--ink);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.lead-text{flex:1;padding:40px 44px 34px;display:flex;flex-direction:column;justify-content:center}
.lead .kicker{align-self:flex-start;background:var(--orange);color:var(--ink);font-size:13.5px;padding:6px 12px 5px;border-radius:3px;margin:0 0 22px}
.lead h2{font-size:clamp(34px,4.3vw,56px);font-weight:800;letter-spacing:-.03em;line-height:1.05;color:#fff;max-width:19ch}
.lead h2 a:hover{color:#ffb27a}
.lead .dek{font-size:20.5px;line-height:1.45;color:#d6dfeb;margin:18px 0 0;max-width:54ch}
.lead time{color:#9fb0c6;margin-top:18px;font-size:14px}
.lead-why{background:var(--navy);color:#d6dfeb;margin:0;padding:20px 44px 22px;font-size:17px;line-height:1.5}
.lead-why strong{display:block;font-family:var(--head);font-weight:600;font-size:13.5px;color:#ff9a4d;margin-bottom:3px}

.feed{border-top:4px solid var(--navy);padding:16px 0 0;display:flex;flex-direction:column}
.feed-h,.section-h,.rail-h{font-family:var(--head);font-weight:700;letter-spacing:-.015em;line-height:1.1;color:var(--ink)}
.feed-h{font-size:21px;margin-bottom:10px}
.feed-list{list-style:none;margin:0;padding:0}
.feed-list li{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;padding:13px 0;border-top:1px solid var(--rule)}
.feed-list time{font-family:var(--head);font-weight:600;font-size:13.5px;color:var(--orange-ink);line-height:1.35}
.feed-list time b{display:block;font-weight:600;white-space:nowrap}
.feed-list time span{display:block;font-family:var(--body);font-weight:600;font-size:12.5px;color:var(--muted)}
.feed-list a{font-family:var(--head);font-weight:600;font-size:15.5px;line-height:1.35;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.feed-list a:hover{color:var(--blue-ink);text-decoration:underline;text-underline-offset:3px}
.feed-more{margin-top:auto;padding-top:14px;border-top:1px solid var(--rule);font-family:var(--head);font-weight:600;font-size:14px;color:var(--navy)}

/* Four follow-up stories, one per section */
.second{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:36px;border-top:4px solid var(--navy);border-bottom:1px solid var(--rule)}
.second .card{padding:20px 24px 22px;border-left:1px solid var(--rule)}
.second .card:first-child{padding-left:0;border-left:0}
.second .card:last-child{padding-right:0}
.card :is(h2,h3){font-size:19px;font-weight:600;line-height:1.25}
.card .dek{font-size:16px}
.card.compact :is(h2,h3){font-size:16.5px}

/* A block for every section: open columns, no boxes */
.section-h{font-size:30px;font-weight:800;letter-spacing:-.025em;margin:60px 0 26px}
.secs{display:grid;grid-template-columns:repeat(3,1fr);gap:44px 40px}
.sec{display:flex;flex-direction:column}
.sec-h{font-family:var(--head);font-size:18.5px;font-weight:700;line-height:1.2;border-bottom:1px solid var(--rule);position:relative}
.sec-h::after{content:"";position:absolute;left:0;bottom:-2px;width:56px;height:4px;background:var(--orange)}
.sec-h a{display:flex;align-items:center;gap:11px;color:var(--ink);padding:0 0 12px}
.sec-h a:hover{color:var(--blue-ink)}
.sec-ico{display:grid;color:var(--orange)}
.sec-first{padding:18px 0 14px}
.sec-first h4{font-size:19px;font-weight:600;line-height:1.25}
.sec-first .dek{font-size:16px;margin-bottom:6px}
.sec-more{padding:12px 0;border-top:1px solid var(--rule)}
.sec-more h4{font-size:15.5px;font-weight:600;line-height:1.35;margin-bottom:3px}
.sec-all{margin-top:auto;padding-top:12px;border-top:1px solid var(--rule);font-family:var(--head);font-weight:600;font-size:14px;color:var(--navy);text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:4px}
.sec-all:hover{color:var(--blue-ink)}

/* Newsletter and tips */
.secs-signup{display:flex}.secs-signup .signup{flex:1;display:flex;flex-direction:column;justify-content:center}
.secs-signup.span2{grid-column:span 2}.secs-signup.span3{grid-column:1/-1}
.secs-signup .signup-label{font-size:28px}.secs-signup .signup-copy{font-size:17px;max-width:52ch}.secs-signup .signup-row{max-width:520px}
.tip-band{margin-top:56px;border-radius:6px;background:var(--ink);color:#d6dfeb;padding:34px 40px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.tip-band h2{color:#fff;font-size:25px;font-weight:700}.tip-band p{margin:8px 0 0;font-size:16px;line-height:1.5;max-width:70ch}
.tip-band .btn{background:var(--orange);color:var(--ink)}
.tip-band .btn:hover{background:#fff;color:var(--ink)}

/* Signup */
.signup{background:var(--wash);border-radius:6px;padding:26px 28px}
.signup-label{display:block;font-family:var(--head);font-weight:700;font-size:22px;letter-spacing:-.02em;line-height:1.15;color:var(--ink)}
.signup-copy{font-size:16px;margin:8px 0 14px;color:#3a4656;line-height:1.45}
.signup-row{display:flex;gap:8px}
.rail .signup-row{flex-direction:column}
.signup input,.form input,.form select,.form textarea{font:inherit;font-size:16px;padding:11px 12px;border:1px solid #a9b5c4;border-radius:4px;width:100%;background:#fff;color:var(--text)}
.prose .signup{margin-top:20px}

/* Section pages */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 48px}
.grid .card{border-bottom:1px solid var(--rule);padding:22px 0}
.grid .card :is(h2,h3){font-size:21.5px}
.grid .card .kicker{display:none}
.empty{grid-column:1/-1;color:var(--muted);padding:22px 0}
.page-head{padding:44px 0 24px;border-bottom:4px solid var(--navy);margin-bottom:8px}
.page-head h1{font-size:clamp(30px,4vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.08}
.page-head .dek{max-width:70ch}
.topic-head{display:flex;gap:22px;align-items:flex-start}
.topic-ico{display:grid;color:var(--orange);margin-top:6px}

/* Article */
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:64px;padding-top:40px}
.story{max-width:720px}
.story h1{font-size:clamp(30px,4vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.1}
.story-dek{font-size:21px;color:#3a4656;margin:16px 0 16px;line-height:1.45}
.byline{font-size:14px;font-weight:600;color:var(--muted);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:10px 0;margin:0 0 24px}
.byline time{font-size:14px}
.why{background:var(--ink);border-left:6px solid var(--orange);border-radius:0 6px 6px 0;padding:16px 24px 18px;margin-bottom:28px}
.why h2{font-size:13.5px;font-weight:600;color:#ff9a4d;letter-spacing:0}
.why p{margin:4px 0 0;font-size:18px;color:#e8eef6}
.why a{color:#fff}
.prose h2{font-size:24px;margin:34px 0 8px}
.prose h3{font-size:20px;margin:26px 0 6px}
.prose p,.prose li{font-size:18.5px}
.prose a{color:var(--blue-ink);text-underline-offset:3px}
.prose ul{padding-left:22px}
.prose blockquote{margin:26px 0;padding:2px 0 2px 22px;border-left:5px solid var(--orange);font-size:20.5px}
.sources{margin-top:38px;border-top:4px solid var(--navy);padding-top:14px}
.sources h2{font-size:17px}
.sources ul{padding-left:20px;font-size:16px}
.sources a{color:var(--blue-ink)}
.share{font-size:14.5px;font-weight:600;color:var(--muted);margin-top:20px;display:flex;gap:16px;align-items:center}
.share a{color:var(--navy)}
.rail{display:flex;flex-direction:column;gap:32px}
.rail-h{font-size:19px;border-bottom:4px solid var(--navy);padding-bottom:9px;margin-bottom:4px}
.rail-list .card{padding:14px 0;border-bottom:1px solid var(--rule)}

/* Forms */
.form{display:flex;flex-direction:column;gap:16px;margin-top:20px}
.form label{display:flex;flex-direction:column;gap:6px;font-family:var(--head);font-weight:500;font-size:14.5px;color:var(--ink)}
.form button{align-self:flex-start}

/* Footer */
.site-footer{background:var(--ink);color:#aab7c8;font-size:15px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;padding-top:40px;padding-bottom:30px}
.footer-logo{display:inline-block;margin:0 0 16px}
.footer-logo img{width:280px}
.site-footer p{line-height:1.5;margin-top:0}
.site-footer h2{color:#fff;font-size:15.5px;font-weight:600;margin-bottom:10px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.site-footer a{color:#e3eaf3;text-decoration:none}.site-footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-base{border-top:1px solid #1b3154;padding-top:16px;padding-bottom:26px;font-size:13.5px}

/* Responsive */
@media (max-width:1240px){
  .topics-in{justify-content:flex-start}
}
@media (max-width:1100px){
  .home-top{grid-template-columns:1fr}
  .second{grid-template-columns:1fr 1fr}
  .second .card{padding:20px 0;border-left:0;border-top:1px solid var(--rule)}
  .second .card:nth-child(-n+2){border-top:0}
  .second .card:nth-child(odd){padding-right:24px}
  .second .card:nth-child(even){padding-left:24px;border-left:1px solid var(--rule)}
  .secs{grid-template-columns:1fr 1fr}
  .secs-signup.span1,.secs-signup.span2{grid-column:1/-1}
  .article-wrap{grid-template-columns:1fr;gap:40px}
}
@media (max-width:680px){
  .wrap{padding:0 18px}
  .util-links a:nth-child(n+2){display:none}
  .brand-row{padding-top:12px;padding-bottom:12px}
  .brand img{width:min(220px,58vw)}
  .brand-side{display:none}
  .burger{display:block}
  .topics{display:none}
  .topics.open{display:block}
  .topics-in{flex-direction:column;align-items:stretch}
  .topics a,.topics a[aria-current]{padding:13px 0 12px;font-size:16px;border-bottom:1px solid #1b3a6b}
  .topics a[aria-current]{color:#ff9a4d}
  .home-top{padding-top:18px;gap:26px}
  .lead-text{padding:28px 22px 24px}
  .lead .dek{font-size:18px}
  .lead-why{padding:18px 22px 20px;font-size:16.5px}
  .second{grid-template-columns:1fr;margin-top:28px}
  .second .card,.second .card:nth-child(odd),.second .card:nth-child(even){padding:18px 0;border-left:0;border-top:1px solid var(--rule)}
  .second .card:first-child{border-top:0}
  .section-h{font-size:25px;margin:44px 0 22px}
  .secs{grid-template-columns:1fr;gap:36px}
  .signup-row{flex-direction:column}
  .grid{grid-template-columns:1fr}
  .tip-band{flex-direction:column;align-items:flex-start;padding:28px 22px;margin-top:44px}
  .topic-head{gap:14px}.topic-ico .ico{width:30px;height:30px}
  .footer-grid{grid-template-columns:1fr;gap:26px}
  .story-dek{font-size:18.5px}
}

/* Photos (only when content/photos.json exists) */
.thumb,.lead-img{display:block;overflow:hidden;background:var(--wash)}
.thumb img,.lead-img img,.story-photo img{width:100%;height:100%;object-fit:cover}
.thumb{aspect-ratio:16/10;margin-bottom:14px}
.lead.has-photo .lead-img{aspect-ratio:21/9}
.sec-first .thumb{margin:0 0 16px}
.story-photo{margin:0 0 26px}
.story-photo img{aspect-ratio:16/9;height:auto}
.story-photo figcaption{font-size:13px;color:var(--muted);margin-top:8px}
