:root {
    color-scheme: light;
    --ink: #253245;
    --muted: #687587;
    --accent: #28578a;
    --line: #e3e8ee;
    --soft: #f1f5f9;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header { max-width: 1120px; margin: 0 auto; padding: 35px 32px 0; }
.site-header h1 {
    margin: 0 0 22px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1.2;
}
.site-header hr { margin: 0; border: 0; border-top: 1px solid var(--line); }
.site-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 42px;
    max-width: 1120px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 32px 32px 72px;
}
#layout-menu { padding: 0; }
.menu-item { margin-bottom: 5px; }
#layout-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
#layout-menu a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }
#layout-menu a.current { background: #eaf1f8; color: var(--accent); font-weight: 600; }
#layout-content { min-width: 0; }
h1, h2, h3 { line-height: 1.35; }
#layout-content > h1 { margin: 3px 0 25px; color: var(--accent); font-size: 24px; font-weight: 600; }
h2 { margin: 34px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; }
h3 { font-size: 17px; }
p { margin: 0 0 18px; }
.placeholder { color: var(--muted); }
ul, ol { margin: 0; padding-left: 21px; }
li { padding-left: 4px; margin-bottom: 14px; }
li p { margin-bottom: 0; }
.imgtable { width: 100%; border: 0; border-collapse: collapse; }
.imgtable td { padding: 0; border: 0; text-align: left; vertical-align: middle; }
.imgtable td:first-child { width: 208px; padding-right: 26px; }
/* Original portrait size: 200px high, with its natural 560:540 aspect ratio. */
.imgtable img { display: block; height: 200px; width: auto; max-width: none; }
.imgtable td:last-child { font-size: 14px; line-height: 1.8; }
.imgtable td:last-child p:last-child { margin-bottom: 0; }
.profile-name { font-size: 22px; font-weight: 600; margin-bottom: 9px; }
@media (max-width: 850px) {
    .site-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 25px; }
    .imgtable, .imgtable tbody, .imgtable tr, .imgtable td { display: block; width: auto; }
    .imgtable td:first-child { width: auto; padding-right: 0; padding-bottom: 22px; }
}
@media (max-width: 640px) {
    .site-header { padding: 25px 20px 0; }
    .site-header h1 { font-size: 28px; margin-bottom: 18px; }
    .site-layout { display: block; padding: 20px 20px 48px; }
    #layout-menu { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
    .menu-item { margin: 0; }
    #layout-menu a { padding: 7px 10px; font-size: 13px; }
    #layout-content > h1 { font-size: 22px; }
}
@media print {
    #layout-menu { display: none; }
    .site-layout { display: block; padding: 20px 0; }
    .site-header { padding: 0; }
}
