/* Local archive presentation and shared components. */
:root { --archive-gold: #f5c400; --archive-ink: #171717; --archive-muted: #626262; }
[hidden] { display: none !important; }
.restore-skip { position: absolute; z-index: 200; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .7rem 1rem; background: #fff; color: #111; border: 2px solid #e1b400; }
.restore-skip:focus { transform: translateY(0); }
.restore-mobile-header { position: relative; z-index: 101; display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: 1rem max(1rem, calc((100% - 1100px)/2)); border-bottom: 3px solid var(--archive-gold); background: #080808; color: #fff; font: 1rem/1.4 Arial, sans-serif; }
.restore-mobile-header > * { min-width: 0; }
.restore-mobile-header img { display: block; width: 4rem; max-width: 100%; height: 4rem; object-fit: contain; }
.restore-mobile-header a { color: #fff; }
.restore-brand-title strong { display: block; font-size: 1.05rem; line-height: 1.25; margin-bottom: .25rem; }
.restore-brand-title a[href^="tel:"] { display: inline-block; color: #ffdd00; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
#restoreMenuToggle { min-width: 2.75rem; min-height: 2.75rem; padding: .45rem .7rem; border: 1px solid #777; border-radius: .2rem; background: transparent; color: #fff; font: inherit; cursor: pointer; }
#restoreNavigation { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .2rem .8rem; width: 100%; padding-top: .5rem; border-top: 1px solid #555; }
#restoreNavigation a { display: block; padding: .6rem .2rem; line-height: 1.3; text-decoration: none; }
#restoreNavigation a:hover { color: #ffdd00; }
body:not(.js-ready) #restoreMenuToggle { display: none; }
.restore-archive-bar { padding: .45rem 1rem; border-bottom: 1px solid #ddd; background: #f3f3f3; color: #444; font: .8rem/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.restore-archive-bar a { color: inherit; text-decoration: underline; }
.restore-archive-page { margin: 0; padding: 0; background: #e9e9e9; color: var(--archive-ink); font: 17px/1.65 Arial, Helvetica, sans-serif; }
.restore-archive-page * { box-sizing: border-box; }
.restore-archive-page a { color: #07559b; text-underline-offset: .15em; }
.restore-archive-page .restore-mobile-header a { color: #fff; }
.restore-archive-page .restore-mobile-header a[href^="tel:"] { color: #ffdd00; }
.restore-content { width: min(1100px, 100%); min-width: 0; margin: 0 auto; padding: clamp(1.25rem, 4vw, 3rem); background: #fff; overflow-wrap: anywhere; }
.restore-content h1 { margin: 0 0 1.2rem; font-size: clamp(1.85rem, 3.4vw, 2.8rem); line-height: 1.2; }
.restore-content h2 { margin: 1.8rem 0 .8rem; font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.3; }
.restore-content h3 { line-height: 1.35; }
.restore-content p { margin: 0 0 1.1rem; }
.restore-content :is(img,svg,video) { max-width: 100%; height: auto; }
.restore-content img { vertical-align: middle; }
.restore-content table { max-width: 100%; border-collapse: collapse; }
.restore-content td, .restore-content th { padding: .45rem; vertical-align: top; overflow-wrap: anywhere; }
.restore-content input, .restore-content select, .restore-content textarea { max-width: 100%; }
.restore-source-note { margin: 0 0 1.75rem !important; padding: .85rem 1rem; border-left: 4px solid #e5b900; background: #fff8de; color: #4b451f; font-size: .875rem; line-height: 1.6; }
.restore-breadcrumb { font-size: .9rem; }
.restore-panel { max-width: 100%; margin: 1.25rem 0; padding: 1.25rem; border: 1px solid #d4d4d4; border-radius: .25rem; background: #fff; color: #222; overflow-wrap: anywhere; }
.restore-panel > :first-child { margin-top: 0; }
.restore-panel > :last-child { margin-bottom: 0; }
.restore-form-note { margin: 1rem 0; padding: 1rem; border: 1px solid #dfcc82; border-left: 4px solid #d6aa00; background: #fff9e2; color: #333; line-height: 1.6; }
.restore-form-note p { margin: .4rem 0 0; }
form[data-restored-disabled] { margin-top: 1rem; }
form[data-restored-disabled] :disabled { opacity: 1; }
.restore-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.restore-actions a, .restore-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid #363636; border-radius: .25rem; background: #202020; color: #fff !important; text-decoration: none; font-weight: 600; }
.restore-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.restore-service-card { padding: 1.5rem; border: 1px solid #dedede; border-top: 4px solid var(--archive-gold); border-radius: .25rem; background: #f8f8f8; color: #222 !important; text-decoration: none; }
.restore-service-card h2 { margin: 0 0 .85rem; }
.restore-service-card span { color: #07559b; }
.restore-service-card:hover { background: #fff8d6; }
.restore-archive-controls { display: grid; grid-template-columns: minmax(0, 1fr) 10rem auto; gap: 1rem; align-items: end; padding: 1rem; border: 1px solid #ddd; background: #f8f8f8; }
.restore-archive-controls label { display: block; font-size: .9rem; font-weight: 700; }
.restore-archive-controls input, .restore-archive-controls select { display: block; width: 100%; min-width: 0; min-height: 2.8rem; margin-top: .3rem; padding: .5rem .7rem; border: 1px solid #aaa; border-radius: .2rem; background: #fff; color: #222; font: 1rem/1.4 Arial, sans-serif; }
.restore-archive-controls button { min-height: 2.8rem; padding: .5rem 1rem; border: 1px solid #333; border-radius: .2rem; background: #242424; color: #fff; font: 1rem/1.4 Arial, sans-serif; cursor: pointer; }
#restoreArchiveCount { margin: 1rem 0; color: #555; font-size: .9rem; }
#restoreArchiveEmpty { padding: 1rem; border: 1px solid #ddd; background: #f5f5f5; }
.restore-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.restore-article-card { min-width: 0; padding: 1.5rem; border: 1px solid #ddd; border-radius: .25rem; background: #fff; }
.restore-article-card h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.restore-article-card h2 a { color: #222; }
.restore-card-date { margin: 0 0 .6rem !important; color: #666; font-size: .8rem; }
.restore-article-body { max-width: 820px; margin: 0 auto; }
.restore-article-body img { display: block; margin: 1.25rem auto; }
.restore-article-body img[align="left"] { margin: .25rem 1.25rem 1rem 0; }
.restore-article-body img[align="right"] { margin: .25rem 0 1rem 1.25rem; }
.restore-article-body ul, .restore-article-body ol { padding-left: 1.5rem; }
.restore-article-body iframe { max-width: 100%; }
.restore-video { display: grid; gap: .5rem; width: 100%; max-width: 100%; margin: 1rem 0; padding: 1.5rem 1rem; border: 1px solid #ccc; border-radius: .25rem; background: #f2f2f2; color: #222 !important; text-align: center; text-decoration: none; line-height: 1.5; }
.restore-video-play { display: grid; place-content: center; width: 3rem; height: 3rem; margin: 0 auto .25rem; border-radius: 50%; background: #cc0000; color: #fff; font-size: 1.3rem; }
.restore-video span:last-child { color: #07559b; font-size: .9rem; }
.restore-unavailable-image { display: inline-block; max-width: 100%; margin: .4rem 0; padding: .7rem; border: 1px dashed #bbb; background: #f4f4f4; color: #555; font: .85rem/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.restore-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.restore-testimonials > * { min-width: 0; }
.restore-testimonials p { grid-column: 1/-1; }
.restore-site-map { columns: 2 20rem; padding-left: 1.4rem; }
.restore-site-map li { break-inside: avoid; padding: .3rem 0; overflow-wrap: anywhere; }
.restore-footer { padding: 2rem 1rem; background: #080808; color: #ddd; text-align: center; font: .9rem/1.6 Arial, sans-serif; }
.restore-footer img { display: block; width: 5rem; height: auto; margin: 0 auto 1rem; }
.restore-footer p { margin: .5rem 0; }
.restore-footer a { color: #ffe261; }
.restore-archive-extension { max-width: 960px; margin: 2rem auto; font: 1rem/1.65 Arial, sans-serif; }
.restore-archive-extension h2 { margin-top: 0; font-size: 1.6rem; }
.restore-archive-page :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #0871cc; outline-offset: 3px; }
#restoreImageDialog { width: min(70rem, calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 1rem; border: 1px solid #aaa; border-radius: .3rem; background: #fff; color: #222; overflow: auto; }
#restoreImageDialog:not([open]) { display: none; }
#restoreImageDialog::backdrop { background: rgba(0,0,0,.8); }
#restoreImageDialog [data-dialog-close] { display: block; min-height: 2.75rem; margin: 0 0 .75rem auto; padding: .4rem .8rem; border: 1px solid #aaa; background: #f5f5f5; color: #222; font: inherit; cursor: pointer; }
#restoreDialogImage { display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; margin: auto; object-fit: contain; }
#restoreDialogCaption { margin: .75rem 0 0; font: .9rem/1.5 Arial,sans-serif; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .restore-mobile-header { padding: .65rem 1rem; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .65rem; }
  .restore-mobile-header img { width: 3.5rem; height: 3.5rem; }
  #restoreNavigation { display: block; }
  #restoreNavigation a { padding: .7rem .2rem; }
  .restore-content { padding: 1.5rem 1rem; }
  .restore-service-grid, .restore-article-grid, .restore-testimonials { grid-template-columns: minmax(0, 1fr); }
  .restore-archive-controls { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  .restore-archive-controls label:first-child { grid-column: 1/-1; }
  .restore-article-body img, .restore-legacy-body img { float: none !important; max-width: 100%; height: auto; margin: .75rem auto !important; }
  .restore-legacy-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  .restore-site-map { columns: 1; }
  .restore-archive-extension { margin: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } .restore-mobile-header *, .restore-article-card { animation: none !important; transition: none !important; } }
