.dir-page {
  --dir-text: #172d49;
  --dir-muted: #45617f;
  --dir-link: #0756b6;
  --dir-edge: #d4e2f1;
  --dir-tint: #eff6ff;
  display: grid;
  gap: 20px;
  min-width: 0;
  color: var(--dir-text);
  line-height: 1.55;
}
.dir-page *, .dir-page *::before, .dir-page *::after { box-sizing: border-box; }
.dir-page ::selection { color: #072347; background: #c9e2ff; }
.dir-page :focus-visible { outline: 2px solid var(--dir-link); outline-offset: 2px; }
.dir-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.dir-header h1, .dir-page h2, .dir-page h3 { margin: 0; color: #123558; }
.dir-header h1 { font-size: 1.5rem; line-height: 1.25; }
.dir-header p { color: var(--dir-muted); font-size: .875rem; }
.dir-person { text-align: right; }
.dir-page p { margin: 0; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; border: 1px solid var(--dir-edge); background: #fff; border-radius: 12px; }
.dir-filters label { display: grid; min-width: 145px; gap: 3px; color: var(--dir-muted); font-size: .875rem; font-weight: 600; }
.dir-filters input, .dir-filters select, .dir-page button {
  min-height: 36px; max-width: 100%; padding: 5px 10px; border: 1px solid #a8c3e0;
  border-radius: 6px; background: #fff; color: var(--dir-text); font: inherit;
}
.dir-page button { cursor: pointer; }
.dir-page button:hover { border-color: var(--dir-link); color: var(--dir-link); background: var(--dir-tint); }
.dir-page button:disabled { opacity: .66; cursor: default; }
.dir-page .dir-primary { padding-inline: 15px; background: var(--dir-link); border-color: var(--dir-link); color: white; font-weight: 650; }
.dir-page .dir-primary:hover { color: white; background: #064595; }
.dir-section { padding: 17px 19px; border: 1px solid var(--dir-edge); border-radius: 12px; background: #fff; min-width: 0; }
.dir-section h2 { font-size: 1.125rem; margin-bottom: 9px; }
.dir-section h3 { font-size: 1rem; margin: 14px 0 7px; }
.dir-summary { padding: 9px 12px; margin-bottom: 12px; color: var(--dir-text); background: var(--dir-tint); border-radius: 6px; }
.dir-summary strong { display: block; margin-bottom: 2px; font-size: .875rem; }
.dir-summary .dir-insight { margin-top: 6px; }
.dir-summary ul { margin: 0; padding-left: 1.25em; }
.dir-grid { overflow-x: auto; border: 1px solid var(--dir-edge); border-radius: 6px; scrollbar-color: #8baad0 #eef5fc; }
.dir-grid table { width: 100%; min-width: 805px; border-collapse: collapse; table-layout: auto; font-size: .875rem; font-variant-numeric: tabular-nums; }
.dir-grid th, .dir-grid td { padding: 8px 10px; text-align: right; border-block-end: 1px solid var(--dir-edge); white-space: nowrap; }
.dir-grid tr > :first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: #fff; }
.dir-grid thead tr > *, .dir-grid thead tr > :first-child { background: #e7f0fc; color: #123e72; }
.dir-grid tbody tr:last-child > * { border-block-end: 0; }
.dir-grid .dir-month { background: #f3f8ff; font-weight: 650; }
.dir-grid thead .dir-month { background: #d8e9ff; }
.dir-grid small { display: block; color: var(--dir-muted); font-size: .75rem; font-weight: 400; }
.dir-page .dir-text-button { padding: 1px 0; min-height: 26px; border: 0; background: transparent; color: var(--dir-link); text-decoration: underline; text-underline-offset: .16em; }
.dir-grid small .dir-text-button { display: block; margin-left: auto; min-height: 22px; }
.dir-rules { margin-top: 7px !important; }
.dir-scroll-note { display: none; }
.dir-rules { color: var(--dir-muted); font-size: .875rem; }
.dir-page summary { cursor: pointer; }
.dir-rules p { padding: 4px 0 0; }
.dir-pagination { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .875rem; }
.dir-monthly { background: var(--dir-tint); }
.dir-narrative { display: grid; gap: 10px; max-width: 66rem; }
.dir-narrative p { line-height: 1.75; }
.dir-narrative strong { display: block; color: #123558; }
.dir-error { color: #8a271b; }
.dir-state { color: var(--dir-muted); }
.dir-dialog { width: min(560px, calc(100% - 28px)); max-height: 80vh; padding: 20px; border: 1px solid #a8c3e0; border-radius: 12px; color: var(--dir-text); background: #fff; }
.dir-dialog::backdrop { background: rgb(24 45 73 / .32); }
.dir-dialog header { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.dir-detail-list { padding: 0; list-style: none; }
.dir-detail-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; border-bottom: 1px solid var(--dir-edge); padding: 6px 0; }
.dir-sr { width: 1px; height: 1px; padding: 0; overflow: hidden; position: absolute; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .dir-page { gap: 13px; }
  .dir-section, .dir-filters { padding: 12px 10px; }
  .dir-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .dir-filters label { min-width: 0; }
  .dir-filters input, .dir-filters select, .dir-page button { min-height: 42px; }
  .dir-header h1 { font-size: 1.25rem; }
  .dir-person { text-align: left; }
  .dir-grid th, .dir-grid td { padding: 6px 8px; }
  .dir-grid tr > :first-child { min-width: 6rem; max-width: 8rem; white-space: normal; }
  .dir-page .dir-scroll-note { display: block; margin-bottom: 5px; color: var(--dir-muted); font-size: .75rem; }
  .dir-grid .dir-text-button, .dir-grid small .dir-text-button { min-height: 36px; }
}

.dir-speech { margin-top: 12px; }
.dir-speech-note { margin: 8px 0 0; color: #456480; font-size: .85rem; line-height: 1.5; }
