:root { color-scheme: light; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { overflow-wrap: break-word; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 1.5; white-space: nowrap; }
.site-header nav a[aria-current="page"] { font-weight: 600; color: #5e3300; border-bottom: 2px solid #7a4a16; }
.mobile-menu-toggle { display: none; }
.site-container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px 64px 64px; }
.page-breadcrumb { display: flex; gap: 12px; color: #847468; font-size: 13px; margin-bottom: 24px; }
.page-title { color: #5e3300; font-size: clamp(26px, 4vw, 34px); line-height: 1.3; font-weight: 600; margin-bottom: 24px; }
.footer-qr-frame { width: 100%; max-width: 112px; aspect-ratio: 1; background: #fff; padding: 5px; border-radius: 6px; margin-bottom: 8px; }
.footer-qr { width: 100%; height: 100%; object-fit: contain; }
.contact-email { display: block; overflow-wrap: anywhere; line-height: 1.65; }
.form-error { padding: 12px; border-radius: 6px; color: #93000a; background: #ffdad6; }
button:disabled { cursor: wait; opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #85531f; outline-offset: 3px; }
.resource-toolbar { display: flex; gap: 16px; align-items: end; background: #f7ece3; border-radius: 12px; padding: 24px; }
.resource-toolbar label { display: flex; flex-direction: column; gap: 8px; color: #51443a; font-size: 14px; }
.resource-search { flex: 1; }
.resource-toolbar input, .resource-toolbar select { height: 46px; border: 1px solid #d6c3b5; background: #fff; border-radius: 6px; padding: 0 12px; min-width: 0; width: 100%; }
#resultCountText { color: #847468; margin: 24px 0 16px; font-size: 14px; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.document-card { display: flex; flex-direction: column; gap: 18px; border: 1px solid #ece1d8; border-radius: 12px; padding: 24px; background: #fff; }
.document-card h2 { color: #5e3300; font-size: 20px; line-height: 1.6; font-weight: 600; }
.document-meta { color: #847468; font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.document-card a { margin-top: auto; border-radius: 6px; padding: 10px 16px; text-align: center; background: #7a4a16; color: #fff; }
.empty-state { padding: 64px 24px; text-align: center; color: #847468; background: #fdf2e9; border-radius: 12px; }
@media (max-width: 1100px) and (min-width: 1024px) { .site-header > div { padding-left: 24px; padding-right: 24px; gap: 12px; } .site-header nav { gap: 16px; } }
@media (max-width: 1023px) {
  .mobile-menu-toggle { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin-left: auto; color: #5e3300; border: 1px solid #d6c3b5; border-radius: 6px; }
  .site-header nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px; background: #fff8f4; box-shadow: 0 8px 16px #352f2a1a; }
  .site-header nav.is-open a { padding: 12px; }
  .site-container { padding: 32px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .site-container { padding: 24px 16px 40px; }
  .resource-toolbar { flex-wrap: wrap; padding: 16px; }
  .resource-search { flex-basis: 100%; }
  .resource-toolbar label:not(.resource-search) { flex: 1; }
  .document-grid { grid-template-columns: 1fr; }
  main h1 { font-size: 28px !important; line-height: 1.4 !important; }
  main h2 { font-size: 24px !important; line-height: 1.4 !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
