/* Created by Chia-Hsiang Ma, 20261002*/
/* 檢索摘要與結果表標題：約 19.2px。 */
table.concordance-controls > tbody > tr:first-child > th.layout-strong,
table.concordance-results > tbody > tr:first-child > th.layout-strong {
    font-size: 1.2rem;
    line-height: 1.35;
}

/* 翻頁與操作工具列：與檢索內文同為 16px。 */
table.concordance-controls td,
table.concordance-controls td :is(button, input:not([type="hidden"]), select, a, span) {
    font-size: 1rem;
    line-height: 1.3;
}

/* 每筆檢索結果：16px 提高至 18px，保留 KWIC 左右對齊方式。 */
table.concordance-results :is(
    td.kwic,
    td.lineview,
    td.parallel-line,
    td.parallel-kwic,
    td.text_id,
    td.conc_ln
) {
    font-size: 1.125rem;
    line-height: 1.35;
}

/* 上方工具列、結果表與下方工具列共用由內容決定的寬度。 */
.concordance-width {
    display: grid;
    grid-template-columns: minmax(min-content, 1fr);
    width: 100%;
}

.concordance-width > table.layout-frame {
    width: 100%;
}

/* 摘要的執行時間固定另起一行。 */
table.concordance-controls > tbody > tr:first-child
> th.layout-strong > span.time-report {
    display: block;
    width: fit-content;
    margin: 0.25rem auto 0;
}

/* 齒輪以檢索摘要的藍色儲存格為定位基準。 */
table.concordance-controls > tbody > tr:first-child > th.layout-strong {
    position: relative;
    padding-right: 3.5rem;
    padding-left: 3.5rem;
}

table.concordance-controls
> tbody > tr:first-child > th.layout-strong > .topcorner.concordance-gear-cell {
    position: absolute;
    top: auto;
    right: 10px;
    bottom: 4px;
    transform: none;
    z-index: 1000;
    font-size: 1rem;
    font-weight: normal;
}

.topcorner.concordance-gear-cell .lang-menu-trigger {
    width: 40px;
    height: 40px;
}

.topcorner.concordance-gear-cell .lang-menu-trigger-icon {
    width: 22px;
    height: 22px;
}
