/* TEAMia 2026. Application widgets retain their shared styling outside this theme. */
:root {
    --tia-navy: #001f54;
    --tia-blue: #16608e;
    --tia-hover: #0a4380;
    --tia-text: #172c48;
    --tia-muted: #596b80;
    --tia-border: #dce7f2;
    --tia-surface: #f3f7fc;
}
.tia-header, .tia-dashboard, .tia-resources, .tia-footer, .tia-login-card {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--tia-text);
}
.tia-header {
    min-height: 88px;
    padding: 20px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--tia-border);
}
.tia-brand { display: inline-flex; align-items: center; gap: 24px; color: var(--tia-navy); text-decoration: none; }
.tia-brand img { display: block; width: 152px; height: 40px; object-fit: contain; }
.tia-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.tia-nav a { display: inline-flex; align-items: center; gap: 9px; color: var(--tia-navy); font-size: 14px; font-weight: 600; min-height: 44px; text-decoration: none; }
.tia-nav a:hover { color: var(--tia-blue); }
.tia-nav .tia-logout { color: #fff; padding: 11px 24px; }
.tia-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--tia-navy);
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--tia-navy);
    color: #fff;
    font: 600 14px/1.4 Inter, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.tia-button:hover, .tia-button:focus-visible, .tia-nav .tia-logout:hover {
    background: var(--tia-hover) !important;
    border-color: var(--tia-hover);
    color: #fff !important;
    box-shadow: 0 5px 16px #001f541a;
}
.tia-header a:focus-visible, .tia-dashboard a:focus-visible, .tia-resources a:focus-visible,
.tia-resources button:focus-visible, .tia-login-card a:focus-visible, .tia-login-card button:focus-visible {
    outline: 3px solid #16608e;
    outline-offset: 4px;
}
.tia-eyebrow { color: var(--tia-blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; margin: 0 0 10px; }
.tia-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.tia-section-heading h2 { color: var(--tia-navy); font-size: 24px; font-weight: 650; line-height: 1.3; margin: 0; }
.tia-section-heading > p { color: var(--tia-muted); font-size: 14px; margin: 0 0 3px; }
.tia-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px;
    background: #eaf2fc; color: var(--tia-blue); font-size: 23px;
}
.tia-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; padding: 28px 16px; color: var(--tia-muted); font-size: 12px; }
.tia-footer a { color: var(--tia-blue); text-decoration: none; }
.tia-footer a:hover { text-decoration: underline; }

/* The original three login resources, with their existing destinations. */
.tia-resources { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 0 4px; }
.tia-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tia-resource-card { background: #fff; border: 1px solid var(--tia-border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: start; box-shadow: 0 6px 24px #001f5405; }
.tia-resource-card h3 { font-size: 17px; line-height: 1.4; font-weight: 650; margin: 18px 0 8px; color: var(--tia-navy); }
.tia-resource-card > p { color: var(--tia-muted); font-size: 13px; line-height: 1.65; margin: 0 0 20px; }
.tia-resource-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 40px; margin-top: auto; padding: 8px 0 0; color: var(--tia-blue); background: transparent; border: 0; border-top: 1px solid #edf2f7; font: 600 13px/1.4 Inter, "Segoe UI", Arial, sans-serif; text-decoration: none; text-align: left; }
.tia-resource-link:hover { background: transparent !important; color: var(--tia-navy) !important; text-decoration: underline; }
.tia-resource-link > span { font-size: 20px; }
.tia-resource-card .tia-resource-notice { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #edf4fc; color: var(--tia-navy); width: 100%; }
.tia-resource-notice[hidden] { display: none; }

/* Dashboard cards and the longer testing tools section. */
.tia-dashboard { max-width: 1440px; margin: 0 auto; padding: 40px 24px 12px; }
.tia-welcome { margin-bottom: 32px; }
.tia-welcome h1 { color: var(--tia-navy); font: 650 32px/1.25 Inter, "Segoe UI", Arial, sans-serif; margin: 0 0 10px; }
.tia-welcome > p:last-child { color: var(--tia-muted); font-size: 15px; margin-bottom: 0; }
.tia-workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tia-workflow-card { min-width: 0; display: flex; flex-direction: column; align-items: start; background: #fff; border: 1px solid var(--tia-border); border-radius: 18px; padding: 26px; box-shadow: 0 10px 32px #001f5407; overflow: hidden; position: relative; }
.tia-workflow-card::before { content: ""; height: 4px; position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--tia-navy), #3388bb); }
.tia-workflow-card h3 { color: var(--tia-navy); font: 650 19px/1.35 Inter, "Segoe UI", Arial, sans-serif; margin: 20px 0 10px; }
.tia-card-description { color: var(--tia-muted); font-size: 13px; line-height: 1.65; margin: 0 0 24px; }
.tia-card-actions { display: flex; flex-direction: column; gap: 9px; width: 100%; margin-top: auto; }
.tia-card-actions .tia-button { width: 100%; font-size: 13px; }
.tia-card-actions .tia-button + .tia-button { color: var(--tia-navy); background: #f3f7fc; border-color: var(--tia-border); box-shadow: none; }
.tia-card-actions .badge { background: #dbeafb; color: var(--tia-navy); padding: 4px 7px; font-size: 11px; }
.tia-testing { margin-top: 38px; }
.tia-testing-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.tia-testing .tia-workflow-card::before { background: #abcce6; }
.tia-testing .tia-workflow-card { padding: 26px; }
.tia-testing .tia-workflow-card h3 { margin-top: 0; }
.tia-testing .tia-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.tia-testing .tia-card-actions .tia-button { justify-content: space-between; text-align: left; font-size: 12px; font-weight: 500; color: var(--tia-navy); background: #f5f8fc; border: 1px solid #e6edf5; border-radius: 10px; padding: 11px 13px; min-height: 44px; }
.tia-testing .tia-card-actions .tia-button::after { content: "\2192"; flex: 0 0 auto; font-size: 16px; }
.tia-testing .tia-workflow-card:last-of-type .tia-card-actions { grid-template-columns: 1fr; }
.tia-empty-state { background: #fff; border: 1px solid var(--tia-border); border-radius: 18px; padding: 28px; color: var(--tia-muted); }
@media (max-width: 1100px) {
    .tia-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tia-testing-grid { grid-template-columns: 1fr; }
    .tia-header { padding: 18px 24px; }
    .tia-nav { gap: 18px; }
}
@media (max-width: 700px) {
    .tia-header { flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
    .tia-brand { gap: 14px; }
    .tia-brand img { width: 120px; height: 32px; }
    .tia-nav { width: 100%; justify-content: space-between; gap: 12px; border-top: 1px solid var(--tia-border); padding-top: 10px; }
    .tia-nav a { font-size: 12px; gap: 6px; }
    .tia-nav .tia-logout { padding: 9px 16px; }
    .tia-dashboard { padding: 28px 4px 4px; }
    .tia-welcome h1 { font-size: 27px; }
    .tia-workflow-grid, .tia-resource-grid { grid-template-columns: 1fr; gap: 16px; }
    .tia-section-heading { display: block; }
    .tia-section-heading > p { margin-top: 10px; }
    .tia-section-heading h2 { font-size: 22px; }
    .tia-workflow-card, .tia-testing .tia-workflow-card { padding: 22px; }
    .tia-testing .tia-card-actions { grid-template-columns: 1fr; }
    .tia-resources { padding: 0 4px; }
    .tia-footer { text-align: center; gap: 8px; flex-direction: column; padding: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) { .tia-button { transition: none; } }

