/* Match Inter's text width while the web font loads. */
@font-face {
    font-family: "Nawala Guide Fallback";
    src: local("Arial"), local("Liberation Sans");
    size-adjust: 107%;
}
.nawala-guide {
    font-family: Inter, "Nawala Guide Fallback", Arial, sans-serif;
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.ng-crumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    font-size: .875rem;
    color: var(--text-muted);
}
.ng-crumb li { display: inline-flex; align-items: center; }
.ng-crumb li + li::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-top: 1px solid var(--text-dim);
    border-right: 1px solid var(--text-dim);
    transform: rotate(45deg);
    margin-inline: .65rem .8rem;
}
.ng-crumb a, .ng-index a, .ng-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.ng-head { padding: .5rem 0 1.75rem; border-bottom: 1px solid var(--border-strong); }
.ng-head h1, .ng-body h2 {
    text-wrap: balance;
    color: var(--text);
    letter-spacing: -.025em;
    line-height: 1.16;
    font-weight: 700;
    margin: 0;
}
.ng-head h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.ng-head p { margin: .8rem 0 0; max-width: 44rem; font-size: 1.125rem; color: var(--text-muted); }
.ng-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.ng-body { max-width: 45.5rem; min-width: 0; }
.ng-body section { margin-top: 2.25rem; scroll-margin-top: 1rem; }
.ng-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.ng-body p, .ng-body ul { margin: .85rem 0 0; }
.ng-body strong, .ng-body dt { font-weight: 650; }
.ng-body a, .ng-action { text-decoration: underline; text-underline-offset: .18em; }
.ng-status { margin: 1rem 0; }
.ng-status > div { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.ng-status dt { color: var(--gold-bright); }
.ng-status dd { margin: .2rem 0 0; }
.ng-example { margin-top: 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.ng-example pre {
    margin: 0;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--surface-2);
    color: var(--text);
}
.ng-example code, .ng-body p code { font-family: var(--font-mono); font-size: .93em; }
.ng-example table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--surface); }
.ng-example caption { background: var(--surface); padding: .9rem .85rem .45rem; text-align: left; color: var(--text-muted); }
.ng-example th, .ng-example td { text-align: left; padding: .45rem .85rem; }
.ng-example th { font-weight: 600; border-bottom: 1px solid var(--border); }
.ng-example td { padding-bottom: .8rem; }
.ng-body ul { list-style: disc; padding-inline-start: 1.3rem; }
.ng-body li + li { margin-top: .7rem; }
.ng-action { margin-top: .45rem; font-weight: 600; }
.ng-index { display: none; }
.nawala-guide a:focus-visible, .zt-nawala-hint a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.zt-nawala-field .zt-nawala-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1rem;
    margin-top: .25rem;
}
.zt-nawala-hint a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .18em; }
@media (min-width: 58rem) {
    .ng-grid { grid-template-columns: minmax(0, 1fr) 12.5rem; gap: clamp(2rem, 5vw, 4.5rem); }
    .ng-status > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
    .ng-status dd { margin: 0; }
    .ng-index { display: grid; align-self: start; position: sticky; top: 1.5rem; margin-top: 2.25rem; }
    .ng-index p { margin: 0 0 .45rem; color: var(--text-muted); font-size: .875rem; }
    .ng-index a { border-bottom: 1px solid var(--border); font-size: .9375rem; }
}
@media (max-width: 30rem) {
    .ng-example th, .ng-example td { padding-inline: .6rem; }
}
