.official-weekly-holiday-pay-page {
    --whp-ink: #17324d;
    --whp-primary: #0f766e;
    --whp-primary-dark: #115e59;
    --whp-soft: #f0fdfa;
    --whp-warm: #fffbeb;
    --whp-danger: #991b1b;
}

.official-weekly-holiday-pay-page main {
    overflow-wrap: anywhere;
}

.whp-hero {
    position: relative;
    padding-bottom: 28px;
}

.whp-eyebrow,
.whp-section-kicker {
    margin: 0 0 7px;
    color: var(--whp-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.whp-privacy-note,
.whp-result-notice,
.whp-noscript {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: var(--whp-soft);
    color: #134e4a;
}

.whp-privacy-note strong {
    display: block;
    margin-bottom: 3px;
}

.whp-local-badge,
.whp-result-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ccfbf1;
    color: var(--whp-primary-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.whp-calculator {
    display: grid;
    gap: 16px;
}

.whp-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.whp-fieldset legend {
    padding: 0 8px;
    color: var(--whp-ink);
    font-size: 18px;
    font-weight: 900;
}

.whp-fieldset legend span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--whp-primary);
    color: #fff;
    font-size: 14px;
}

.whp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.whp-field {
    display: grid;
    min-width: 0;
    gap: 6px;
    align-content: start;
}

.whp-field label,
.whp-label {
    color: var(--whp-ink);
    font-weight: 800;
}

.whp-field input,
.whp-field select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.whp-field input[aria-invalid="true"],
.whp-field select[aria-invalid="true"] {
    border-color: #b91c1c;
    box-shadow: 0 0 0 1px #b91c1c;
}

.whp-help {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.whp-inline-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.whp-fixed-value {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    background: #fff;
    color: var(--whp-ink);
    font-weight: 800;
}

.whp-short-time {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #cbd5e1;
}

.whp-actions {
    position: sticky;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid #99f6e4;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(15, 118, 110, .12);
}

.whp-primary-button,
.whp-secondary-button,
.whp-reset-button {
    min-height: 46px;
    border-radius: 9px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.whp-primary-button {
    flex: 1 1 280px;
    border: 1px solid var(--whp-primary);
    background: var(--whp-primary);
    color: #fff;
}

.whp-secondary-button,
.whp-reset-button {
    border: 1px solid #64748b;
    background: #fff;
    color: #334155;
}

.whp-error-summary {
    padding: 14px 16px;
    border: 2px solid #b91c1c;
    border-radius: 10px;
    background: #fef2f2;
    color: #7f1d1d;
}

.whp-error-summary ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.whp-result {
    margin-top: 18px;
    padding: 20px;
    border: 2px solid var(--whp-primary);
    border-radius: 15px;
    background: #fff;
}

.whp-result-primary {
    padding: 18px;
    border-radius: 12px;
    background: var(--whp-soft);
}

.whp-result-label {
    margin: 0 0 4px;
    color: var(--whp-primary-dark);
    font-weight: 800;
}

.whp-result-amount {
    margin: 0;
    color: var(--whp-primary-dark);
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.whp-result-hours {
    margin: 8px 0 0;
}

.whp-result-message {
    margin: 14px 0;
    font-size: 18px;
    font-weight: 750;
}

.whp-result-details,
.whp-exact-details dl {
    display: grid;
    margin: 14px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.whp-result-details > div,
.whp-exact-details dl > div {
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
    border-bottom: 1px solid #e5e7eb;
}

.whp-result-details > div:last-child,
.whp-exact-details dl > div:last-child {
    border-bottom: 0;
}

.whp-result-details dt,
.whp-result-details dd,
.whp-exact-details dt,
.whp-exact-details dd {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
}

.whp-result-details dt,
.whp-exact-details dt {
    background: #f8fafc;
    font-weight: 800;
}

.whp-result-details code,
.whp-exact-details code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.whp-exact-details {
    margin-top: 14px;
}

.whp-exact-details summary {
    min-height: 44px;
    padding: 9px 4px;
    color: var(--whp-primary-dark);
    font-weight: 800;
    cursor: pointer;
}

.whp-card-grid,
.whp-example-grid,
.whp-verification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.whp-card-grid article,
.whp-example-grid > div,
.whp-verification-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    background: #fff;
}

.whp-card-grid h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.whp-card-grid p {
    margin: 0;
    color: #475569;
}

.whp-boundary-list {
    display: grid;
    gap: 10px;
    padding-left: 22px;
}

.whp-formula {
    padding: 14px;
    border-left: 5px solid var(--whp-primary);
    border-radius: 7px;
    background: var(--whp-soft);
}

.whp-formula code {
    white-space: normal;
}

.whp-example {
    padding: 22px;
    border: 1px solid #99f6e4;
    border-radius: 15px;
    background: var(--whp-soft);
}

.whp-example-grid {
    margin: 0;
}

.whp-example-grid dt,
.whp-verification-grid dt {
    color: #475569;
    font-size: 14px;
}

.whp-example-grid dd,
.whp-verification-grid dd {
    margin: 4px 0 0;
    color: var(--whp-ink);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.whp-source-list {
    display: grid;
    gap: 10px;
    padding-left: 22px;
}

.whp-source-list li {
    padding-left: 3px;
}

.whp-source-list strong,
.whp-source-list span {
    display: block;
}

.whp-source-list span {
    color: #475569;
    font-size: 13px;
}

.whp-source-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--whp-primary-dark);
    font-weight: 700;
    word-break: break-word;
}

.whp-verification {
    border-top: 1px solid #d1d5db;
}

.official-weekly-holiday-pay-page main :focus-visible,
.official-weekly-holiday-pay-page #whp-result-heading:focus,
.official-weekly-holiday-pay-page #whp-error-summary:focus {
    outline: 3px solid #14b8a6;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .official-weekly-holiday-pay-page .header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .official-weekly-holiday-pay-page .site-title,
    .official-weekly-holiday-pay-page .header-inner nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .whp-form-grid,
    .whp-card-grid,
    .whp-example-grid,
    .whp-verification-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .whp-inline-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .whp-secondary-button,
    .whp-reset-button,
    .whp-primary-button {
        width: 100%;
    }

    .whp-actions {
        position: static;
    }

    .whp-result {
        padding: 16px;
    }

    .whp-result-details > div,
    .whp-exact-details dl > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .whp-result-details dd,
    .whp-exact-details dd {
        border-top: 1px solid #e5e7eb;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-weekly-holiday-pay-page *,
    .official-weekly-holiday-pay-page *::before,
    .official-weekly-holiday-pay-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
