.grammar-pair{display:inline-flex;flex-direction:column;vertical-align:middle;gap:.08rem;line-height:1.35;margin:.08em .15em;white-space:pre-wrap}
.grammar-spelling{font-family:"Gentium Plus",Georgia,serif;font-size:1.08em;color:var(--ink,#263d36)}
.grammar-ipa{font-family:"Charis SIL","Doulos SIL",Georgia,serif;font-size:.9em;color:var(--muted,#626b68)}
/* Running text shares one baseline; tables and aligned examples keep their stacks. */
.grammar-pair.grammar-pair-inline{display:inline;vertical-align:baseline;line-height:inherit;margin:0 .1em;white-space:normal}
.grammar-pair-inline>.grammar-spelling,.grammar-pair-inline>.grammar-ipa{display:inline;vertical-align:baseline;line-height:1}
.grammar-pair-inline>.grammar-spelling{font-size:1em}
.grammar-pair-inline>.grammar-ipa{font-size:.9em;color:var(--grammar-inline-ipa,#586b62)}
.grammar-spelling.grammar-spelling-inline{font-size:1em;line-height:1;vertical-align:baseline}
.reviewed-grammar [data-script="ipa"]:not(table *,figure *,.grammar-example *,.example *,.grammar-formula *){line-height:1}
.reviewed-grammar sup.grammar-inline-citation{line-height:0}
.grammar-interlinear{margin:1.25rem 0;padding:1rem;background:var(--surface,#f5f7f1);border-left:3px solid #35695c}
.grammar-word-line{display:flex;flex-wrap:wrap;column-gap:1.1rem;row-gap:1rem;align-items:flex-start}
.grammar-word{display:flex;flex-direction:column;white-space:nowrap;line-height:1.45;max-width:100%}
.grammar-word .grammar-pair{margin:0;white-space:pre}
.grammar-gloss{font-size:.85rem;color:var(--muted,#626b68);min-height:1.4em;padding-top:.12em}
.grammar-interlinear figcaption{margin-top:.8rem;font-size:1rem;font-weight:400}
.grammar-table-scroll{overflow-x:auto;max-width:100%;margin:1rem 0;overscroll-behavior-x:contain}
.grammar-table-scroll table{margin:0;min-width:100%;width:auto}
.reviewed-grammar{min-width:0;overflow-wrap:anywhere}
.reviewed-grammar details{margin:.9rem 0}.reviewed-grammar summary{cursor:pointer}
.grammar-section-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:1rem 0 1.5rem;font-size:.9rem}
.grammar-toc .grammar-pending,.grammar-pending{color:#777e7b!important}
.grammar-pending-label{font-size:.9em;font-weight:400;margin-left:.2em}
.grammar-toc button.grammar-pending{background:transparent;border-color:transparent}
.grammar-article [id]{scroll-margin-top:5rem}
@media(max-width:650px){.grammar-interlinear{margin:1rem 0;padding:.75rem}.grammar-word-line{column-gap:.85rem;row-gap:.8rem}.grammar-toc{max-height:14rem;overflow:auto}.grammar-section-links{display:block}.grammar-section-links a{display:block;padding:.35rem 0}.grammar-word{white-space:normal}.grammar-word .grammar-pair{white-space:pre-wrap}}
.grammar-citation{font-size:.8rem;white-space:nowrap;text-decoration:none;padding:.1em .15em;font-weight:500}
.grammar-citation:hover,.grammar-citation:focus-visible{text-decoration:underline;background:var(--surface,#f5f7f1)}
.grammar-source-marker{vertical-align:super;line-height:0}
.reviewed-grammar .grammar-footnotes{margin-top:2rem;border-top:1px solid var(--line,#d7dfd9);padding-top:1rem;font-size:.9rem}
.grammar-footnotes ol{padding-left:2rem}.grammar-footnotes li{margin:1rem 0;scroll-margin-top:5rem}.grammar-footnotes li::marker{content:'[' counter(list-item) '] '}
.grammar-footnotes p{display:inline;line-height:1.6}.grammar-footnote-return{margin-left:.35rem;white-space:nowrap}

/* Keep source forms intact in the nominal-relation comparison. */
.grammar-case-overview table{min-width:38rem}
.grammar-case-overview .grammar-pair{white-space:nowrap}

/* Give each part of the predicate overview a visible reading boundary. */
.grammar-predicate-overview h5{font-size:1.05rem;line-height:1.5;margin:1.6rem 0 .7rem;padding-top:.8rem;border-top:1px solid var(--line,#d7dfd9);color:var(--ink,#263d36)}
.grammar-predicate-overview h6{font-size:.95rem;line-height:1.6;margin:1.3rem 0 .55rem;color:var(--ink,#263d36)}
.grammar-predicate-overview .grammar-table-scroll{margin:.65rem 0 1.4rem}
@media(max-width:650px){.grammar-predicate-overview table{min-width:32rem}.grammar-predicate-overview td,.grammar-predicate-overview th{overflow-wrap:normal;word-break:normal}}

/* Keep the merged Northern tone values aligned on narrow screens. */
.grammar-tone-overview{min-width:46rem}
.grammar-tone-overview th,.grammar-tone-overview td{white-space:nowrap;text-align:center}
.grammar-tone-overview th:last-child,.grammar-tone-overview td:last-child{text-align:left}
