/* Readability and interaction refinements after desktop/mobile review. */
:root { --anchor-offset: 154px; }
html { scroll-padding-top: 0; }
main [id], #main, .inline-form-error, .summary-output { scroll-margin-top: var(--anchor-offset); }
.brand-mobile { display: none; }
.site-header { box-shadow: 0 2px 8px #12344905; }
.filter-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { flex-shrink: 0; }
.result-info .saved-filter { margin: 0; }
.card-detail { font-size: 13px; }
.compact .card-detail { font-size: 12px; }
.search-result h2 > a { display: inline-block; max-width: 100%; }
.service-form input::placeholder,
.service-form textarea::placeholder { color: #657583; }
.service-form :is(input, select, textarea) { scroll-margin-top: var(--anchor-offset); }
.service-form [aria-invalid="true"] { border-color: #a44336 !important; background: #fffafa !important; }
.field-error { display: block; color: #953e32; font-size: 13px; font-weight: 400; line-height: 1.85; margin-top: 7px; }
.consent + .field-error { margin-top: -12px; margin-bottom: 20px; }
.inline-form-error { border-left: 3px solid #a44336; background: #fff5f2; color: #86382e; padding: 16px 19px; margin-bottom: 25px; scroll-margin-top: var(--anchor-offset); }
.inline-form-error > strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.inline-form-error ul { padding-left: 19px; margin: 0; }
.inline-form-error li { font-size: 13px; line-height: 1.9; margin-top: 4px; }
.inline-form-error a { text-decoration: underline; text-underline-offset: 3px; }
.inline-form-error a:hover { color: #541f19; }
.search-suggestions { padding: 25px 0; }
.search-suggestions h2 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.search-suggestions > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.search-suggestions a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 3px; }
.search-suggestions a:hover { background: var(--pale); border-color: var(--teal); }
.search-suggestions strong { display: block; font-size: 16px; font-weight: 500; color: var(--teal); }
.search-suggestions span { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); }
.page-sidebar nav a[aria-current="location"],
.toc nav a[aria-current="location"] { color: var(--teal); font-weight: 600; }
@media (max-width: 900px) {
  :root { --anchor-offset: 100px; }
}
@media (max-width: 640px) {
  :root { --anchor-offset: 94px; }
  .brand-en { display: none; }
  .brand-mobile { display: block; font-size: 10px; line-height: 1.5; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
  .brand-title { font-size: 16px; }
  .brand-draft { font-size: 10px; }
  .utility > .wrap > span { font-size: 11px; }
  .utility > .wrap > div { font-size: 11px; }
  .hero-actions .button { min-height: 46px; font-size: 14px; }
  .hero-text-link { font-size: 14px; min-height: 44px; }
  .quick-services > a { padding: 14px 17px; gap: 13px; }
  .quick-services > a > div { display: block; min-width: 0; }
  .quick-services strong { font-size: 15px; line-height: 1.7; }
  .quick-services span { font-size: 12px; line-height: 1.8; margin-top: 3px; max-width: none; text-align: left; }
  .quick-services > a > .icon:last-child { display: block; width: 18px; height: 18px; margin-left: auto; }
  .filter-tabs { gap: 16px; }
  .filter-tabs button { font-size: 14px; }
  .list-toolbar { border-bottom: 0; }
  .result-info { min-height: 42px; margin-top: 12px; margin-bottom: 14px; }
  .result-info .saved-filter { font-size: 13px; min-height: 42px; }
  .events-list .event-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
  .events-list .event-cover-link { height: 100%; }
  .events-list .photo-cover, .events-list .graphic-cover { height: 100%; min-height: 220px; }
  .events-list .photo-cover img { object-position: 60% center; }
  .events-list .graphic-cover svg { width: 180%; height: auto; flex-shrink: 0; }
  .events-list .graphic-cover > span { font-size: 9px; left: 8px; bottom: 12px; letter-spacing: 0; }
  .events-list .photo-credit { left: 0; right: 0; bottom: 0; text-align: center; font-size: 9px; padding: 3px 0; }
  .events-list .event-card-body { padding: 14px 15px 17px; }
  .events-list h2 { font-size: 20px; line-height: 1.65; margin-top: 6px; margin-bottom: 13px; }
  .events-list .card-summary { display: none; }
  .events-list .card-meta > span:nth-child(2) { display: none; }
  .events-list .card-detail { font-size: 12px; gap: 7px; }
  .events-list .card-detail > span { gap: 5px; }
  .events-list .card-detail .draft { font-size: 10px; }
  .events-list .card-link { font-size: 13px; margin-top: 13px; padding-top: 11px; }
  .card-detail > span { overflow-wrap: anywhere; }
  .field-hint { font-size: 12px; }
  .events-list .card-detail, .compact .card-detail { font-size: 13px; }
  .compact h3 { font-size: 18px; }
  .compact .tag { font-size: 11px; }
  .compact .card-link { font-size: 14px; min-height: 44px; }
  .summary-output .information-table > div { font-size: 15px; }
  .form-actions > span { font-size: 12px; }
  .service-form .consent { font-size: 14px; line-height: 1.95; }
  .type-picker > label { margin-bottom: 0; }
  .inline-form-error { padding: 15px 16px; }
  .inline-form-error li { font-size: 13px; }
  .inline-form-error a { display: inline-block; padding: 4px 0; }
  .search-help { font-size: 13px; gap: 12px; }
  .search-help > a { min-height: 36px; padding: 5px 0; }
  .search-suggestions { padding-top: 20px; }
  .search-suggestions > div { grid-template-columns: 1fr; gap: 13px; }
  .search-suggestions a { padding: 17px 19px; }
  .search-suggestions span { font-size: 14px; line-height: 1.85; }
}
@media (max-width: 360px) {
  .brand-title { font-size: 14px; }
  .brand-mobile { font-size: 9px; }
  .utility > .wrap > span { font-size: 10px; }
  .hero-actions { gap: 13px; }
  .hero-actions .button { font-size: 13px; }
  .hero-text-link { font-size: 13px; }
  .quick-services strong { font-size: 14px; }
  .quick-services span { font-size: 12px; max-width: none; }
  .filter-tabs { gap: 12px; }
  .filter-tabs button { font-size: 13px; }
  .events-list .event-card { grid-template-columns: 70px minmax(0, 1fr); }
  .events-list .event-card-body { padding-inline: 12px; }
  .events-list h2 { font-size: 18px; }
}
@media print {
  .brand-mobile, .inline-form-error, .field-error, .mobile-toc { display: none !important; }
}
