/* Shared interior-page layout and reading styles. */
.site-page { min-height: 100vh; display: flex; flex-direction: column; }
.site-page > .home-header, .site-page > .home-footer { width: 100%; flex-shrink: 0; }
.site-page > main { width: 100%; flex: 1; }
.site-main { max-width: 1200px; margin: 0 auto; padding: 26px 40px 60px; }
.page-path { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 35px; font-size: 12px; line-height: 1.8; color: #85909e; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; }
.breadcrumbs [aria-current] { color: #637185; overflow-wrap: anywhere; }
.page-tools { display: flex; gap: 21px; flex-shrink: 0; }
.page-path a:hover { color: var(--home-accent); }
.newspaper-container { width: 100%; min-width: 0; }
.terms-title, .taxonomy-title, .archives-title, .search-title, .article-header .article-title { font-size: clamp(25px, 2.7vw, 32px); font-weight: 600; line-height: 1.5; letter-spacing: -.7px; overflow-wrap: anywhere; }
.page-description, .taxonomy-subtitle, .archives-subtitle { color: var(--home-muted); font-size: 14px; line-height: 1.9; margin-top: 12px; }
.taxonomy-header { margin-bottom: 28px; }
.terms-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 30px; }
.term-item { min-width: 0; border-bottom: 1px solid var(--home-line); }
.term-title { font-size: 17px; font-weight: 500; }
.term-title > a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 89px; padding: 16px 0; color: #3d4b5e; transition: color .18s; overflow-wrap: anywhere; }
.term-title a:hover { color: var(--home-accent); }
.term-count { font-size: 12px; color: #7e8ba0; font-weight: 400; white-space: nowrap; margin-left: auto; }
.term-count > span { margin-left: 10px; color: #8c9aaf; }
.entry-list { border-top: 1px solid var(--home-line); }
.entry-item { padding: 25px 0; border-bottom: 1px solid var(--home-line); }
.entry-item h2 { font-size: 18px; font-weight: 550; line-height: 1.6; }
.entry-item h2 a { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.entry-item h2 svg { color: #8596ad; margin-top: 6px; }
.entry-item h2 a:hover { color: var(--home-accent); }
.entry-summary { color: #737f90; font-size: 14px; line-height: 1.9; margin-top: 8px; max-width: 940px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-item time { display: block; color: #8c97a6; font-size: 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.page-empty { text-align: center; padding: 70px 16px; color: #8390a2; }
.page-empty > svg { color: #7d96b2; margin-bottom: 13px; }
.page-empty h2 { color: #55667c; font-size: 18px; font-weight: 500; }
.page-empty p { margin: 10px 0 18px; font-size: 14px; line-height: 1.8; }
.page-empty a { font-size: 14px; color: var(--home-accent); }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--home-accent); color: white; border: 1px solid var(--home-accent); border-radius: 7px; padding: 10px 20px; font-size: 14px; white-space: nowrap; }
.button-primary:hover { background: #41648e; }
.search-box { max-width: 700px; height: 57px; display: flex; align-items: center; gap: 14px; background: #f6f8fa; border: 1px solid #e1e7ee; border-radius: 10px; padding: 6px 7px 6px 18px; color: var(--home-accent); }
.search-box:focus-within { border-color: #97b0cf; box-shadow: 0 0 0 3px #557ba611; }
.search-box input { color: var(--home-ink); font-size: 15px; outline: none; background: transparent; border: none; width: 100%; min-width: 0; height: 100%; }
.search-box input::placeholder { color: #8390a1; }
.search-popular { display: flex; align-items: center; gap: 22px; margin-top: 15px; font-size: 13px; color: #8590a0; }
.search-popular button { background: none; border: none; color: var(--home-accent); padding: 3px 0; }
.search-popular button:hover { text-decoration: underline; text-underline-offset: 4px; }
.search-status { margin: 28px 0 14px; color: #78869a; font-size: 13px; overflow-wrap: anywhere; }
.search-status:empty { margin: 28px 0 0; }
.search-section .entry-list:has(.entry-item:not([hidden])) { border-top: 1px solid var(--home-line); }
.search-section .entry-list { border-top: none; }
.page-navigator { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; list-style: none; margin: 32px 0 0; padding: 0; font-size: 13px; }
.page-navigator a, .page-navigator li > span { display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 36px; padding: 7px 10px; border-radius: 6px; color: #75849a; }
.page-navigator a:hover { background: #f0f4f8; color: var(--home-accent); }
.page-navigator a[aria-current] { background: #eaf0f7; color: #426b9b; font-weight: 600; }
.archives-list { margin-top: 34px; max-width: 900px; }
.archive-year { margin-bottom: 40px; }
.year-title { color: #34485f; font-size: 24px; font-weight: 550; margin-bottom: 17px; }
.archive-month { display: grid; grid-template-columns: 78px minmax(0, 1fr); border-top: 1px solid var(--home-line); }
.month-title { color: #8794a7; font-size: 13px; font-weight: 400; padding-top: 17px; }
.archive-entries { min-width: 0; }
.archive-item { grid-column: 2; display: flex; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--home-line); font-size: 14px; min-width: 0; }
.archive-item:last-child { border-bottom: none; }
.archive-date { width: 32px; flex-shrink: 0; font-size: 12px; color: #92a0b3; font-variant-numeric: tabular-nums; }
.archive-title { overflow-wrap: anywhere; }
.archive-title:hover { color: var(--home-accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 54px; align-items: start; }
.article-layout-single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.article-main, .newspaper-article { min-width: 0; }
.article-header { margin-bottom: 30px; padding-bottom: 23px; border-bottom: 1px solid var(--home-line); }
.article-meta { color: #8b96a6; font-size: 12px; margin-top: 13px; }
.article-sidebar { min-width: 0; position: sticky; top: 24px; }
.newspaper-toc { border-left: 1px solid var(--home-line); padding-left: 20px; margin-bottom: 26px; }
.newspaper-toc summary { color: #596b83; font-size: 14px; font-weight: 550; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.newspaper-toc summary::-webkit-details-marker { display: none; }
.newspaper-toc summary::after { content: '+'; font-weight: 400; font-size: 18px; color: #95a2b3; }
.newspaper-toc[open] summary::after { content: '−'; }
#TableOfContents { max-height: 68vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#TableOfContents ul { list-style: none; padding: 0; margin: 0; }
#TableOfContents li { margin: 0; }
#TableOfContents a { display: block; font-size: 12px; line-height: 1.7; color: #7b899d; padding: 5px 1px; overflow-wrap: anywhere; }
#TableOfContents a:hover { color: var(--home-accent); }
#TableOfContents .toc-subheading { padding-left: 13px; }
.article-content { font-size: 15px; color: #4e5d70; line-height: 1.95; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 16px 0; }
.article-content h2 { font-size: 23px; font-weight: 550; color: #34475e; line-height: 1.5; margin: 39px 0 17px; padding-bottom: 11px; border-bottom: 1px solid var(--home-line); scroll-margin-top: 24px; }
.article-content h3 { font-size: 18px; font-weight: 550; color: #445b75; margin: 27px 0 13px; scroll-margin-top: 24px; }
.article-content h4, .article-content h5, .article-content h6 { font-size: 16px; font-weight: 550; margin: 22px 0 12px; }
.article-content a { color: var(--home-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c6d4e5; }
.article-content a:hover { color: #365f8f; text-decoration-color: currentColor; }
.article-content ul, .article-content ol { padding-left: 23px; margin: 16px 0; }
.article-content li { margin: 7px 0; }
.article-content pre { max-width: 100%; padding: 17px 20px; margin: 19px 0; overflow-x: auto; border: 1px solid #e4eaf1; border-radius: 8px; font-size: 13px; line-height: 1.8; background: #f8fafc !important; overflow-wrap: normal; }
.article-content code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: .88em; background: #f0f4f8; color: #4d6c90; padding: 2px 5px; border-radius: 4px; }
.article-content pre code { font-size: inherit; color: inherit; background: none; padding: 0; border-radius: 0; }
.article-content .table-scroll { overflow-x: auto; max-width: 100%; margin: 23px 0; border: 1px solid #e4eaf1; border-radius: 7px; }
.article-content .table-scroll:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.article-content th, .article-content td { padding: 11px 14px; border-bottom: 1px solid #e7edf3; vertical-align: top; }
.article-content th { background: #f5f8fb; color: #4b627e; font-weight: 550; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content tbody tr:nth-child(even) { background: #fbfcfe; }
.article-content blockquote { border-left: 3px solid #c4d5e8; background: #f6f9fc; padding: 12px 19px; margin: 22px 0; border-radius: 0 7px 7px 0; color: #6c8099; }
.article-content blockquote p { margin: 6px 0; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 6px; }
.article-content hr { border: 0; border-top: 1px solid var(--home-line); margin: 32px 0; }
.article-content kbd { font-family: inherit; font-size: 12px; border: 1px solid #dce4ed; border-bottom-width: 2px; border-radius: 4px; background: #f9fbfd; padding: 2px 6px; white-space: nowrap; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--home-line); margin-top: 34px; padding-top: 22px; font-size: 12px; color: #8d9aad; }
.article-tags a { color: #6f89a8; background: #f0f5fa; border-radius: 5px; padding: 3px 9px; }
.article-tags a:hover { background: #e5edf6; }
.newspaper-related { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--home-line); }
.related-title { font-size: 19px; font-weight: 550; margin-bottom: 12px; }
.related-item { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--home-line); }
.related-item-title { font-size: 14px; font-weight: 400; }
.related-item-title a:hover { color: var(--home-accent); }
.related-item-meta { font-size: 11px; color: #8a97aa; white-space: nowrap; }
.sidebar-ad-slot { min-width: 0; margin-top: 25px; }
.sidebar-ad-label { display: none; color: #929dad; font-size: 10px; margin-bottom: 8px; }
.sidebar-ad-slot:has(ins[data-ad-status='filled']) .sidebar-ad-label { display: block; }
.sidebar-ad-slot:has(ins[data-ad-status='unfilled']) { display: none; }
.adsbygoogle[data-ad-status='unfilled'] { display: none !important; }
.not-found { text-align: center; padding: 60px 0 95px; }
.error-code { display: block; color: #bccbde; font-size: 96px; font-weight: 550; line-height: 1.3; letter-spacing: -5px; }
.not-found h1 { font-size: 28px; font-weight: 550; margin-top: 17px; }
.not-found p { color: #8491a3; font-size: 14px; line-height: 1.9; margin-top: 17px; }
.error-actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 28px; font-size: 14px; }
.error-actions > a:not(.button-primary) { color: var(--home-accent); }
@media (max-width: 900px) {
  .site-main { padding-left: 28px; padding-right: 28px; }
  .terms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
  .article-layout { display: flex; flex-direction: column; gap: 0; }
  .article-main { display: contents; }
  .article-main .newspaper-article { display: contents; }
  .article-header { order: -3; width: 100%; }
  .article-sidebar { order: -1; position: static; width: 100%; }
  .newspaper-article { width: 100%; }
  .article-content, .article-tags, .newspaper-related { width: 100%; }
  .sidebar-ad-slot { display: none; }
  .newspaper-toc { padding: 13px 16px; border: 1px solid #e3eaf2; border-radius: 8px; background: #fafcfe; margin-bottom: 25px; }
  .newspaper-toc summary { padding: 0; }
  .newspaper-toc[open] summary { padding-bottom: 11px; }
  #TableOfContents { max-height: 340px; }
}
@media (max-width: 480px) {
  .site-main { padding: 20px 22px 38px; }
  .page-path { margin-bottom: 27px; font-size: 11px; flex-wrap: wrap; gap: 12px; }
  .page-tools { gap: 20px; }
  .terms-title, .taxonomy-title, .archives-title, .search-title, .article-header .article-title { font-size: 25px; }
  .page-description, .taxonomy-subtitle, .archives-subtitle { font-size: 12px; }
  .terms-list { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .term-title { font-size: 16px; }
  .term-title > a { min-height: 75px; }
  .entry-item { padding: 22px 0; }
  .entry-item h2 { font-size: 16px; }
  .entry-summary { font-size: 12px; }
  .entry-item time { font-size: 11px; }
  .search-box { gap: 10px; padding-left: 12px; }
  .search-box input { font-size: 13px; }
  .search-box .button-primary { padding: 10px 14px; font-size: 12px; }
  .search-popular { gap: 20px; font-size: 12px; }
  .archive-month { grid-template-columns: 43px minmax(0, 1fr); }
  .archive-item { gap: 9px; font-size: 12px; }
  .archive-date { width: 28px; font-size: 10px; }
  .month-title { font-size: 11px; }
  .year-title { font-size: 22px; }
  .article-content { font-size: 14px; }
  .article-content h2 { font-size: 21px; }
  .article-content h3 { font-size: 17px; }
  .article-content pre { padding: 14px; font-size: 12px; }
  .article-content table { font-size: 12px; min-width: 500px; }
  .article-content th, .article-content td { padding: 10px 12px; }
  .related-item { flex-direction: column; gap: 5px; }
  .related-item-title { font-size: 13px; }
  .not-found { padding-top: 38px; }
  .not-found h1 { font-size: 23px; }
  .not-found p { font-size: 12px; }
}
