/* Lao text in Noto Sans Lao (the staff Portal's own file, OFL), whatever language the screen is in — a
   customer's Lao name or address shows in Lao on the English screen too. The font file carries only the Lao
   range, so Latin text falls through to Roboto/Helvetica/Arial. */
@font-face {
    font-family: 'Noto Sans Lao';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/noto-sans-lao-v33-lao.woff2') format('woff2');
    unicode-range: U+0E81-0EDF, U+200C-200D, U+25CC;
}

/* html[lang] for specificity over the :root MudBlazor injects. */
html[lang],
body {
    font-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-default-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-h5-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-h6-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-subtitle1-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-body1-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-body2-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-button-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
    --mud-typography-caption-family: 'Noto Sans Lao', Roboto, Helvetica, Arial, sans-serif;
}

input, button, select, textarea {
    font-family: inherit;
}

.tl-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* A policy's facts as label / value pairs: two columns on a card, four on a wide header, one under the other on
   a phone. */
.tl-facts {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: 6px 16px;
    margin: 0;
}

.tl-facts dt {
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.tl-facts dd {
    margin: 0;
    font-weight: 500;
}

@media (min-width: 960px) {
    .tl-facts-wide {
        grid-template-columns: repeat(2, minmax(140px, max-content) 1fr);
    }
}

@media (max-width: 420px) {
    .tl-facts {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tl-facts dd {
        margin-bottom: 8px;
    }
}

/* The page fills at least the screen below the app bar, so the footer sits at the bottom of a short page. */
.tl-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--mud-appbar-height));
}

.tl-page-body {
    flex: 1 0 auto;
}

/* The company's details, quietly, at the foot of every page — the staff Portal's footer, three lines. */
.tl-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--mud-palette-divider);
    padding: 16px 24px 18px;
    background-color: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-secondary);
    font-size: .8125rem;
    line-height: 1.7;
}

.tl-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.tl-footer-name {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.tl-footer-slogan {
    font-style: italic;
}

.tl-footer-sep {
    margin: 0 8px;
    opacity: .45;
}

.tl-footer-line {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 18px;
    row-gap: 2px;
}

.tl-footer-address {
    margin-top: 2px;
}

.tl-footer-address .tl-footer-icon {
    vertical-align: -3px;
}

.tl-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tl-footer-icon {
    font-size: 1rem !important;
    opacity: .7;
    margin-right: 4px;
}

.tl-footer-link,
.tl-phone {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.tl-footer-link:hover,
.tl-phone:hover {
    text-decoration: underline;
}

.tl-footer-legal {
    margin-top: 8px;
    opacity: .7;
    font-size: .75rem;
}

@media (max-width: 600px) {
    .tl-footer {
        padding: 12px 16px 14px;
    }
}

/* The sign-in page: the steps and the questions customers ask, beside the form. */
.tl-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tl-steps li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.tl-step-number {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .875rem;
}

.tl-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    font-size: .8125rem;
    color: var(--mud-palette-text-secondary);
}

.tl-progress .tl-step-number {
    flex-basis: 24px;
    height: 24px;
    font-size: .75rem;
    background: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}

.tl-progress .tl-progress-current .tl-step-number {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.tl-progress .tl-progress-current {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.tl-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tl-progress-line {
    flex: 1;
    height: 1px;
    background: var(--mud-palette-lines-default);
    min-width: 16px;
}

.tl-faq dt {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-top: 12px;
}

.tl-faq dd {
    margin: 2px 0 0;
    color: var(--mud-palette-text-secondary);
}

/* A policy card whose premium needs the customer: a coloured edge matching its notice. */
.policy-card.tl-card-error {
    border-left: 4px solid var(--mud-palette-error);
}

.policy-card.tl-card-warning {
    border-left: 4px solid var(--mud-palette-warning);
}

.policy-card.tl-card-info {
    border-left: 4px solid var(--mud-palette-info);
}

.tl-notice-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.tl-notice-help {
    margin-top: 6px;
    opacity: .85;
    font-size: .8125rem;
}
