.tools-page {
    width: 100%;
    padding: 24px 20px 36px;
    color: #ffffff;
}

.tools-page * {
    box-sizing: border-box;
}

.tools-heading {
    min-height: 82px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    background: #0b1728;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px 5px 0 0;
}

.tools-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tools-heading p {
    margin: 8px 0 0;
    color: #9eabc0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.tools-content {
    width: 100%;
    padding: 16px;
    background: #07111f;
    border-radius: 0 0 5px 5px;
}

.tools-hubs {
    margin-bottom: 18px;
}

.tools-group-heading {
    min-height: 46px;
    padding: 0 2px 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.tools-group-heading--utilities {
    margin-top: 2px;
}

.tools-group-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tools-group-heading p {
    margin: 0;
    color: #7f8da3;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    text-align: right;
}

.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tools-hub-card {
    min-width: 0;
    min-height: 154px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(16, 29, 49, 0.98), rgba(11, 23, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tools-hub-card::after {
    width: 150px;
    height: 150px;
    content: "";
    position: absolute;
    top: -92px;
    right: -62px;
    border: 1px solid rgba(240, 197, 69, 0.15);
    border-radius: 50%;
}

.tools-hub-card:hover,
.tools-hub-card:focus-visible {
    background: linear-gradient(120deg, rgba(21, 38, 63, 0.99), rgba(13, 28, 48, 0.99));
    border-color: rgba(240, 197, 69, 0.45);
    outline: none;
    transform: translateY(-2px);
}

.tools-hub-card__copy {
    min-width: 0;
    display: grid;
    align-content: end;
}

.tools-hub-card__copy small {
    margin-bottom: 9px;
    color: var(--ffo-gold, #f0c545);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tools-hub-card__copy strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tools-hub-card__copy > span {
    max-width: 540px;
    margin-top: 10px;
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.tools-hub-card__open {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.tools-hub-card__open span {
    color: var(--ffo-gold, #f0c545);
    font-size: 30px;
    line-height: 0.7;
}

.tools-layout {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.tools-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
}

.tools-section {
    min-width: 0;
    overflow: hidden;
    background: #0b1728;
    border-radius: 4px;
}

.tools-section__heading {
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: #101d31;
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-section__heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.tools-list {
    display: grid;
    background: #0b1728;
}

.tool-row {
    min-width: 0;
    min-height: 76px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    background: #0b1728;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid transparent;
    color: #dce4f2;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tool-row:last-child {
    border-bottom: 0;
}

.tool-row:hover,
.tool-row:focus-visible {
    background: #101d31;
    border-left-color: var(--ffo-gold, #f0c545);
    color: #ffffff;
    outline: none;
}

.tool-row__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.tool-row__name {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tool-row__description {
    min-width: 0;
    overflow: hidden;
    color: #8492a8;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tool-row:hover .tool-row__description,
.tool-row:focus-visible .tool-row__description {
    color: #aebbd0;
}

.tool-row__open {
    color: var(--ffo-gold, #f0c545);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    text-align: right;
}

.tools-layout--bottom {
    margin-top: 12px;
}

.tool-row--disabled {
    grid-template-columns: minmax(0, 1fr) auto;
    background: #0d1a2c;
    border-left-color: rgba(240, 197, 69, 0.28);
    color: #aeb8c8;
    cursor: default;
}

.tool-row--disabled .tool-row__description {
    color: #69778c;
}

.tool-row__status {
    color: var(--ffo-gold, #f0c545);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .tools-hub-grid,
    .tools-layout {
        grid-template-columns: 1fr;
    }

    .tools-layout--bottom {
        margin-top: 12px;
    }
}

@media (max-width: 560px) {
    .tools-page {
        padding: 14px 10px 24px;
    }

    .tools-heading {
        min-height: 72px;
        padding: 15px 16px;
    }

    .tools-heading h1 {
        font-size: 30px;
    }

    .tools-content {
        padding: 10px;
    }

    .tools-group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .tools-group-heading p {
        text-align: left;
    }

    .tools-hub-card {
        min-height: 170px;
        padding: 18px;
        grid-template-columns: 1fr;
        align-content: end;
        gap: 14px;
    }

    .tools-hub-card__copy strong {
        font-size: 21px;
    }

    .tools-hub-card__open {
        justify-self: start;
    }

    .tool-row__description {
        white-space: normal;
    }
}

/* Simple Tools directory */
.tools-calendar {
    min-height: 92px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #101d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.tools-calendar > strong {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.tools-calendar__open,
.tools-hub-card__open {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.tools-calendar__open span,
.tools-hub-card__open span {
    color: var(--ffo-gold, #f0c545);
    font-size: 29px;
    line-height: 0.7;
}

.tools-calendar:hover,
.tools-calendar:focus-visible {
    background: #16253b;
    border-color: rgba(240, 197, 69, 0.45);
    outline: none;
}

.tools-content > .tools-hub-grid {
    margin-top: 12px;
}

.tools-content .tools-hub-card {
    min-height: 112px;
    padding: 0 24px;
    align-items: center;
    background: #0b1728;
    transform: none;
}

.tools-content .tools-hub-card > strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.tools-content .tools-hub-card:hover,
.tools-content .tools-hub-card:focus-visible {
    background: #101d31;
    transform: none;
}

.tools-sections {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.tools-section-card {
    min-width: 0;
    overflow: hidden;
    background: #0b1728;
    border-radius: 4px;
}

.tools-section-card--wide {
    grid-column: 1 / -1;
}

.tools-section-card__heading {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    background: #101d31;
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-section-card__heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.tools-section-card__links {
    display: grid;
    grid-template-columns: 1fr;
}

.tools-section-card--wide .tools-section-card__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tools-section-card .tool-card {
    min-height: 82px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid transparent;
    border-radius: 0;
}

.tools-section-card--wide .tool-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.tools-section-card .tool-card:last-child {
    border-bottom: 0;
}

.tools-section-card--wide .tool-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
}

.tools-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tool-card {
    min-width: 0;
    min-height: 96px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    background: #0b1728;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    border-radius: 4px;
    color: #dce4f2;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tool-card strong {
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tool-card > span {
    color: var(--ffo-gold, #f0c545);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-align: right;
}

.tool-card:hover,
.tool-card:focus-visible {
    background: #101d31;
    border-left-color: var(--ffo-gold, #f0c545);
    color: #ffffff;
    outline: none;
}

.tool-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .tools-sections,
    .tools-section-card--wide .tools-section-card__links {
        grid-template-columns: 1fr;
    }

    .tools-section-card--wide {
        grid-column: auto;
    }

    .tools-section-card--wide .tool-card:nth-child(odd) {
        border-right: 0;
    }

    .tools-section-card--wide .tool-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-content .tools-hub-card {
        min-height: 104px;
        padding: 0 20px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-content: center;
    }

    .tools-calendar > strong,
    .tools-content .tools-hub-card > strong {
        font-size: 22px;
    }

    .tool-card {
        min-height: 92px;
        padding: 0 20px;
    }

    .tool-card strong {
        font-size: 18px;
        white-space: normal;
    }

    .tool-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
