/* Visual refresh: self-contained so the previous design can be restored. */
:root { --ks-ink: #172b36; --ks-muted: #536575; --ks-line: #dfe7ea; --ks-accent: #a64b08; --ks-tint: #fff5e6; }
body { background: #f6f8f9; color: var(--ks-ink); }
body[data-utility-type="su"] { --ks-accent: #036a94; --ks-tint: #edf8ff; }
:where(a, button, select, summary):focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }
.ks-brand-name { font-size: 16px; letter-spacing: -.5px; }
.ks-brand-name > span { color: #667582; }
.ks-hero { position: relative; overflow: hidden; padding: 38px; margin-bottom: 26px; border: 1px solid var(--ks-line); border-radius: 26px; background: radial-gradient(ellipse at 95% 0%, #fff0d6 0, transparent 55%), #fff; }
.ks-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #596873; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ks-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #199375; }
.ks-hero h1 { max-width: 660px; margin: 20px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.09; letter-spacing: -.045em; font-weight: 750; }
.ks-hero h1 span { color: #b9550b; }
.ks-hero-intro { max-width: 560px; color: var(--ks-muted); font-size: 16px; line-height: 1.7; }
.ks-finder { margin-top: 28px; padding: 22px; border: 1px solid var(--ks-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px #172b3607; }
.ks-finder-types { display: flex; gap: 8px; border: 0; padding: 0; margin: 0 0 20px; }
.ks-finder-types label { position: relative; cursor: pointer; }
.ks-finder-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ks-finder-types span { display: block; border: 1px solid var(--ks-line); border-radius: 10px; padding: 10px 20px; color: var(--ks-muted); font-weight: 650; font-size: 14px; }
.ks-finder-types input:checked + span { color: #954409; border-color: #edbf83; background: #fff5e6; }
.ks-finder-types input[value="su"]:checked + span { color: #036a94; border-color: #8dcde9; background: #edf8ff; }
.ks-finder-types input:focus-visible + span { outline: 3px solid #0284c7; outline-offset: 3px; }
.ks-finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.ks-field { display: grid; gap: 7px; color: #445766; font-size: 13px; font-weight: 650; min-width: 0; }
.ks-field select { width: 100%; min-height: 48px; border: 1px solid #c9d5db; border-radius: 10px; background: #f9fbfc; padding: 10px 34px 10px 13px; color: var(--ks-ink); font-size: 16px; font-weight: 500; }
.ks-submit { min-height: 48px; padding: 12px 22px; border-radius: 10px; background: #203b46; color: white; font-size: 14px; font-weight: 650; cursor: pointer; }
.ks-submit:hover { background: #305460; }
.ks-finder-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 17px; color: #657784; font-size: 12px; }
.ks-location { color: #234c60; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 30px; }
.ks-quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 21px; font-size: 13px; color: #627481; }
.ks-quicklinks a { background: #fff; border: 1px solid var(--ks-line); border-radius: 8px; padding: 8px 13px; color: #334e5e; }
.ks-quicklinks a:hover { border-color: #9aafb9; }
.ks-region-picker { margin: 18px 0 22px; padding: 17px 20px; border: 1px solid var(--ks-line); border-radius: 15px; background: white; display: flex; align-items: center; gap: 18px; }
.ks-region-picker > div { flex: 1; min-width: 0; }
.ks-region-picker strong { font-size: 14px; }
.ks-region-picker p { font-size: 12px; color: var(--ks-muted); margin-top: 3px; }
.ks-region-picker .ks-field { width: min(100%, 320px); }
.ks-outage { padding: 22px; border: 1px solid var(--ks-line); border-radius: 17px; background: #fff; box-shadow: 0 3px 12px #172b3603; min-width: 0; }
.ks-outage:hover { border-color: #b9cbd3; }
.ks-outage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.ks-outage-date { font-size: 12px; font-weight: 650; color: #586b78; }
.ks-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #f0f3f5; color: #52636e; }
.ks-status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.ks-status--planned { color: #945008; background: #fff3db; }
.ks-status--ongoing { color: #b52f35; background: #fff0f0; }
.ks-status--completed { color: #157258; background: #eaf7f1; }
.ks-outage h3 { font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ks-outage h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ks-outage-time { margin: 17px 0 15px; padding: 14px 16px; background: var(--ks-tint); border-radius: 10px; }
.ks-outage-time strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ks-outage-time span { display: block; font-size: 12px; color: #566774; margin-top: 5px; }
.ks-outage-reason { color: #526674; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ks-outage details { margin-top: 13px; border-top: 1px solid #edf1f3; padding-top: 12px; color: #536575; font-size: 13px; line-height: 1.65; }
.ks-outage summary { cursor: pointer; font-weight: 600; padding: 3px 0; }
.ks-outage details p { margin-top: 9px; }
.ks-outage-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 16px; font-size: 12px; color: #617481; }
.ks-outage-source a { text-decoration: underline; text-underline-offset: 3px; }
.ks-date-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--ks-line); background: #edf2f4; border-radius: 12px; width: fit-content; margin-bottom: 24px; }
.ks-date-tabs a { padding: 10px 17px; border-radius: 8px; color: #526674; font-size: 13px; font-weight: 650; }
.ks-date-tabs a[aria-current="page"] { background: white; color: #1d3744; box-shadow: 0 2px 5px #172b360b; }
.ks-tool-page { max-width: 1240px; margin: 0 auto; }
.ks-tools-hub { max-width: 1120px; margin: 0 auto; }
.ks-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ks-tool-card { display: flex; min-height: 230px; flex-direction: column; padding: 26px; border: 1px solid var(--ks-line); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, #fff3df, transparent 48%), #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ks-tool-card:hover { border-color: #e3b477; transform: translateY(-2px); box-shadow: 0 14px 35px #172b360b; }
.ks-tool-card > span { width: fit-content; padding: 5px 9px; border-radius: 7px; background: #edf4f6; color: #536d79; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ks-tool-card h2 { margin-top: 20px; color: #203b46; font-size: 21px; font-weight: 750; line-height: 1.25; }
.ks-tool-card p { margin-top: 10px; color: #667984; font-size: 13px; line-height: 1.65; }
.ks-tool-card strong { margin-top: auto; padding-top: 20px; color: #9b490c; font-size: 13px; }
.ks-tool-intro { max-width: 800px; margin: 4px 0 28px; }
.ks-tool-intro h1 { margin: 15px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 760; }
.ks-tool-intro > p { max-width: 720px; color: var(--ks-muted); font-size: 16px; line-height: 1.7; }
.ks-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.ks-calculator-card, .ks-summary-card, .ks-last-bill, .ks-tool-content { border: 1px solid var(--ks-line); background: #fff; border-radius: 20px; }
.ks-calculator-card { padding: 26px; }
.ks-tool-section-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.ks-tool-section-head h2, .ks-device-list-section h2 { font-size: 18px; font-weight: 720; }
.ks-tool-section-head p { margin-top: 5px; color: var(--ks-muted); font-size: 13px; line-height: 1.55; }
.ks-text-button { flex: none; min-height: 36px; color: #647681; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ks-device-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.ks-device-presets button { min-height: 64px; padding: 11px; border: 1px solid #d7e0e4; border-radius: 11px; background: #f9fbfc; color: #294451; font-size: 13px; font-weight: 650; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.ks-device-presets button span { display: block; margin-top: 4px; color: #778792; font-size: 11px; font-weight: 550; }
.ks-device-presets button:hover { border-color: #e2ac67; background: #fff8ec; transform: translateY(-1px); }
.ks-custom-device { margin-top: 24px; padding: 18px; border-radius: 14px; background: #f4f7f8; }
.ks-custom-device h3 { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.ks-custom-device-grid { display: grid; grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr auto; gap: 10px; align-items: end; }
.ks-custom-device label, .ks-device-inputs label, .ks-last-bill label { display: grid; gap: 6px; color: #50636f; font-size: 11px; font-weight: 650; }
.ks-custom-device input, .ks-device-inputs input, .ks-last-bill input { width: 100%; min-height: 42px; border: 1px solid #cbd7dc; border-radius: 9px; background: #fff; padding: 9px 10px; color: var(--ks-ink); font-size: 14px; font-weight: 550; }
.ks-tool-button { min-height: 42px; border-radius: 9px; background: #203b46; padding: 9px 17px; color: #fff; font-size: 13px; font-weight: 700; }
.ks-tool-button:hover { background: #305460; }
.ks-tool-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ks-tool-form label { display: grid; align-content: start; gap: 7px; color: #435864; font-size: 12px; font-weight: 700; }
.ks-tool-form input, .ks-tool-form select { width: 100%; min-height: 46px; border: 1px solid #c8d5da; border-radius: 10px; background: #fff; padding: 9px 11px; color: var(--ks-ink); font-size: 15px; font-weight: 550; }
.ks-tool-form small { color: #7b8991; font-size: 10px; font-weight: 500; line-height: 1.45; }
.ks-input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #c8d5da; border-radius: 10px; background: #fff; }
.ks-input-with-unit input { border: 0; border-radius: 0; }
.ks-input-with-unit > span { padding: 0 12px; color: #6e7e87; font-size: 12px; font-weight: 650; white-space: nowrap; }
.ks-inline-note { margin-top: 20px; padding: 14px 16px; border-radius: 11px; background: #f3f7f8; color: #60737e; font-size: 12px; line-height: 1.6; }
.ks-form-error { margin-top: 14px; color: #b4232b; font-size: 12px; font-weight: 650; }
.ks-form-submit { grid-column: 1 / -1; min-height: 48px; margin-top: 2px; font-size: 14px; }
.ks-block-button { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 18px; text-align: center; }
.ks-compensation-status { display: block; margin: 10px 0 9px; color: #8a4a0b; font-size: 23px; line-height: 1.2; }
.ks-compensation-result > p, .ks-compensation-result [data-compensation-message] { color: #5b6f7a; font-size: 13px; line-height: 1.65; }
.ks-result-placeholder { margin-top: 18px; padding: 22px 18px; border: 1px dashed #cbd8dd; border-radius: 13px; background: #f7fafb; }
.ks-result-placeholder strong { display: block; color: #38515d; font-size: 16px; }
.ks-result-placeholder p { margin-top: 7px; color: #71818a; font-size: 12px; line-height: 1.6; }
.ks-compensation-result ul { display: grid; gap: 8px; margin: 17px 0 0; color: #405864; font-size: 12px; line-height: 1.5; }
.ks-compensation-result li { position: relative; padding-left: 17px; }
.ks-compensation-result li::before { position: absolute; left: 0; content: '\2713'; color: #168063; font-weight: 800; }
.ks-estimated-payment { margin-top: 17px; padding: 16px; border-radius: 12px; background: #203b46; color: #fff; }
.ks-estimated-payment span { display: block; color: #bfd0d6; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.ks-estimated-payment strong { display: block; margin-top: 5px; font-size: 29px; font-variant-numeric: tabular-nums; }
.ks-compensation-table-wrap { overflow-x: auto; margin: 16px 0; }
.ks-compensation-table { width: 100%; border-collapse: collapse; color: #435864; font-size: 13px; }
.ks-compensation-table th, .ks-compensation-table td { padding: 12px 14px; border: 1px solid #dfe7ea; text-align: left; }
.ks-compensation-table th { background: #f3f7f8; color: #29434f; font-weight: 750; }
.ks-compensation-table td:last-child { color: #8d450e; font-weight: 750; white-space: nowrap; }
.ks-faq-list { border-top: 1px solid #e7edef; }
.ks-faq-list details { border-bottom: 1px solid #e7edef; }
.ks-faq-list summary { cursor: pointer; padding: 14px 2px; color: #304a57; font-weight: 700; }
.ks-faq-list p { padding: 0 2px 15px; }
.ks-device-list-section { margin-top: 28px; }
.ks-device-list { display: grid; gap: 10px; margin-top: 13px; }
.ks-device-row { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(320px, 2fr) 105px; gap: 16px; align-items: center; padding: 15px; border: 1px solid #e0e7ea; border-radius: 13px; }
.ks-device-row-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ks-device-row-title strong { overflow: hidden; color: #29434f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ks-device-row-title button { width: 30px; height: 30px; flex: none; border-radius: 8px; color: #8a99a2; font-size: 20px; line-height: 1; }
.ks-device-row-title button:hover { background: #fff0f0; color: #ba3b40; }
.ks-device-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ks-device-inputs input { min-height: 38px; padding: 7px 8px; font-size: 13px; }
.ks-device-consumption { text-align: right; }
.ks-device-consumption strong { display: block; color: #a64b08; font-size: 14px; font-variant-numeric: tabular-nums; }
.ks-device-consumption span { display: block; margin-top: 2px; color: #89969d; font-size: 10px; }
.ks-empty-devices { margin-top: 13px; padding: 30px 20px; border: 1px dashed #cbd6db; border-radius: 13px; text-align: center; }
.ks-empty-devices p { color: #405762; font-size: 14px; font-weight: 700; }
.ks-empty-devices span { display: block; margin-top: 5px; color: #7a8992; font-size: 12px; }
.ks-calculator-summary { position: sticky; top: 86px; display: grid; gap: 12px; }
.ks-summary-card { overflow: hidden; padding: 25px; background: radial-gradient(ellipse at 100% 0, #fff0d6, transparent 55%), #fff; }
.ks-summary-label { display: block; color: #677984; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ks-summary-primary { display: block; margin-top: 7px; color: #1d3743; font-size: 38px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ks-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.ks-summary-grid > div { padding: 12px; border-radius: 10px; background: #f4f7f8; }
.ks-summary-grid span, .ks-cost-result span { display: block; color: #71818a; font-size: 10px; }
.ks-summary-grid strong { display: block; margin-top: 4px; color: #334d59; font-size: 14px; font-variant-numeric: tabular-nums; }
.ks-price-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #50636f; font-size: 12px; font-weight: 650; }
.ks-price-field > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ks-price-field input { width: 78px; min-height: 38px; border: 1px solid #cbd7dc; border-radius: 8px; padding: 7px 8px; background: #fff; font-weight: 700; text-align: right; }
.ks-cost-result { margin-top: 17px; padding: 16px; border-radius: 12px; background: #203b46; color: #fff; }
.ks-cost-result span { color: #bfd0d6; }
.ks-cost-result strong { display: block; margin-top: 5px; font-size: 27px; font-variant-numeric: tabular-nums; }
.ks-summary-note { margin-top: 13px; color: #70818b; font-size: 11px; line-height: 1.55; }
.ks-share-result { width: 100%; min-height: 42px; margin-top: 15px; border: 1px solid #cdd8dd; border-radius: 10px; color: #36525f; font-size: 13px; font-weight: 700; }
.ks-share-result:hover { border-color: #9cafb8; background: #f8fafb; }
.ks-last-bill { padding: 0 18px; }
.ks-last-bill summary { cursor: pointer; padding: 16px 0; color: #415965; font-size: 13px; font-weight: 700; }
.ks-last-bill > div { display: grid; gap: 10px; padding: 0 0 18px; }
.ks-last-bill [data-last-bill-error] { color: #b52f35; font-size: 11px; }
.ks-tool-content { margin-top: 24px; padding: 28px; color: #536575; font-size: 14px; line-height: 1.75; }
.ks-tool-content h2 { margin: 28px 0 8px; color: var(--ks-ink); font-size: 20px; font-weight: 730; }
.ks-tool-content h2:first-child { margin-top: 0; }
.ks-tool-content a { color: #214e62; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ks-formula { margin: 16px 0; padding: 14px 17px; border-left: 4px solid #e89b3d; border-radius: 0 10px 10px 0; background: #fff7e9; color: #604523; font-weight: 700; }
.ks-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px; border-radius: 14px; background: #edf4f6; }
.ks-tool-cta strong, .ks-tool-cta span { display: block; }
.ks-tool-cta strong { color: #263f4b; }
.ks-tool-cta span { margin-top: 3px; color: #6b7d87; font-size: 12px; }
.ks-tool-cta a { flex: none; }
@media (max-width: 640px) {
    body > main { padding-top: 20px; }
    .ks-brand-name { font-size: 13px; line-height: 1.15; }
    .ks-brand-name > span { display: block; }
    body > header > div:first-child { gap: 8px; }
    body > header > div:first-child > div:last-child { gap: 9px; }
    .ks-hero { padding: 23px 18px; border-radius: 20px; }
    .ks-hero h1 { margin-top: 17px; font-size: 35px; }
    .ks-hero-intro { font-size: 14px; }
    .ks-finder { margin-top: 22px; padding: 16px; }
    .ks-finder-row { grid-template-columns: 1fr; }
    .ks-finder-types { margin-bottom: 16px; }
    .ks-finder-types label { flex: 1; text-align: center; }
    .ks-region-picker { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
    .ks-region-picker .ks-field { width: 100%; }
    .ks-outage { padding: 18px; }
    .ks-date-tabs { width: 100%; }
    .ks-date-tabs a { flex: 1; padding: 10px 5px; text-align: center; }
    .ks-tool-intro > p { font-size: 14px; }
    .ks-tools-grid { grid-template-columns: 1fr; }
    .ks-tool-card { min-height: 210px; padding: 21px; }
    .ks-calculator-card, .ks-tool-content { padding: 18px; }
    .ks-device-presets { grid-template-columns: 1fr 1fr; }
    .ks-custom-device-grid { grid-template-columns: 1fr 1fr; }
    .ks-tool-form { grid-template-columns: 1fr; }
    .ks-custom-device-grid label:first-of-type { grid-column: 1 / -1; }
    .ks-device-row { grid-template-columns: 1fr; gap: 12px; }
    .ks-device-inputs { grid-template-columns: 1fr 1fr; }
    .ks-device-consumption { text-align: left; }
    .ks-tool-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 959px) {
    .ks-tool-layout { grid-template-columns: 1fr; }
    .ks-calculator-summary { position: static; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1100px) {
    .ks-device-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ks-device-row { grid-template-columns: 130px minmax(300px, 1fr) 100px; }
}
@media (max-width: 640px) { .ks-calculator-summary { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .ks-brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Third-party outage widget builder. The embedded widget has its own small,
   isolated stylesheet in widget_embed.html so publisher CSS cannot alter it. */
.ks-widget-page { max-width: 1180px; margin: 0 auto; }
.ks-widget-intro { max-width: 780px; margin: 4px 0 30px; }
.ks-widget-intro h1 { margin: 16px 0 12px; font-size: clamp(32px, 4vw, 50px); font-weight: 760; line-height: 1.08; letter-spacing: -.045em; }
.ks-widget-intro > p { max-width: 690px; color: var(--ks-muted); font-size: 16px; line-height: 1.7; }
.ks-widget-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(430px, 1.2fr); gap: 20px; align-items: start; }
.ks-widget-config, .ks-widget-preview, .ks-widget-code { border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 28px #172b3608; }
.ks-widget-config, .ks-widget-preview { padding: 24px; }
.ks-widget-section-head { display: flex; align-items: flex-start; gap: 12px; }
.ks-widget-section-head > span { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 9px; background: #203b46; color: #fff; font-size: 12px; font-weight: 800; }
.ks-widget-section-head h2 { color: #203b46; font-size: 18px; font-weight: 750; line-height: 1.3; }
.ks-widget-section-head p { margin-top: 3px; color: #71818a; font-size: 12px; line-height: 1.5; }
.ks-widget-type { display: flex; gap: 9px; margin: 24px 0 18px; padding: 0; border: 0; }
.ks-widget-type legend { width: 100%; margin-bottom: 8px; color: #435864; font-size: 12px; font-weight: 700; }
.ks-widget-type label { position: relative; flex: 1; cursor: pointer; }
.ks-widget-type input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ks-widget-type span { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cbd7dc; border-radius: 10px; color: #526674; font-size: 13px; font-weight: 700; }
.ks-widget-type b { font-size: 16px; }
.ks-widget-type input:checked + span { border-color: #e6aa61; background: #fff5e6; color: #8f460c; box-shadow: inset 0 0 0 1px #e6aa61; }
.ks-widget-type input[value="su"]:checked + span { border-color: #79c1df; background: #edf8ff; color: #075f87; box-shadow: inset 0 0 0 1px #79c1df; }
.ks-widget-type input:focus-visible + span { outline: 3px solid #0284c7; outline-offset: 3px; }
.ks-widget-fields { display: grid; gap: 13px; }
.ks-widget-fields label { display: grid; gap: 6px; color: #435864; font-size: 12px; font-weight: 700; }
.ks-widget-fields small { color: #89969d; font-size: 10px; font-weight: 550; }
.ks-widget-fields select { width: 100%; min-height: 46px; border: 1px solid #c9d5db; border-radius: 10px; background: #f9fbfc; padding: 9px 12px; color: #213b47; font-size: 14px; }
.ks-widget-fields select:disabled { cursor: not-allowed; opacity: .55; }
.ks-widget-license-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 19px; padding: 13px; border-radius: 11px; background: #f3f7f8; color: #60737e; font-size: 11px; line-height: 1.55; }
.ks-widget-license-note svg { width: 20px; height: 20px; flex: none; color: #168063; }
.ks-widget-license-note strong { display: block; margin-bottom: 1px; color: #2f4a56; font-size: 12px; }
.ks-widget-preview-frame { margin-top: 20px; padding: 10px; border-radius: 14px; background: #e9eef0; }
.ks-widget-preview iframe { display: block; width: 100%; height: 560px; border: 0; border-radius: 10px; background: #fff; }
.ks-widget-code { margin-top: 20px; padding: 24px; }
.ks-widget-codebox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; margin-top: 18px; }
.ks-widget-codebox code { overflow-x: auto; padding: 15px; border: 1px solid #d7e0e4; border-radius: 10px; background: #f5f8f9; color: #36505d; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.ks-widget-codebox button { min-width: 130px; border: 0; border-radius: 10px; background: #203b46; padding: 11px 17px; color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.ks-widget-codebox button:hover { background: #305460; }
.ks-widget-copy-status { min-height: 18px; margin-top: 7px; color: #168063; font-size: 11px; font-weight: 650; }
.ks-widget-how { margin-top: 22px; padding: 28px; border-radius: 20px; background: #203b46; color: #fff; }
.ks-widget-how h2 { font-size: 20px; font-weight: 750; }
.ks-widget-how > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.ks-widget-how article { border-left: 1px solid #52707d; padding-left: 16px; }
.ks-widget-how strong { display: block; color: #fff; font-size: 13px; }
.ks-widget-how p { margin-top: 6px; color: #bfd0d6; font-size: 11px; line-height: 1.6; }
@media (max-width: 900px) {
    .ks-widget-layout { grid-template-columns: 1fr; }
    .ks-widget-preview iframe { height: 520px; }
}
@media (max-width: 640px) {
    .ks-widget-intro > p { font-size: 14px; }
    .ks-widget-config, .ks-widget-preview, .ks-widget-code { padding: 18px; }
    .ks-widget-codebox { grid-template-columns: 1fr; }
    .ks-widget-codebox button { min-height: 46px; }
    .ks-widget-how { padding: 21px; }
    .ks-widget-how > div { grid-template-columns: 1fr; gap: 15px; }
}

/* Reservoir links on the home page */
.ks-home-dams { margin-top: 30px; padding: 26px; border: 1px solid #bfe2f1; border-radius: 22px; background: radial-gradient(circle at 100% 0, #dff5ff 0, transparent 42%), linear-gradient(145deg, #f7fcff, #fff); }
.ks-home-dams-head { display: flex; align-items: center; gap: 14px; }
.ks-home-dams-icon { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #0ea5e9, #087ca9); color: #fff; box-shadow: 0 8px 20px #0ea5e938; }
.ks-home-dams-icon svg { width: 25px; height: 25px; }
.ks-home-dams-head span { color: #14789f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ks-home-dams-head h2 { margin-top: 3px; color: #203b46; font-size: 21px; font-weight: 760; line-height: 1.2; }
.ks-home-dams-head p { margin-top: 4px; color: #6d818b; font-size: 11px; line-height: 1.5; }
.ks-home-dam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin-top: 20px; }
.ks-home-dam-card { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #d8e7ed; border-radius: 13px; background: #fff; text-decoration: none; box-shadow: 0 3px 12px #17313d0a; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ks-home-dam-card:hover { transform: translateY(-2px); border-color: #71c4e5; box-shadow: 0 10px 22px #0e749018; }
.ks-home-dam-card > div:first-child span, .ks-home-dam-card > div:first-child strong { display: block; }
.ks-home-dam-card > div:first-child span { color: #7b8d96; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.ks-home-dam-card > div:first-child strong { margin-top: 3px; color: #274652; font-size: 14px; }
.ks-home-dam-rate { flex: none; text-align: right; }
.ks-home-dam-rate strong, .ks-home-dam-rate time { display: block; }
.ks-home-dam-rate strong { color: #087ca9; font-size: 17px; font-variant-numeric: tabular-nums; }
.ks-home-dam-rate time { margin-top: 3px; color: #8b9aa1; font-size: 8px; }
.ks-home-dam-arrow { color: #159acb; font-size: 18px; font-weight: 800; }
@media (max-width: 640px) {
    .ks-home-dams { padding: 20px 16px; }
    .ks-home-dams-head { align-items: flex-start; }
    .ks-home-dams-head h2 { font-size: 19px; }
    .ks-home-dam-grid { grid-template-columns: 1fr 1fr; }
    .ks-home-dam-card { min-height: 76px; padding: 12px; }
}
@media (max-width: 390px) {
    .ks-home-dam-grid { grid-template-columns: 1fr; }
}

/* Official reservoir status page */
.ks-dam-page { max-width: 1180px; margin: 0 auto; }
.ks-dam-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 24px; align-items: stretch; margin-bottom: 20px; }
.ks-dam-hero-copy, .ks-dam-gauge-card { border: 1px solid var(--ks-line); border-radius: 24px; background: #fff; }
.ks-dam-hero-copy { padding: 36px; background: radial-gradient(circle at 100% 0, #e8f7ff 0, transparent 45%), #fff; }
.ks-dam-hero h1 { max-width: 720px; margin: 18px 0 12px; color: #172b36; font-size: clamp(34px, 4.5vw, 54px); font-weight: 780; line-height: 1.06; letter-spacing: -.05em; }
.ks-dam-lead { max-width: 670px; color: #546874; font-size: 16px; line-height: 1.7; }
.ks-dam-lead strong { color: #1d3b49; }
.ks-dam-method { display: block; max-width: 650px; margin-top: 8px; color: #68808c; font-size: 11px; line-height: 1.55; }
.ks-dam-freshness { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 22px; padding: 9px 12px; border-radius: 9px; background: #edf8ff; color: #28647e; font-size: 11px; font-weight: 650; line-height: 1.45; }
.ks-dam-freshness > span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #0f9e78; }
.ks-dam-freshness--stale { background: #fff3db; color: #774615; }
.ks-dam-freshness--stale > span { background: #dd7b15; }
.ks-dam-gauge-card { display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, #17313d, #214d60); color: #fff; }
.ks-dam-gauge { display: grid; width: 218px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#39bdf2 calc(var(--rate) * 1%), #ffffff20 0); box-shadow: 0 20px 45px #07141a50; }
.ks-dam-gauge::before { grid-area: 1/1; width: 172px; aspect-ratio: 1; border-radius: 50%; background: #1a3947; box-shadow: inset 0 0 0 1px #ffffff12; content: ''; }
.ks-dam-gauge > div { z-index: 1; grid-area: 1/1; text-align: center; }
.ks-dam-gauge span, .ks-dam-gauge small { display: block; color: #b9d0da; }
.ks-dam-gauge span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ks-dam-gauge strong { display: block; margin: 4px 0 2px; font-size: 39px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ks-dam-gauge small { font-size: 10px; }
.ks-dam-status { width: 100%; margin-top: 20px; padding: 13px 14px; border: 1px solid #ffffff17; border-radius: 12px; background: #ffffff0c; }
.ks-dam-status strong, .ks-dam-status span { display: block; }
.ks-dam-status strong { font-size: 13px; }
.ks-dam-status span { margin-top: 3px; color: #b9d0da; font-size: 10px; line-height: 1.5; }
.ks-dam-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.ks-dam-stats article { padding: 18px; border: 1px solid var(--ks-line); border-radius: 15px; background: #fff; }
.ks-dam-stats span { display: block; color: #71818a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ks-dam-stats strong { display: block; margin-top: 7px; color: #263f4b; font-size: 18px; font-variant-numeric: tabular-nums; }
.ks-dam-stats .ks-dam-up { color: #0e8061; }
.ks-dam-stats .ks-dam-down { color: #c03a41; }
.ks-dam-panel { margin-bottom: 22px; padding: 25px; border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; }
.ks-dam-panel-head, .ks-dam-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.ks-dam-panel-head span, .ks-dam-section-head span { color: #16799f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ks-dam-panel-head h2, .ks-dam-section-head h2 { margin-top: 5px; color: #203b46; font-size: 21px; font-weight: 750; line-height: 1.25; }
.ks-dam-panel-head p, .ks-dam-section-head p { color: #819099; font-size: 10px; }
.ks-dam-chart { display: grid; height: 250px; grid-template-columns: repeat(14, minmax(18px, 1fr)); gap: 7px; align-items: end; margin-top: 22px; padding: 30px 8px 0; border-bottom: 1px solid #dce5e8; background: repeating-linear-gradient(to bottom, #fff 0, #fff 54px, #edf2f4 55px); }
.ks-dam-chart-column { position: relative; display: flex; height: 100%; min-width: 0; flex-direction: column; justify-content: flex-end; align-items: center; }
.ks-dam-chart-value { margin-bottom: 4px; color: #66808d; font-size: 8px; font-weight: 700; white-space: nowrap; }
.ks-dam-chart-bar { width: min(100%, 32px); min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(#38bdf8, #087ca9); box-shadow: 0 4px 12px #0ea5e930; }
.ks-dam-chart time { position: absolute; bottom: -21px; color: #819099; font-size: 8px; white-space: nowrap; }
.ks-dam-section { margin: 32px 0 22px; }
.ks-dam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 17px; }
.ks-dam-card { padding: 20px; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; }
.ks-dam-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.ks-dam-card-head span { color: #829099; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ks-dam-card-head h3 { margin-top: 3px; color: #263f4b; font-size: 16px; font-weight: 730; }
.ks-dam-card-head > strong { color: #087ca9; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ks-dam-progress { height: 8px; margin: 15px 0; overflow: hidden; border-radius: 999px; background: #e8eef0; }
.ks-dam-progress span { display: block; width: min(var(--dam-rate), 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.ks-dam-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ks-dam-card h3 a { color: inherit; text-decoration: none; }
.ks-dam-card h3 a:hover { color: #087ca9; }
.ks-dam-card-link { display: inline-flex; margin-top: 13px; color: #087ca9; font-size: 11px; font-weight: 800; text-decoration: none; }
.ks-dam-card-link:hover { text-decoration: underline; }
.ks-dam-card dl > div { padding: 10px; border-radius: 9px; background: #f5f8f9; }
.ks-dam-card dt { color: #839199; font-size: 9px; }
.ks-dam-card dd { margin-top: 3px; color: #405863; font-size: 11px; font-weight: 700; }
.ks-dam-empty { grid-column: 1/-1; padding: 28px; border: 1px dashed #cbd8dd; border-radius: 14px; color: #657782; text-align: center; }
.ks-dam-source { display: flex; gap: 15px; margin: 24px 0; padding: 22px; border: 1px solid #bfe2f1; border-radius: 17px; background: #edf8ff; }
.ks-dam-source-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 11px; background: #fff; color: #0a7ca8; box-shadow: 0 5px 14px #0e74901c; }
.ks-dam-source-icon svg { width: 23px; height: 23px; }
.ks-dam-source strong { color: #1f5268; font-size: 14px; }
.ks-dam-source p { max-width: 820px; margin-top: 5px; color: #557787; font-size: 11px; line-height: 1.6; }
.ks-dam-source a { display: inline-block; margin-top: 8px; color: #075f87; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.ks-dam-cities { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--ks-line); border-radius: 17px; background: #fff; }
.ks-dam-cities--top { margin-top: 0; background: linear-gradient(145deg, #f7fcff, #fff); }
.ks-dam-cities > strong { display: block; margin-bottom: 11px; color: #284653; font-size: 13px; }
.ks-dam-cities > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-dam-cities a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid #d7e3e8; border-radius: 10px; color: #395763; background: #f8fbfc; font-size: 12px; font-weight: 750; text-decoration: none; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.ks-dam-cities a:hover, .ks-dam-cities a.is-active { border-color: #8dcde7; color: #075f87; background: #edf8ff; }
.ks-dam-cities a small { color: #80919a; font-size: 9px; font-weight: 700; }
.ks-dam-detail-back { margin-bottom: 12px; }
.ks-dam-detail-back a { color: #087ca9; font-size: 12px; font-weight: 800; text-decoration: none; }
.ks-dam-detail-back a:hover { text-decoration: underline; }
.ks-dam-detail-content { margin: 22px 0; }
.ks-dam-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; }
.ks-dam-related-grid a { display: grid; gap: 5px; padding: 15px; border: 1px solid #dbe6ea; border-radius: 13px; color: #294b59; background: #fff; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ks-dam-related-grid a:hover { border-color: #8dcde7; transform: translateY(-1px); }
.ks-dam-related-grid span { font-size: 12px; font-weight: 800; }
.ks-dam-related-grid strong { color: #087ca9; font-size: 20px; }
.ks-dam-related-grid small { color: #81939c; font-size: 9px; }
.ks-dam-content, .ks-dam-faq { margin-top: 22px; padding: 28px; border: 1px solid var(--ks-line); border-radius: 19px; background: #fff; }
.ks-dam-content h2, .ks-dam-faq h2 { color: #203b46; font-size: 21px; font-weight: 750; }
.ks-dam-content > p { margin-top: 12px; color: #586d78; font-size: 13px; line-height: 1.75; }
.ks-dam-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px; border-radius: 13px; background: #203b46; color: #fff; }
.ks-dam-cta strong, .ks-dam-cta span { display: block; }
.ks-dam-cta strong { font-size: 13px; }
.ks-dam-cta span { margin-top: 3px; color: #bed0d8; font-size: 10px; }
.ks-dam-cta a { flex: none; padding: 10px 13px; border-radius: 9px; background: #fff; color: #234653; font-size: 11px; font-weight: 750; }
.ks-dam-faq details { border-bottom: 1px solid #e6edef; }
.ks-dam-faq details:last-child { border-bottom: 0; }
.ks-dam-faq summary { cursor: pointer; padding: 16px 2px; color: #304a57; font-size: 13px; font-weight: 700; }
.ks-dam-faq details p { padding: 0 2px 16px; color: #60737e; font-size: 12px; line-height: 1.7; }
@media (max-width: 850px) {
    .ks-dam-hero { grid-template-columns: 1fr; }
    .ks-dam-stats { grid-template-columns: 1fr 1fr; }
    .ks-dam-gauge-card { min-height: 390px; }
}
@media (max-width: 640px) {
    .ks-dam-hero-copy { padding: 24px 19px; }
    .ks-dam-hero h1 { font-size: 36px; }
    .ks-dam-lead { font-size: 14px; }
    .ks-dam-stats { gap: 8px; }
    .ks-dam-stats article { padding: 14px; }
    .ks-dam-stats strong { font-size: 15px; }
    .ks-dam-panel { padding: 18px 10px 24px; }
    .ks-dam-panel-head, .ks-dam-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
    .ks-dam-chart { gap: 3px; padding-inline: 2px; }
    .ks-dam-chart-value { display: none; }
    .ks-dam-grid { grid-template-columns: 1fr; }
    .ks-dam-related-grid { grid-template-columns: 1fr; }
    .ks-dam-card { padding: 17px; }
    .ks-dam-source { padding: 18px; }
    .ks-dam-content, .ks-dam-faq { padding: 20px 18px; }
    .ks-dam-cta { align-items: flex-start; flex-direction: column; }
}
