/* Hendersonville Fire Department - styles for the safety and planning articles only */
:root{
  --hfd-red:#D40000;
  --hfd-red-bright:#FF0000;
  --hfd-blue:#1F3F9A;
  --hfd-ink:#000;
  --hfd-text:#1f1f1f;
  --hfd-amber:#FFCC66;
  --hfd-cream:#FFF4DA;
  --hfd-cream-line:#F1DDA8;
  --hfd-line:#D9D2C4;
  --hfd-max:1140px;
  --hfd-gut:24px;
  --hfd-display:"Arial Black","Arial Bold",Gadget,Arial,"Helvetica Neue",Helvetica,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.hfd-page{margin:0;background:#fff;color:var(--hfd-text);font:18px/1.65 Arial,"Helvetica Neue",Helvetica,sans-serif}
.hfd-page img{display:block;max-width:100%;height:auto}
.hfd-page a:focus-visible{outline:3px solid var(--hfd-blue);outline-offset:3px}
.hfd-container{max-width:var(--hfd-max);margin:0 auto;padding:0 var(--hfd-gut)}
.hfd-skip{position:absolute;left:-9999px;top:0;z-index:20;background:#000;color:#fff;padding:10px 14px;font-weight:700}
.hfd-skip:focus{left:8px;top:8px}

/* header */
.hfd-header{background:#fff;border-bottom:4px solid var(--hfd-red-bright)}
.hfd-header__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;padding-top:14px;padding-bottom:14px}
.hfd-brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.hfd-brand__logo{width:78px;height:78px;flex:none}
.hfd-brand__name{display:flex;flex-direction:column;font-family:var(--hfd-display);font-weight:900;text-transform:uppercase;line-height:1.04;color:var(--hfd-red-bright)}
.hfd-brand__name span:first-child{font-size:29px;letter-spacing:.005em}
.hfd-brand__name span:last-child{font-size:24.5px;letter-spacing:.012em}
.hfd-nav{display:flex;flex-wrap:wrap;gap:2px 22px}
.hfd-nav a{color:#000;text-decoration:none;font-weight:700;font-size:15.5px;padding:6px 0;border-bottom:3px solid transparent}
.hfd-nav a:hover{border-bottom-color:var(--hfd-red-bright)}

/* hero: title card laid over the photo panel */
.hfd-hero{padding:52px 0 4px}
.hfd-hero__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center}
.hfd-hero__card{grid-column:1 / 8;grid-row:1;position:relative;z-index:1;background:#fff;border:3px solid #000;border-top:12px solid var(--hfd-red-bright);padding:40px 44px;box-shadow:14px 14px 0 var(--hfd-amber)}
.hfd-hero__media{grid-column:6 / 13;grid-row:1;margin:0;border:3px solid #000;background:#000}
.hfd-hero__media img{width:100%;aspect-ratio:4 / 3;object-fit:cover}
.hfd-hero h1{margin:0;font-family:var(--hfd-display);font-weight:900;font-size:clamp(32px,4.1vw,52px);line-height:1.08;letter-spacing:-.01em;color:#000}

/* sections */
.hfd-sec{padding:56px 0}
.hfd-sec--lead{padding:44px 0 8px}
.hfd-sec--lead p{font-size:21px;line-height:1.6;color:#000}
.hfd-sec--tint{background:var(--hfd-cream);border-top:1px solid var(--hfd-cream-line);border-bottom:1px solid var(--hfd-cream-line)}
.hfd-sec--tint + .hfd-sec--tint{border-top:0;padding-top:0}
.hfd-sec--tint + .hfd-sec--tint > .hfd-container{border-top:3px solid var(--hfd-amber);padding-top:48px}
main > .hfd-sec:last-child{padding-bottom:72px}
.hfd-sec--photo + .hfd-sec:not(.hfd-sec--tint){padding-top:12px}
.hfd-nowrap{white-space:nowrap}
.hfd-sec h2{margin:0 0 18px;font-family:var(--hfd-display);font-weight:900;font-size:clamp(24px,2.5vw,31px);line-height:1.18;color:var(--hfd-red)}
.hfd-sec p{margin:0 0 1em}
.hfd-container > :last-child,.hfd-card > :last-child{margin-bottom:0}
.hfd-sec a{color:var(--hfd-blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.hfd-sec a:hover{color:var(--hfd-red);text-decoration-thickness:2px}

/* numbered steps (real sequences only) */
.hfd-steps{list-style:none;margin:22px 0 0;padding:0;counter-reset:hfd-step;display:grid;gap:14px}
.hfd-steps[start="4"]{counter-reset:hfd-step 3}
.hfd-sec p + .hfd-steps{margin-top:26px}
.hfd-steps li{counter-increment:hfd-step;position:relative;min-height:76px;background:#fff;border:2px solid #000;padding:20px 26px 20px 96px}
.hfd-steps li::before{content:counter(hfd-step);position:absolute;left:0;top:0;bottom:0;width:70px;padding-top:12px;background:var(--hfd-red);color:#fff;font-family:var(--hfd-display);font-weight:900;font-size:36px;line-height:1.2;text-align:center}

/* photo band with the section card laid over its lower edge */
.hfd-sec--photo{padding:0 0 56px}
.hfd-band{height:clamp(240px,30vw,440px);overflow:hidden;background:#000;border-bottom:3px solid #000}
.hfd-page .hfd-band__img{width:100%;height:100%;object-fit:cover}
.hfd-card{position:relative;margin-top:-112px;background:#fff;border:3px solid #000;border-top:12px solid var(--hfd-red-bright);padding:36px 40px}

/* questions and answers */
.hfd-qa{margin:0 0 14px;background:#fff;border:1px solid var(--hfd-line);border-left:6px solid var(--hfd-red-bright);padding:20px 26px}
.hfd-qa > strong:first-child{display:block;margin-bottom:6px;font-size:20px;line-height:1.35;color:#000}
.hfd-qa + p:not([class]){margin-top:28px}

/* notes and plaques */
.hfd-note{background:#F2F2F2;border-left:6px solid #7A7A7A;padding:16px 22px;color:#2b2b2b}
.hfd-plaque{background:var(--hfd-amber);border:3px solid #000;padding:20px 26px;color:#000;font-weight:700}
.hfd-plaque--note{font-weight:400;font-size:18px}
.hfd-sec p.hfd-plaque{margin-top:24px}

/* tables */
.hfd-table-wrap{margin:26px 0 0}
.hfd-table{width:100%;border-collapse:collapse;background:#fff;border:3px solid #000;font-size:17px;line-height:1.5}
.hfd-table th{background:#000;color:#fff;text-align:left;vertical-align:bottom;padding:14px 18px;font-weight:700;font-size:17px}
.hfd-table--c2 th:last-child{background:var(--hfd-red)}
.hfd-table td{padding:14px 18px;border-top:1px solid var(--hfd-line);vertical-align:top}
.hfd-table--c3 td:first-child{font-weight:700;color:#000}
.hfd-table--c2 td + td{border-left:1px solid var(--hfd-line)}
.hfd-table tbody tr:nth-child(even) td{background:#FFF8E7}

/* footer */
.hfd-footer{background:#000;color:#fff;border-top:6px solid var(--hfd-red-bright);padding:34px 0 38px}
.hfd-footer__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px}
.hfd-footer__name{margin:0;font-family:var(--hfd-display);font-weight:900;text-transform:uppercase;font-size:18px;letter-spacing:.02em}
.hfd-footer__nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.hfd-footer a{color:#fff;text-decoration:none;font-size:15px}
.hfd-footer a:hover{text-decoration:underline}
.hfd-footer__back{flex-basis:100%;margin:6px 0 0;font-size:15px}
.hfd-footer__back a{color:var(--hfd-amber);font-weight:700}

@media (max-width:959px){
  .hfd-hero{padding-top:24px}
  .hfd-hero__grid{display:flex;flex-direction:column}
  .hfd-hero__media{order:-1;margin:0}
  .hfd-hero__card{margin:-56px 14px 0;padding:28px 28px;box-shadow:10px 10px 0 var(--hfd-amber)}
  .hfd-header__in{justify-content:flex-start}
}
@media (max-width:640px){
  :root{--hfd-gut:16px}
  body.hfd-page{font-size:17px}
  .hfd-brand{gap:10px}
  .hfd-brand__logo{width:58px;height:58px}
  .hfd-brand__name span:first-child{font-size:21px}
  .hfd-brand__name span:last-child{font-size:17.7px}
  .hfd-header__in{padding-top:10px;padding-bottom:8px;gap:8px 20px}
  .hfd-nav{gap:0 16px}
  .hfd-nav a{font-size:14.5px;padding:4px 0}
  .hfd-hero{padding-top:16px}
  .hfd-hero__card{margin:-40px 8px 0;padding:22px 20px;border-top-width:10px;box-shadow:8px 8px 0 var(--hfd-amber)}
  .hfd-sec{padding:44px 0}
  .hfd-sec--lead{padding:36px 0 4px}
  .hfd-sec--lead p{font-size:19px}
  .hfd-sec--tint + .hfd-sec--tint > .hfd-container{padding-top:40px}
  .hfd-sec--photo{padding:0 0 44px}
  .hfd-band{height:220px}
  .hfd-card{margin-top:-64px;padding:24px 18px}
  .hfd-steps li{padding:16px 16px 16px 70px}
  .hfd-steps li::before{width:52px;font-size:27px;padding-top:12px}
  .hfd-qa{padding:16px 18px}
  .hfd-qa > strong:first-child{font-size:18.5px}
  .hfd-plaque{padding:16px 18px}
  .hfd-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hfd-table,.hfd-table tbody,.hfd-table tr,.hfd-table td{display:block;width:100%}
  .hfd-table tr + tr{border-top:3px solid #000}
  .hfd-table td{border-top:1px solid var(--hfd-line);padding:12px 16px}
  .hfd-table tr td:first-child{border-top:0}
  .hfd-table--c2 td + td{border-left:0}
  .hfd-table tbody tr:nth-child(even) td{background:#fff}
  .hfd-table td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:13.5px;font-weight:700;color:var(--hfd-red)}
}
@media (max-width:380px){
  .hfd-brand__logo{width:50px;height:50px}
  .hfd-brand__name span:first-child{font-size:19px}
  .hfd-brand__name span:last-child{font-size:16px}
}
