/* The base layout also works without grid, custom properties, or JavaScript. */
* { box-sizing: border-box; }
html { background: #f7f8f5; color: #202b29; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #216d59; }
button, select { font: inherit; color: inherit; }
button, .button { cursor: pointer; border: 1px solid #cdd6cf; background: #fff; border-radius: 7px; padding: 9px 14px; }
button:hover, .button:hover { background: #eaf0e9; }
[hidden] { display: none !important; }
body[data-reader-shell="true"] #reader-content { visibility: hidden; }
:focus-visible { outline: 3px solid #528d75; outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; }.skip-link:focus { left: 12px; top: 8px; background: white; padding: 12px; z-index: 5; }
.site-header { background: #fff; border-bottom: 1px solid #e1e6df; }
.header-inner { max-width: 1120px; padding: 23px 40px; margin: auto; display: flex; align-items: center; gap: 26px; }
.brand { font-size: 1.875rem; font-weight: 800; letter-spacing: -1.6px; color: #153c35; }
.brand-dot { color: #68a481; }
.brand-description { color: #7d8780; font-size: 0.75rem; padding-top: 5px; }
.utility { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 0.8125rem; }
.utility > a:last-of-type { border: 1px solid #dce2db; padding: 7px 11px; border-radius: 5px; }
.page { max-width: 1040px; padding: 48px 40px 30px; margin: auto; min-height: 65vh; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: #62766c; font-size: 0.625rem; letter-spacing: 1.6px; font-weight: 700; margin: 0 0 14px; }
h1 { font-size: 2.625rem; line-height: 1.17; font-weight: 650; letter-spacing: -1.4px; margin: 0; }
.sync-status { color: #7b867e; font-size: 0.75rem; display: flex; align-items: center; gap: 7px; padding-bottom: 4px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #548e6b; }.status-dot.stale { background: #ba9361; }
.refresh { font-size: 1.4375rem; margin-left: 7px; padding: 3px 6px; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #dce2da; }
.view-tabs { display: flex; padding: 4px; gap: 4px; background: #e9ede6; border-radius: 8px; }
.view-tabs a { padding: 10px 22px; border-radius: 5px; font-size: 0.875rem; }.view-tabs .active { background: #153c35; color: #fff; }
.category-form { display: flex; align-items: center; gap: 9px; font-size: 0.8125rem; }.category-form label { color: #7a857d; margin-right: 2px; }
select { background: #fff; border: 1px solid #d6ddd3; border-radius: 6px; padding: 9px 28px 9px 12px; max-width: 100%; }
.view-description { color: #7b867d; font-size: 0.8125rem; margin: 15px 0 30px; line-height: 1.6; }
.news-section { margin: 0 0 30px; border: 1px solid #e0e6dc; background: #fff; border-radius: 10px; padding: 0 28px; }
.section-heading { display: flex; align-items: center; gap: 10px; padding: 22px 0 4px; }
.section-heading h2 { font-size: 0.9375rem; font-weight: 650; margin: 0; }.section-heading > span { font-size: 0.625rem; color: #738275; background: #eff3ec; padding: 3px 6px; border-radius: 4px; }
.news-row { padding: 20px 0 23px; border-bottom: 1px solid #edf0e9; }.news-row:last-child { border-bottom: 0; }
.news-link { display: block; overflow: hidden; }
.news-thumbnail { display: block; float: left; width: 96px; height: 72px; margin: 2px 16px 4px 0; object-fit: cover; border-radius: 4px; background: #e9ede6; }
.row-copy { overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.6875rem; color: #7b877e; line-height: 1.5; margin-bottom: 8px; }.row-meta .tag { color: #587963; }
.important-mark { color: #85603a; background: #f6f0e5; padding: 1px 6px; border-radius: 3px; font-size: 0.625rem; }
.news-row h3 { margin: 0; font-size: 1.125rem; line-height: 1.5; font-weight: 570; letter-spacing: -.2px; }
.lead-section { background: #edf2e9; border-color: #dbe5d5; padding: 0 32px; }
.lead-section .section-heading h2 { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.625rem; color: #547356; }.lead-section .section-heading > span { display: none; }
.lead-story { padding: 20px 0 28px; }.lead-story h3 { font-family: Georgia, "Times New Roman", serif; font-size: 2.0625rem; font-weight: 500; line-height: 1.23; letter-spacing: -.6px; max-width: 800px; }.lead-story .row-meta { margin-bottom: 12px; }
.lead-summary { color: #5c6b60; font-size: 0.9375rem; line-height: 1.75; max-width: 740px; margin: 15px 0 20px; }.read-link { display: inline-block; color: #345a40; font-size: 0.75rem; font-weight: 600; margin-top: 5px; }.read-link span { margin-left: 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 30px; font-size: 0.8125rem; padding: 7px 0 25px; }.pagination a { padding: 10px 16px; border: 1px solid #dce3d7; border-radius: 6px; background: #fff; }.pagination span { color: #7a847e; }
.site-footer { max-width: 960px; margin: 20px auto 0; padding: 23px 0 30px; border-top: 1px solid #dce2d8; font-size: 0.6875rem; color: #7b857d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }.site-footer p { width: 100%; margin: 0; font-size: 0.625rem; }.footer-dot { margin: 0 8px; }
.notice, .update-notice { display: block; padding: 13px 17px; border: 1px solid #dacfb7; background: #faf5e9; color: #6d6047; font-size: 0.8125rem; line-height: 1.65; border-radius: 6px; margin: 0 0 20px; }.update-notice { background: #e7f1e5; color: #28533a; border-color: #c6dac3; }
.empty-state { padding: 60px 20px; text-align: center; }.empty-state h2 { font-weight: 500; font-size: 1.4375rem; }.empty-state p { color: #768174; line-height: 1.6; }.empty-mark { font-family: Georgia, serif; font-size: 4.375rem; color: #b7c9b4; }.empty-state .button { display: inline-block; margin-top: 15px; }
.article-page { max-width: 820px; padding: 32px 40px 40px; margin: auto; }.article-navigation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; font-size: 0.8125rem; color: #607463; }.text-controls { display: flex; gap: 7px; }.text-controls button { padding: 6px 10px; }
.article-page h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 2.375rem; line-height: 1.25; letter-spacing: -.6px; margin: 14px 0 22px; }.article-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.75rem; color: #5c7560; padding-bottom: 20px; border-bottom: 1px solid #dfe5da; }.article-tools button { font-size: 0.75rem; }
.article-page figure { margin: 25px 0; }.article-page img { display: block; max-width: 100%; height: auto; border-radius: 5px; }.article-page figcaption { color: #7e877f; font-size: 0.6875rem; padding: 7px 0; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.8; overflow-wrap: break-word; }.article-body p { margin: 0 0 1.1em; }.article-body a { text-decoration: underline; text-underline-offset: 3px; color: #31694c; }.article-body blockquote { margin-left: 0; padding-left: 22px; border-left: 3px solid #bed0b7; }.article-body h2 { font-size: 1.3em; }.article-body h3 { font-size: 1.15em; }
.article-updated, .small-status { font-size: 0.75rem; color: #7a887d; }.back-bottom { display: block; padding: 30px 0 10px; font-size: 0.875rem; color: #41694e; }.saved-row { padding: 20px 0; border-bottom: 1px solid #dee4d8; }.saved-row a { display: block; font-size: 1.25rem; margin-bottom: 12px; }.saved-row button { font-size: 0.75rem; }
@media (max-width: 700px) {
  .header-inner { padding: 18px 20px; gap: 14px; }.brand { font-size: 1.6875rem; }.brand-description { display: none; }.utility { gap: 15px; font-size: 0.75rem; }
  .page { padding: 30px 18px 20px; }.page-intro { display: block; margin-bottom: 18px; }h1 { font-size: 2.1875rem; }.eyebrow { font-size: 0.5625rem; margin-bottom: 10px; }.sync-status { margin-top: 12px; }
  .controls { align-items: stretch; flex-direction: column; gap: 16px; }.view-tabs { align-self: flex-start; }.category-form { width: 100%; }.category-form select { flex: 1; min-width: 0; }.category-form label { display: none; }
  .view-description { font-size: 0.75rem; margin-bottom: 23px; }.news-section { padding: 0 19px; border-radius: 8px; margin-bottom: 22px; }.lead-story h3 { font-size: 1.75rem; }.lead-summary { font-size: 0.875rem; }.news-row h3 { font-size: 1.0625rem; }.lead-story h3 { font-size: 1.75rem; }
  .site-footer { margin: 10px 20px 0; }.article-page { padding: 25px 22px; }.article-page h1 { font-size: 1.875rem; }.article-body { font-size: 1.1875rem; }.article-navigation { margin-bottom: 30px; }.pagination { gap: 15px; }
}
/* E Ink: deliberately plain CSS; no dependency on modern browser features. */
body.eink { background: white; color: black; font-family: Arial, sans-serif; font-size: 1.125rem; }
.eink .header-inner, .eink .page-intro, .eink .controls, .eink .view-tabs, .eink .row-meta, .eink .section-heading, .eink .site-footer, .eink .article-navigation, .eink .category-form { display: block; }
.eink .header-inner { padding: 12px 16px; }.eink .brand { color: black; }.eink .brand-dot { color: black; }.eink .utility { display: inline-block; float: right; }.eink .brand-description, .eink .eyebrow, .eink .status-dot { display: none; }
.eink .page, .eink .article-page { padding: 18px; max-width: 800px; }.eink h1 { font-size: 1.875rem; }.eink .sync-status { display: block; color: black; font-size: 0.9375rem; margin-top: 12px; }.eink .controls { border-bottom: 2px solid black; }
.eink .view-tabs { background: white; margin: 12px 0 20px; padding: 0; }.eink .view-tabs a { display: inline-block; color: black; border: 1px solid black; margin-right: 8px; }.eink .view-tabs .active { color: white; background: black; }
.eink .category-form label { display: inline; color: black; }.eink select, .eink button { color: black; font-size: 1.0625rem; border: 1px solid black; background: white; border-radius: 0; padding: 8px; }.eink .category-form { font-size: 1.0625rem; }
.eink .news-section { border: 0; border-top: 2px solid black; border-radius: 0; background: white; padding: 0; }.eink .section-heading h2 { color: black; font-size: 1.25rem; text-transform: none; letter-spacing: 0; }.eink .section-heading > span { display: none; }
.eink .news-row { border-bottom: 1px solid black; }.eink .news-row h3, .eink .lead-story h3 { font-size: 1.375rem; font-family: Arial, sans-serif; font-weight: bold; line-height: 1.4; }.eink .row-meta, .eink .row-meta .tag, .eink .view-description, .eink .lead-summary, .eink .read-link { color: black; font-size: 1rem; }.eink .row-meta > * { margin-right: 12px; }.eink .important-mark { color: black; border: 1px solid black; background: white; font-size: 0.875rem; }
.eink .article-body { font-family: Arial, sans-serif; font-size: 1.3125rem; line-height: 1.65; }.eink a, .eink .article-updated { color: black; }.eink .article-page h1 { font-family: Arial, sans-serif; font-size: 1.75rem; font-weight: bold; }
.eink .pagination { display: block; text-align: center; }.eink .pagination > * { display: inline-block; margin: 5px; color: black; }.eink .pagination a { border: 1px solid black; }.eink .notice { color: black; background: white; border: 1px solid black; }.eink .site-footer { color: black; font-size: 0.9375rem; }.eink .site-footer a { display: block; margin-top: 12px; }.eink .site-footer p { font-size: 0.8125rem; margin-top: 12px; }

/* A single root scale affects news lists, articles and settings in both views. */
html.font-0 { font-size: 14px; }
html.font-1 { font-size: 16px; }
html.font-2 { font-size: 18px; }
html.font-3 { font-size: 21px; }
html.font-4 { font-size: 24px; }
.header-inner { flex-wrap: wrap; }
.utility { flex-wrap: wrap; gap: 14px; }
.text-controls { display: inline-flex; white-space: nowrap; }
.text-controls a { display: inline-block; padding: 8px 10px; border: 1px solid #cdd6cf; border-radius: 5px; background: white; min-width: 40px; text-align: center; }
.text-controls a[aria-disabled="true"] { color: #7d8780; }
.article-paging { display: flex; gap: 18px; justify-content: space-between; border-top: 1px solid #dce2d8; padding-top: 24px; margin-top: 30px; }
.article-paging > * { flex: 1; min-width: 0; }
.article-paging a { display: block; border: 1px solid #cdd6cf; border-radius: 7px; padding: 16px; }
.article-paging span { display: block; font-size: .875rem; color: #41694e; }
.article-paging strong { display: block; font-size: 1rem; font-weight: 500; line-height: 1.5; margin-top: 10px; }
.article-paging .paging-boundary { padding: 16px; color: #7d8780; }
.article-paging .article-next { flex: 2; background: #153c35; border-color: #153c35; color: white; }
.article-paging .article-next:hover { background: #215247; }
.article-paging .article-next span { color: white; font-weight: 700; }
.article-paging .article-previous { align-self: flex-start; background: transparent; border-color: #dce2d8; color: #607068; padding: 12px; }
.article-paging .article-previous span { color: #607068; font-size: .8125rem; }
.article-paging .article-previous strong { font-size: .875rem; }
/* Allow vertical reading and pinch zoom; horizontal swipes are handled by reader.js. */
.article-page { touch-action: pan-y pinch-zoom; }
.article-heading { display: flex; align-items: flex-start; gap: 12px; }
.article-heading h1 { flex: 1; min-width: 0; overflow-wrap: break-word; }
.article-next-top { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin-top: 14px; border: 1px solid #cdd6cf; border-radius: 50%; color: #153c35; font-size: 26px; line-height: 1; }
.article-next-top:hover { background: #eaf0e9; }
.article-next-top:focus-visible { outline: 2px solid #153c35; outline-offset: 3px; }
.eink .article-next-top { border-color: black; color: black; border-radius: 0; }
.settings-page { max-width: 900px; }
.settings-section { padding: 28px 0; border-bottom: 1px solid #dce2d8; }
.settings-section h2 { font-size: 1.4rem; margin: 0 0 16px; }
.settings-section p { line-height: 1.65; }
.ebook-panel { border: 1px solid #cdd6cf; border-radius: 8px; padding: 18px 22px; margin: 24px 0; background: #fff; }
.ebook-panel h2 { margin: 0 0 10px; font-size: 1.25rem; }
.ebook-panel p { font-size: .875rem; line-height: 1.6; margin: 8px 0; }
.ebook-panel .ebook-summary { font-weight: 600; }
.ebook-download { display: inline-block; margin: 10px 16px 0 0; }
.ebook-details { display: inline-block; font-size: .875rem; margin-top: 12px; text-decoration: underline; }
.eink .ebook-panel { border: 1px solid black; border-radius: 0; padding: 14px; }
.eink .ebook-panel p, .eink .ebook-details { font-size: 1rem; }
.eink .ebook-download { border: 2px solid black; border-radius: 0; color: black; background: white; }
.display-form, .address-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.share-panel { display: flex; align-items: center; gap: 30px; }
.qr-code { display: block; max-width: 100%; height: auto; flex-shrink: 0; }
.share-url { font-size: 1.125rem; text-decoration: underline; overflow-wrap: anywhere; word-break: break-all; }
.installation-note { color: #607463; font-size: .875rem; }
.eink .utility { float: none; display: block; margin-top: 12px; line-height: 2.5; font-size: 1rem; }
.eink .utility > a { margin-right: 12px; }
.eink .text-controls { display: inline-block; }
.eink .text-controls a { border: 1px solid black; border-radius: 0; line-height: 1.2; color: black; }
.eink .article-paging { display: block; border-color: black; }
.eink .article-paging a { margin-bottom: 16px; border: 2px solid black; border-radius: 0; }
.eink .article-paging span, .eink .article-paging strong, .eink .installation-note { color: black; }
.eink .article-paging strong { font-size: 1.125rem; }
.eink .article-paging .article-next, .eink .article-paging .article-next span, .eink .article-paging .article-next strong { color: white; background: black; }
.eink .article-paging .article-previous { border-width: 1px; }
.eink .article-paging .article-previous strong { font-size: 1rem; }
.eink .news-thumbnail { border-radius: 0; background: white; }
.eink .share-panel, .eink .display-form, .eink .address-form { display: block; }
.eink .display-form > *, .eink .address-form > * { margin: 6px 0; }
.eink .settings-section { border-color: black; }
.eink .article-page img { border-radius: 0; }
@media (max-width: 700px) {
  .utility { margin-left: 0; width: 100%; gap: 12px; font-size: .8125rem; }
  .article-paging, .share-panel { display: block; }
  .article-paging a { margin-bottom: 14px; }
  .share-panel .qr-code { margin: 0 auto 18px; }
  .view-tabs a { padding: 10px 14px; }
  .news-thumbnail { width: 80px; height: 60px; margin-right: 12px; }
}
