/*--------------------------------------------------------------
# ASDA brand layer
# Loaded after cherito.css. Everything that makes the template look
# like ASDA lives here so the vendor stylesheet stays untouched and
# can be replaced wholesale on a template update.
--------------------------------------------------------------*/

:root {
    /* Brand palette — change these three and the whole site follows. */
    --cherito-base: #1F6B3B;
    --cherito-base-rgb: 31, 107, 59;
    --cherito-primary: #E9A825;
    --cherito-primary-rgb: 233, 168, 37;
    --cherito-black: #16261B;
    --cherito-black-rgb: 22, 38, 27;

    /* Neutrals retuned from the template's warm creams to a cooler,
       field-green tint so photography and the seal sit comfortably. */
    --cherito-white2: #F1F4EF;
    --cherito-white2-rgb: 241, 244, 239;
    --cherito-white3: #DFE6DC;
    --cherito-white3-rgb: 223, 230, 220;
    --cherito-white4: #F6F9F4;
    --cherito-white4-rgb: 246, 249, 244;
    --cherito-white5: #F0F4EE;
    --cherito-white5-rgb: 240, 244, 238;
    --cherito-gray3: #DCE3D9;
    --cherito-gray3-rgb: 220, 227, 217;
    --cherito-border-color: #DFE6DC;
    --cherito-border-color-rgb: 223, 230, 220;

    --asda-maroon: #7A2233;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.asda-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 12px 24px;
    background-color: var(--cherito-base);
    color: var(--cherito-white);
    font-family: var(--cherito-heading-font);
    font-weight: 700;
    border-radius: 0 0 8px 0;
}

.asda-skip-link:focus {
    left: 0;
    color: var(--cherito-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--cherito-primary);
    outline-offset: 2px;
}

/*--------------------------------------------------------------
# Header additions
--------------------------------------------------------------*/
.main-header__btn-box {
    display: none;
}

@media (min-width: 1400px) {
    .main-header__btn-box {
        display: block;
        margin-left: 30px;
    }

    .main-header__btn-box .cherito-btn {
        padding: 13px 32px;
    }
}

.main-header__logo img,
.footer-widget__logo img,
.mobile-nav__content .logo-box img {
    height: auto;
}

/*--------------------------------------------------------------
# Screen-reader utility
# The template markup uses Bootstrap 4's .sr-only, but it ships
# Bootstrap 5, which renamed it .visually-hidden — so the class is
# undefined and the hidden labels render on screen. Restore it.
--------------------------------------------------------------*/
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*--------------------------------------------------------------
# Forms (static build — handled by assets/js/asda-site.js)
--------------------------------------------------------------*/
/* The template styles inputs and the bootstrap-select widget but not a
   plain <select>. These forms use native selects so that HTML5 validation
   and keyboard behaviour work without a JS widget — style them to match. */
.form-one select {
    display: block;
    outline: none;
    padding: 0 26px 0 30px;
    width: 100%;
    height: 60px;
    font-family: var(--cherito-font);
    color: var(--cherito-text);
    font-size: 16px;
    font-weight: 600;
    background-color: var(--cherito-white2);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 400ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%231F6B3B' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 26px center;
    background-size: 12px 8px;
}

.form-one select:focus {
    color: var(--cherito-black);
    border-color: var(--cherito-base);
}

@media (max-width: 575px) {
    .form-one select {
        padding-left: 25px;
        padding-right: 22px;
        background-position: right 22px center;
    }
}

.asda-form__status {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.6;
    min-height: 1px;
}

.asda-form__status--ok {
    color: var(--cherito-base);
    font-weight: 600;
}

.asda-form__status--error {
    color: #C0392B;
    font-weight: 600;
}

.footer-widget--about .asda-form__status--ok,
.footer-widget--about .asda-form__status--error {
    color: var(--cherito-white);
}

.asda-form input.asda-invalid,
.asda-form textarea.asda-invalid,
.asda-form select.asda-invalid {
    border-color: #C0392B !important;
}

.asda-form__note {
    font-size: 14px;
    color: var(--cherito-text);
    margin-top: 18px;
}

/*--------------------------------------------------------------
# Prose blocks used across the content pages
--------------------------------------------------------------*/
.asda-prose p {
    margin-bottom: 20px;
}

.asda-prose p:last-child {
    margin-bottom: 0;
}

.asda-lead {
    font-size: 19px;
    line-height: 1.75;
    color: var(--cherito-black);
}

.asda-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

@media (min-width: 768px) {
    .asda-check-list--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
    }
}

.asda-check-list li {
    position: relative;
    padding-left: 34px;
    line-height: 1.7;
}

.asda-check-list li::before {
    content: "\e936";
    font-family: "icomoon";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 10px;
    border-radius: 50%;
    color: var(--cherito-white);
    background-color: var(--cherito-base);
}

.asda-check-list li strong {
    color: var(--cherito-black);
    font-family: var(--cherito-heading-font);
}

/*--------------------------------------------------------------
# Panels, stat rows and definition cards
--------------------------------------------------------------*/
.asda-panel {
    background-color: var(--cherito-white4);
    border: 1px solid var(--cherito-border-color);
    border-radius: 16px;
    padding: 34px;
    height: 100%;
}

.asda-panel--accent {
    background-color: var(--cherito-base);
    border-color: var(--cherito-base);
    color: rgba(var(--cherito-white-rgb), 0.85);
}

.asda-panel--accent .asda-panel__title,
.asda-panel--accent .asda-check-list li strong {
    color: var(--cherito-white);
}

.asda-panel--accent .asda-check-list li::before {
    background-color: var(--cherito-primary);
    color: var(--cherito-black);
}

.asda-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 26px;
    margin-bottom: 22px;
    color: var(--cherito-white);
    background-color: var(--cherito-base);
}

.asda-panel--accent .asda-panel__icon {
    background-color: var(--cherito-primary);
    color: var(--cherito-black);
}

.asda-panel__title {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--cherito-black);
}

.asda-panel__text:last-child {
    margin-bottom: 0;
}

.asda-meta-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.asda-meta-list li {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--cherito-border-color);
}

.asda-meta-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.asda-meta-list li span {
    font-family: var(--cherito-heading-font);
    font-weight: 700;
    color: var(--cherito-black);
    min-width: 108px;
}

/*--------------------------------------------------------------
# Timeline (about page)
--------------------------------------------------------------*/
.asda-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 34px;
    position: relative;
}

.asda-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--cherito-white3);
}

.asda-timeline li {
    position: relative;
    padding-bottom: 30px;
}

.asda-timeline li:last-child {
    padding-bottom: 0;
}

.asda-timeline li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--cherito-white);
    border: 4px solid var(--cherito-base);
}

.asda-timeline__year {
    display: inline-block;
    font-family: var(--cherito-heading-font);
    font-weight: 700;
    color: var(--cherito-base);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.asda-timeline__title {
    font-size: 20px;
    margin-bottom: 8px;
}

/*--------------------------------------------------------------
# Award / recognition cards
--------------------------------------------------------------*/
.asda-award {
    display: flex;
    gap: 20px;
    padding: 26px;
    height: 100%;
    border-radius: 14px;
    background-color: var(--cherito-white);
    border: 1px solid var(--cherito-border-color);
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.asda-award:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(var(--cherito-black-rgb), 0.08);
}

.asda-award__icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--cherito-base);
    background-color: rgba(var(--cherito-base-rgb), 0.1);
}

.asda-award__title {
    font-size: 18px;
    margin-bottom: 6px;
}

.asda-award__source {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cherito-base);
    margin-bottom: 8px;
}

.asda-award__text {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# Bank / giving details
--------------------------------------------------------------*/
.asda-bank {
    border: 1px solid var(--cherito-border-color);
    border-left: 5px solid var(--cherito-base);
    border-radius: 12px;
    padding: 28px 30px;
    background-color: var(--cherito-white);
    height: 100%;
}

.asda-bank__label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cherito-base);
    margin-bottom: 10px;
}

.asda-bank__name {
    font-size: 20px;
    margin-bottom: 16px;
}

.asda-bank dl {
    margin: 0;
}

.asda-bank dt {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cherito-text);
    font-weight: 500;
}

.asda-bank dd {
    margin: 0 0 14px;
    font-family: var(--cherito-heading-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--cherito-black);
    word-break: break-word;
}

.asda-bank dd:last-child {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Region / coverage table
--------------------------------------------------------------*/
.asda-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--cherito-border-color);
}

.asda-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background-color: var(--cherito-white);
}

.asda-table th,
.asda-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid var(--cherito-border-color);
    vertical-align: top;
}

.asda-table thead th {
    background-color: var(--cherito-base);
    color: var(--cherito-white);
    font-family: var(--cherito-heading-font);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 0;
}

.asda-table tbody tr:last-child td {
    border-bottom: 0;
}

.asda-table tbody tr:nth-child(even) {
    background-color: var(--cherito-white4);
}

/*--------------------------------------------------------------
# Misc
--------------------------------------------------------------*/
.asda-tag {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 8px 8px 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cherito-base);
    background-color: rgba(var(--cherito-base-rgb), 0.09);
}

.asda-anchor {
    scroll-margin-top: 120px;
}

.asda-note {
    border-left: 4px solid var(--cherito-primary);
    background-color: rgba(var(--cherito-primary-rgb), 0.09);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0;
}

.donation-card__title {
    min-height: 0;
}

.main-footer__copyright {
    line-height: 1.8;
}
