/* Heat Index Calculator: scoped to its WordPress page template. */
.hi-page {
  --hi-navy: #0e1f2f;
  --hi-blue: #2591b7;
  --hi-sky: #a9ddf3;
  --hi-mist: #d4eef9;
  --hi-ash: #f4f5f6;
  --hi-white: #fff;
  --hi-line: #dde4ec;
  --hi-shadow: 0 4px 24px rgba(14,31,47,.09);
  color: #3d4d5c;
}
.hi-page [hidden] { display: none !important; }
.hi-hero { position: relative; min-height: 420px; display: flex; align-items: center; background: var(--hi-navy) center/cover; overflow: hidden; }
.hi-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(14,31,47,.90),rgba(37,145,183,.50)); }
.hi-hero__inner { position: relative; width: 100%; max-width: 1360px; margin: auto auto 0; padding: 80px 32px; }
.hi-hero__content { max-width: 720px; }
.hi-hero__overline { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hi-sky); margin: 0 0 14px; }
.hi-page .hi-hero__title { font-size: clamp(2rem,4.5vw,3rem); line-height: 1.15; color: var(--hi-white); margin: 0 0 16px; }
.hi-page .hi-hero__subtitle { font-size: 1.0625rem; line-height: 1.65; color: var(--hi-sky); margin: 0; }
.hi-article-layout { display: flex; align-items: flex-start; max-width: 1360px; margin: 0 auto; padding: 56px 32px 80px; gap: 56px; }
.hi-sidebar { flex: 0 0 240px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.hi-sidebar__inner { padding-bottom: 24px; }
.hi-sidebar__heading { font-size: .9375rem; font-weight: 700; color: var(--hi-navy); margin: 0 0 14px; }
.hi-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hi-ash); }
.hi-toc__list li { margin: 0; }
.hi-page .hi-toc__link { display: block; padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #6b7c8d; text-decoration: none; font-size: .9rem; line-height: 1.45; transition: color .2s ease, border-color .2s ease; }
.hi-page .hi-toc__link:hover, .hi-page .hi-toc__link:focus-visible { color: var(--hi-blue); border-color: var(--hi-blue); }
.hi-page .hi-toc__link.is-active { color: var(--hi-blue); font-weight: 600; border-left-color: var(--hi-blue); }
.hi-article-body { flex: 1; min-width: 0; width: 100%; }
.hi-article-body > h2, .hi-article-body > .cta, .hi-article-body > .related { scroll-margin-top: 130px; }
.hi-section[id] { scroll-margin-top: 190px; }
.hi-article-body > h2 { border-top: 1px solid #e8edf2; padding-top: 56px; margin: 56px 0 16px; }
.hi-article-body > h2 + p { margin-top: 0; }
.hi-article-body h2 { font-size: 1.625rem; line-height: 1.3; font-weight: 700; color: var(--hi-navy); }
.hi-article-body h3 { font-size: 1.1875rem; font-weight: 700; color: var(--hi-navy); margin: 36px 0 12px; }
.hi-article-body h4 { font-size: 1rem; font-weight: 700; color: var(--hi-blue); margin: 28px 0 10px; }
.hi-article-body p, .hi-article-body li { font-size: 1rem; line-height: 1.8; color: #3d4d5c; }
.hi-article-body p { margin: 0 0 17px; }
.hi-article-body ul, .hi-article-body ol { padding-left: 22px; margin: 12px 0 20px; }
.hi-article-body li { margin-bottom: 6px; }
.hi-article-body a { color: var(--hi-blue); }
.hi-section > h2 { margin: 0 0 16px; }
.hi-calculator-card { background: var(--hi-white); border: 1px solid var(--hi-line); border-radius: 14px; box-shadow: var(--hi-shadow); padding: 36px; margin: 20px 0 16px; }
.hi-autofill { padding: 24px; margin-bottom: 28px; border: 1px solid #d7eaf3; border-radius: 12px; background: linear-gradient(135deg,#f3fbff,#edf7fb); }
.hi-article-body .hi-autofill__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hi-blue); margin: 0 0 8px; }
.hi-autofill h3 { margin: 0 0 8px; font-size: 1.125rem; }
.hi-autofill p { margin-bottom: 12px; }
.hi-zip-row { display: flex; gap: 12px; align-items: stretch; }
.hi-page #hi-zip { flex: 1 1 auto; min-width: 0; height: 50px; min-height: 50px; padding: 0 16px; border: 1.5px solid #c9dce6; border-radius: 999px; color: var(--hi-navy); background: var(--hi-white); box-shadow: none; font: inherit; }
.hi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hi-field { display: grid; grid-template-rows: 33px 48px; gap: 6px; align-items: end; min-width: 0; }
.hi-field label { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.25; color: var(--hi-navy); margin: 0; }
.hi-field > label { display: flex; align-items: flex-end; height: 33px; }
.hi-label-row { height: 33px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.hi-label-row label { margin: 0; }
.hi-input-wrap { position: relative; display: flex; align-items: center; }
.hi-page .hi-input-wrap input { width: 100%; height: 48px; min-height: 48px; padding: 0 48px 0 14px; background: var(--hi-ash); border: 1.5px solid transparent; border-radius: 8px; color: var(--hi-navy); font: inherit; box-shadow: none; -moz-appearance: textfield; }
.hi-input-wrap span { position: absolute; right: 14px; pointer-events: none; color: #8a9aaa; }
.hi-page input::-webkit-inner-spin-button, .hi-page input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hi-page input:focus-visible, .hi-page button:focus-visible, .hi-page summary:focus-visible, .hi-page .tablewrap:focus-visible, .hi-page a:focus-visible { outline: 3px solid rgba(37,145,183,.45); outline-offset: 2px; }
.hi-unit-toggle { display: inline-flex; overflow: hidden; border: 1.5px solid var(--hi-line); border-radius: 999px; }
.hi-page .hi-unit-toggle button { min-width: 44px; height: 30px; padding: 0 13px; border: 0; border-radius: 0; background: var(--hi-white); color: #6b7c8d; box-shadow: none; font-size: .875rem; font-weight: 700; cursor: pointer; }
.hi-page .hi-unit-toggle button[aria-pressed="true"] { background: var(--hi-blue); color: var(--hi-white); }
.hi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hi-page .hi-btn { display: inline-flex; justify-content: center; align-items: center; height: 50px; min-height: 50px; padding: 0 24px; border: 1.5px solid var(--hi-blue); border-radius: 999px; background: var(--hi-blue); color: var(--hi-white); font-size: .9375rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: none; text-transform: none; }
.hi-page .hi-btn:hover { background: #1e7898; border-color: #1e7898; }
.hi-page .hi-btn--secondary { background: var(--hi-white); color: var(--hi-blue); }
.hi-page .hi-btn--secondary:hover { background: var(--hi-mist); color: var(--hi-navy); }
.hi-page .hi-btn[disabled] { opacity: .7; cursor: wait; }
.hi-page .hi-status { min-height: 1.2em; margin: 12px 0 0; font-size: .9rem; }
.hi-page .hi-status:empty { min-height: 0; margin-top: 0; }
.hi-page .hi-status--error { color: #b42318; font-weight: 700; }
.hi-result { padding: 24px; margin-top: 20px; border: 1px solid var(--hi-line); border-radius: 12px; background: #f8fbfd; }
.hi-result h3 { margin: 0 0 8px; }
.hi-result__num { font-size: clamp(2.25rem,5vw,3.5rem); line-height: 1; font-weight: 800; color: var(--hi-navy); }
.hi-result__alt { color: #6b7c8d; font-weight: 600; margin: 6px 0 16px; }
.hi-result__badge { display: inline-block; padding: 7px 16px; margin-bottom: 14px; border-radius: 999px; font-size: .875rem; font-weight: 800; }
.hi-result__badge--safe { background: #eafaF1; color: #14532d; }
.hi-result__badge--caut { background: #fefce8; color: #854d0e; }
.hi-result__badge--xcaut { background: #fff8df; color: #9a5706; }
.hi-result__badge--dang { background: #fef2f2; color: #991b1b; }
.hi-result__badge--xdang { background: #f6edfa; color: #5a1a6b; }
.hi-article-body .hi-disclaimer { font-size: .875rem; color: #6b7c8d; }
.hi-page .callout, .hi-page .formula { padding: 20px 24px; margin: 20px 0 26px; border: 1px solid var(--hi-blue); border-left-width: 5px; border-radius: 0 10px 10px 0; background: #ebf4ff; }
.hi-page .callout.teal { border-color: #0d9488; background: #e6f9f9; }
.hi-page .callout.amber { border-color: #d97706; background: #fffbeb; }
.hi-page .callout.red { border-color: #dc2626; background: #fef2f2; }
.hi-page .callout h4, .hi-page .formula h4 { margin: 0 0 9px; }
.hi-page .callout p:last-child, .hi-page .formula p:last-child { margin-bottom: 0; }
.hi-page .formula { border-color: #7c3aed; background: #f3f0ff; }
.hi-page .formula .eq { font: 700 .9375rem/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap: anywhere; margin: 12px 0; }
.hi-page .formula .where { font-size: .9rem; color: #6b7c8d; }
.hi-page .tier { padding: 18px 24px; margin: 0 0 12px; border: 1px solid; border-left-width: 6px; border-radius: 0 10px 10px 0; }
.hi-page .tier .range { font-size: .875rem; font-weight: 800; }
.hi-page .tier .name { font-size: 1.3rem; font-weight: 800; color: var(--hi-navy); }
.hi-page .tier p { margin: 0; }
.hi-page .t-caut { border-color: #eab308; background: #fefce8; }
.hi-page .t-xcaut { border-color: #d97706; background: #fffbeb; }
.hi-page .t-dang { border-color: #dc2626; background: #fef2f2; }
.hi-page .t-xdang { border-color: #7c2d8f; background: #f6edfa; }
.hi-page .tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.hi-page table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: .9375rem; }
.hi-page th { padding: 10px 12px; background: var(--hi-navy); color: var(--hi-white); text-align: left; }
.hi-page td { padding: 10px 12px; border: 1px solid var(--hi-line); vertical-align: top; }
.hi-page tbody tr:nth-child(odd) td { background: var(--hi-ash); }
.hi-page .rowhead { font-weight: 700; color: var(--hi-navy); background: var(--hi-white); }
.hi-page .chart { min-width: 820px; text-align: center; font-size: .85rem; }
.hi-page .chart th { text-align: center; padding: 8px 5px; }
.hi-page .chart td { text-align: center; font-weight: 700; padding: 7px 4px; border-color: var(--hi-white); }
.hi-page .chart .rowhead { background: var(--hi-ash); color: var(--hi-navy); }
.hi-page .chart .c-safe, .hi-page .c-safe { background: #eafaF1; color: #14532d; }
.hi-page .chart .c-caut, .hi-page .c-caut { background: #fef9c3; color: #854d0e; }
.hi-page .chart .c-xcaut, .hi-page .c-xcaut { background: #fdebc8; color: #7c4a03; }
.hi-page .chart .c-dang, .hi-page .c-dang { background: #fbd5d5; color: #8a1616; }
.hi-page .chart .c-xdang, .hi-page .c-xdang { background: #ebd9f2; color: #5a1a6b; }
.hi-page .chart .c-na, .hi-page .c-na { background: #f1f5f9; color: #94a3b8; }
.hi-page .legend { display: flex; gap: 10px 16px; flex-wrap: wrap; margin: 16px 0; font-size: .85rem; }
.hi-page .legend span { display: inline-flex; align-items: center; gap: 7px; }
.hi-page .swatch { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.08); }
.hi-page .faq { border-top: 1px solid var(--hi-line); }
.hi-page .faq details { border-bottom: 1px solid var(--hi-line); interpolate-size: allow-keywords; }
.hi-page .faq summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; list-style: none; cursor: pointer; color: var(--hi-navy); font-size: 1.05rem; font-weight: 700; }
.hi-page .faq summary::-webkit-details-marker { display: none; }
.hi-page .faq summary::before { content: ''; flex: 0 0 9px; width: 9px; height: 9px; border-right: 2px solid var(--hi-blue); border-bottom: 2px solid var(--hi-blue); transform: rotate(-45deg); transition: transform .22s ease; }
.hi-page .faq details[open] summary::before { transform: rotate(45deg); }
.hi-page .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .22s ease, content-visibility .22s allow-discrete; }
.hi-page .faq details[open]::details-content { block-size: auto; }
.hi-page .faq .answer { padding-bottom: 18px; }
.hi-page .cta { padding: 44px 38px; margin: 56px 0 40px; border-radius: 14px; background: var(--hi-navy); text-align: center; }
.hi-page .cta h2 { color: var(--hi-white); margin: 0 0 12px; }
.hi-page .cta p { color: var(--hi-sky); margin: 0 auto 22px; }
.hi-page .cta .contact, .hi-page .cta a { color: var(--hi-white); }
.hi-page .related { padding: 26px 28px; margin-bottom: 50px; border: 1px solid var(--hi-line); border-radius: 10px; background: var(--hi-ash); }
.hi-page .related h2 { margin: 0 0 14px; font-size: 1.25rem; }
.hi-page .related ul { list-style: none; padding: 0; margin: 0; }
.hi-page .related li { margin: 0 0 11px; }
.hi-page .related a { font-weight: 700; text-decoration: none; }
.hi-page .related a:hover { text-decoration: underline; }
.hi-page .related .desc { color: #6b7c8d; font-size: .9375rem; }
@media (max-width:1024px) { .hi-article-layout { gap: 36px; padding: 40px 24px 64px; } .hi-sidebar { flex-basis: 200px; } }
@media (max-width:860px) { .hi-article-layout { flex-direction: column; padding: 0 20px 56px; } .hi-sidebar { position: static; flex: none; width: 100%; max-height: none; padding: 24px 0; border-bottom: 1px solid var(--hi-line); } .hi-toc__list { display: flex; flex-wrap: wrap; gap: 6px; border: 0; } .hi-page .hi-toc__link { margin: 0; padding: 6px 14px; border: 1px solid var(--hi-line); border-radius: 30px; font-size: .8125rem; } .hi-page .hi-toc__link.is-active { background: var(--hi-mist); border-color: var(--hi-blue); } .hi-hero { min-height: 380px; } .hi-hero__inner { padding: 82px 20px; } .hi-article-body { padding-top: 24px; } }
@media (max-width:600px) { .hi-article-layout { padding: 0 16px 48px; } .hi-calculator-card { padding: 24px 16px; } .hi-autofill { padding: 18px; } .hi-section[id] { scroll-margin-top: 140px; } .hi-zip-row, .hi-fields, .hi-actions { display: flex; flex-direction: column; align-items: stretch; } .hi-page #hi-zip { flex: 0 0 50px; width: 100%; } .hi-zip-row .hi-btn, .hi-actions .hi-btn { width: 100%; } .hi-field { width: 100%; } .hi-page .cta { padding: 34px 24px; } }
@media (prefers-reduced-motion:reduce) { .hi-page * { scroll-behavior: auto !important; } .hi-page .hi-toc__link, .hi-page .faq summary::before, .hi-page .faq details::details-content { transition: none; } }
