/* Shared responsive layout; no framework or build step required. */
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: #000; color: #e6e6e6; font: 16px/1.65 Tahoma, Arial, sans-serif; }
.site-shell { width: min(100% - 40px, 800px); margin: 32px auto 0; }
.site-header { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #555; }
.brand-logo img { width: 150px; }
.brand-title img { width: 100%; max-width: 554px; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.social-links { display: flex; flex-direction: column; gap: 14px; }
.social-links a { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.site-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 36px; padding: 28px 0 40px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; border: 1px solid #333; border-radius: 4px; color: #eee; text-decoration: none; line-height: 1.35; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: #ff9b52; background: #21140d; border-color: #ac5620; }
main { min-width: 0; overflow-wrap: anywhere; }
h1 { margin: 0 0 24px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; color: #ff9b52; }
.legacy-content { text-align: left; }
.liturgy { display: flex; align-items: center; gap: 14px; border-block: 1px solid #aaa; padding: 9px 0; margin-bottom: 24px; }
.liturgy-logo { flex: 0 0 89px; }
.liturgy-logo img { display: block; width: 89px; height: auto; }
.liturgy p { min-width: 0; margin: 0; font-size: 16px; line-height: 1.2; }
.legacy-content table { width: 100% !important; table-layout: fixed; border-collapse: collapse; }
.legacy-content td, .legacy-content th { overflow-wrap: anywhere; padding: 6px; vertical-align: top; }
.legacy-content img { object-fit: contain; }
.legacy-content a { color: #eee; text-underline-offset: 3px; }
.legacy-content a:hover { color: #ff9b52; }
.legacy-content hr { border: 0; border-top: 1px solid #555; margin: 24px 0; }
footer { padding: 20px 0 28px; border-top: 1px solid #555; font-size: .85rem; color: #bbb; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffa463; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: #fff; color: #000; z-index: 10; }
.skip-link:focus { top: 12px; }
.news-page .legacy-content { background: #999; color: #000; padding: 24px; border-radius: 4px; }
.news-page .legacy-content a { color: #000; }
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 32px); margin-top: 20px; }
  .site-header { grid-template-columns: 88px minmax(0,1fr); gap: 16px; padding-bottom: 20px; }
  .brand-logo img { width: 88px; }
  .social-links { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; gap: 8px; }
  .site-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sidebar nav a { min-height: 36px; padding: 6px 10px; font-size: 14px; line-height: 1.3; }
  .legacy-content table, .legacy-content tbody, .legacy-content tr, .legacy-content td, .legacy-content th { display: block; width: 100% !important; }
  .legacy-content td:empty { display: none; }
  .legacy-content td { padding: 6px 0; }
}
@media (max-width: 420px) {
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-header { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
  .brand-logo img { width: 64px; }
  .news-page .legacy-content { padding: 16px; }
}
