/* Northwest Territory Historic Center – the old site's look (Elementor on the Twenty Seventeen theme),
   rebuilt without WordPress. Sizes, colors and spacing are the old site's own values. */

@font-face { font-family: 'Roboto'; src: url(/fonts/roboto.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Chivo'; src: url(/fonts/chivo.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(/fonts/cinzel.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Slab'; src: url(/fonts/roboto-slab.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --tan: #C9B299;          /* the site's main color: text, links, headings */
  --tan-line: #C8B398;     /* the lines above and below each page */
  --tan-hover: #F9CE9F;
  --gray: #8C8C8C;         /* body text (the old #7A7A7A, made just light enough to read easily on the dark page) */
  --light: #C2C2C2;
  --page: #232327;
  --red: #490000;
  --menu: #282020;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #121212;
  color: var(--tan);
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.66;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48em) { body { font-size: 16px; line-height: 1.5; } }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--tan); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--tan-hover); }
p { margin: 0 0 1.5em; padding: 0; }
ul { margin: 0; padding: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--tan-hover); outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: #000; color: var(--tan); font-weight: 600; }
.skip-link:focus { top: 8px; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Header: phone and address, logo, menu ---------- */
.site-header { position: relative; padding: 28px 0 21px; background: #1E1E1E url(/images/header-texture.webp) center center / cover no-repeat; }
@media (max-width: 767px) { .site-header { background-image: url(/images/header-texture-small.webp); } }
.site-header::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(180deg, #000000 13%, #212024 100%); opacity: .91; }
.header-inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 10px; }
.header-inner > * + * { margin-top: 20px; }

.header-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; list-style: none; }
.header-contact li, .header-contact a { display: flex; align-items: center; font-size: 13px; line-height: 1.5; color: var(--tan); }
.header-contact .icon { width: 14px; height: 14px; margin-right: 4px; padding-right: 4px; box-sizing: content-box; }
.header-contact li .icon { margin-right: 0; padding-right: 8px; }
.header-contact a .icon { margin-right: 0; padding-right: 8px; }

.header-logo { display: block; text-align: center; }
.header-logo img { width: 40%; margin: 0 auto; }

.main-nav { position: relative; display: flex; flex-direction: column; align-items: center; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { display: block; font-family: 'Chivo', sans-serif; font-size: 15px; font-weight: 600; line-height: 20px; color: var(--tan); }
.menu > li > a { position: relative; padding: 13px 9px; }
/* The line above the current page's name, and above the one you point at (it fades in, as before) */
.menu > li > a::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tan); opacity: 0; transition: opacity .3s; }
.menu > li:hover > a::before, .menu > li > a:focus-visible::before, .menu > li > a[aria-current]::before { opacity: 1; }
.menu > li.has-sub > a { padding-right: 0; }
.menu > li.has-sub:hover > a::before, .menu > li.has-sub > a[aria-current]::before { right: -24px; }
.sub-toggle { display: flex; align-items: center; height: 46px; padding: 0 9px 0 10px; background: none; border: 0; color: var(--tan); cursor: pointer; font-size: 15px; }
.sub-toggle .icon { width: .6em; height: 1em; }
.sub-menu { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 15em; list-style: none; background: var(--menu); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { visibility: visible; opacity: 1; }
.sub-menu a { padding: 13px 20px; font-family: 'Roboto Slab', serif; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sub-menu a:hover, .sub-menu a:focus { background: #000; color: var(--tan); }

.menu-toggle { display: none; padding: .25em; margin: 0 auto; background: transparent; border: 0; color: var(--tan); cursor: pointer; font-size: 38px; line-height: 0; }
.menu-toggle .icon { width: 1em; height: 1em; }
.menu-toggle .icon-close { display: none; }
.main-nav.open .menu-toggle .icon-burger { display: none; }
.main-nav.open .menu-toggle .icon-close { display: block; }

@media (max-width: 1024px) {
  .site-header { padding: 0; }
  .menu-toggle { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; flex-wrap: nowrap; margin-top: 6px; background: var(--menu); }
  .main-nav.open .menu { display: flex; }
  /* (the old closed menu still took up its 6px gap below the button) */
  .main-nav:not(.open)::after { content: ''; display: block; height: 6px; }
  .main-nav { align-items: stretch; }
  .menu > li { justify-content: center; flex-wrap: wrap; }
  .menu > li > a { padding: 13px 20px; font-family: 'Roboto Slab', serif; font-weight: 500; }
  .menu > li > a::before { display: none; }
  .menu > li:hover, .menu > li:focus-within, .menu > li:has(> a[aria-current]) { background: #000; }
  .menu > li.has-sub > a { padding-right: 0; }
  .sub-toggle { height: auto; padding: 0 20px 0 10px; }
  .sub-menu { position: static; display: none; width: 100%; min-width: 0; visibility: visible; opacity: 1; background: transparent; text-align: center; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { white-space: normal; }
}
@media (max-width: 767px) {
  .header-contact { flex-direction: column; align-items: center; }
  .header-contact li, .header-contact a { line-height: 2.1em; }
  .header-logo img { width: 100%; }
  .menu-toggle { font-size: 44px; }
  .menu > li > a, .sub-toggle { padding: 10px 0 10px 24px; font-size: 21px; }
  .menu > li > a { padding-right: 24px; }
  .menu > li.has-sub > a { padding-right: 0; }
  .sub-toggle { padding: 10px 24px 10px 12px; }
  .sub-menu a { padding: 10px 24px; font-size: 21px; }
}

/* ---------- The page: the building photo, very dim, between two tan lines ---------- */
.page-body { position: relative; display: block; padding: 33px 0 66px; border-style: solid; border-color: var(--tan-line); border-width: 3px 0; background: #121212 url(/images/page-background.webp) top center / auto no-repeat; }
.page-body::before { content: ''; position: absolute; inset: 0; background: var(--page); opacity: .93; }
.page-body:focus { outline: none; }
@media (min-width: 1025px) { .page-body { background-attachment: fixed; } }
@media (max-width: 1024px) { .page-body { padding: 0; } }
@media (max-width: 767px) { .page-body { background-image: url(/images/page-background-small.webp); background-size: 1920px auto; } }
.page-inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 10px; }

/* Each part of a page ("section") and its contents ("col"), 20px apart, as Elementor spaced them */
.sec { display: flex; }
.col { flex: 1; min-width: 0; padding: 10px; }
.sec > .col > * + * { margin-top: 20px; }
.spacer { margin-top: 20px; }

.heading { margin: 0; padding: 0; line-height: 1; font-family: 'Roboto', sans-serif; font-weight: 600; color: var(--tan); text-align: center; }
.page-heading { font-family: 'Cinzel', serif; font-size: 33px; font-weight: 600; }
.text { display: flow-root; color: var(--gray); font-family: 'Roboto', sans-serif; font-weight: 400; }  /* (flow-root: keeps a paragraph's space below it inside the block, as Elementor did) */
.text a, .site-map a, .legal-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; color: #C8B398; }
.text a:hover, .text a:focus { color: var(--tan-hover); }
.text-tan { color: var(--tan); }
.text-light { color: var(--light); }
.text-center { text-align: center; }

/* Buttons (the old Elementor button: tan with black writing) */
.button-wrap { margin-bottom: 0; text-align: center; }
.button { display: inline-flex; align-items: center; gap: 19px; padding: 12px 24px; border: 0; border-radius: 3px; background: var(--tan); color: #000; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.button:hover, .button:focus { background: var(--tan-hover); color: #000; }
.button .icon { width: .75em; height: 1em; }

/* ---------- Home ---------- */
.welcome { padding: 23px; }
.welcome .text { text-align: center; }
.notice { margin: 0; padding: 15px; background: var(--red); color: #FFFFFF; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 400; line-height: 25px; text-align: center; }
.hours-title { font-size: 39px; }
.hours-text { color: #C7C7C7; font-size: 26px; text-align: center; }
.hours-text p { margin-bottom: 1.5em; }
.video-row { padding-top: 33px; }
.col-video { flex: 0 0 66.389%; }
.col-featured { flex: 0 0 33.561%; display: flex; flex-direction: column; justify-content: center; padding: 23px 0 0 46px; }
.video-wrap { position: relative; aspect-ratio: 1.77777; background: #000; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.featured-title { font-family: 'Cinzel', serif; font-size: 23px; text-align: left; }
.featured-list { margin-bottom: 1.5em; padding-left: 0; list-style: disc outside; }
.featured-list li { line-height: 1.5; }
.sec.holidays { margin-top: 20px; }
@media (max-width: 1024px) {
  .video-row { flex-wrap: wrap; }
  .col-video, .col-featured { flex: 0 0 100%; }
}
@media (max-width: 767px) {
  .welcome .text, .featured-list, .holidays .text { font-size: 12px; }
  .hours-title { font-size: 23px; }
  .hours-text { font-size: 13px; }
}

/* ---------- Exhibits slideshow ---------- */
.exhibits { padding-bottom: 45px; }
.slides-frame { position: relative; height: 695px; overflow: hidden; background: #080808; }
.slides-track { position: relative; height: 100%; list-style: none; }
.slide { position: absolute; inset: 0; visibility: hidden; transform: translateX(100%); transition: transform .5s ease, visibility 0s .5s; }
.slide.is-on { visibility: visible; transform: none; transition: transform .5s ease; }
.slide.from-left { transform: translateX(-100%); }
.slide.leaving-left { visibility: visible; transform: translateX(-100%); transition: transform .5s ease; }
.slide.leaving-right { visibility: visible; transform: translateX(100%); transition: transform .5s ease; }
.slide.no-anim { transition: none; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; }
.slide-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px; text-align: center; color: #FFFFFF; }
.slide-title { margin: 0 0 2px; font-family: 'Roboto', sans-serif; font-size: 65px; font-weight: 600; line-height: 1; color: #FFFFFF; }
.slide-description { margin: 0; font-family: 'Roboto Slab', serif; font-size: 17px; font-weight: 400; line-height: 1.4; }
.slides-prev, .slides-next { position: absolute; top: 50%; z-index: 2; display: flex; padding: 0; margin-top: -16px; background: none; border: 0; color: rgba(238, 238, 238, .9); font-size: 32px; cursor: pointer; }
.slides-prev { left: 10px; }
.slides-next { right: 10px; }
.slides-prev:hover, .slides-next:hover { color: #FFFFFF; }
.slides-pause { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transition: opacity .2s; }
.slides-frame:hover .slides-pause, .slides-pause:focus-visible, .slides-pause[aria-pressed="true"] { opacity: 1; }
.slides-pause span { display: block; width: 10px; height: 12px; margin: 0 auto; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.slides-pause[aria-pressed="true"] span { width: 0; height: 0; border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: #fff; margin-left: 11px; }
.slides-dots { display: flex; justify-content: center; flex-wrap: wrap; height: 30px; align-items: center; }
.slides-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slides-dot::before { content: ''; display: block; width: 6px; height: 6px; margin: 0 auto; border-radius: 50%; background: #FFFFFF; }
.slides-dot[aria-current]::before { background: #000000; }
@media (max-width: 1024px) {
  .slides-frame { height: 447px; }
  .slide-title { font-size: 36px; }
}
@media (max-width: 767px) {
  .exhibits { padding: 0; }
  .slides-frame { height: 204px; }
  .slide-text { padding: 20px 45px; }
  .slide-title { font-size: 18px; }
  .slide-description { font-size: 11px; }
}

/* ---------- Contact Us ---------- */
.contact-line { color: var(--tan); font-size: 17px; text-align: center; }
.contact-line a { text-decoration: none; color: var(--tan); }
.contact-line a:hover { text-decoration: underline; }
.map-row { padding-top: 33px; }
.map { width: 100%; height: 300px; border: 0; filter: brightness(91%) contrast(200%) saturate(0%); }

/* The contact form (new) */
.form-row { padding-top: 33px; }
.form-title { font-family: 'Cinzel', serif; font-size: 23px; }
.site-form, .form-thanks { max-width: 760px; margin-left: auto; margin-right: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; color: var(--tan); font-size: 15px; font-weight: 500; }
.field .req { color: #E8A0A0; }
.field .optional { color: var(--light); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #6B6258; border-radius: 3px; background: #1A1A1D; color: #EDE6DD; font: inherit; font-size: 16px; line-height: 1.4; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tan) 50%), linear-gradient(135deg, var(--tan) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tan); outline: 2px solid var(--tan-hover); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E57373; }
.field-error { margin: 4px 0 0; color: #F4A6A6; font-size: 14px; }
.form-errors { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid #E57373; background: rgba(229, 115, 115, .12); color: #F4C2C2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 16px 0 0; color: var(--light); font-size: 13px; }
.form-privacy a { color: var(--tan); text-decoration: underline; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.form-submit { font-size: 15px; padding: 14px 28px; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; color: var(--light); }
.form-status.error { color: #F4A6A6; }
.form-thanks { padding: 20px 24px; border: 1px solid var(--tan-line); border-radius: 3px; color: var(--light); text-align: center; }
.form-thanks p:last-child { margin-bottom: 0; }
.form-thanks strong { color: var(--tan); }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Related Links ---------- */
.related-heading { font-size: 26px; }
.related-links { font-size: 14px; text-align: center; }
@media (max-width: 767px) { .related-heading { font-size: 20px; } }

/* ---------- Acknowledgements ---------- */
.acknowledgements { padding-bottom: 45px; }
.ack-title { font-size: 27px; }
.ack-gallery { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 400; }
.ack-role { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 400; }
.ack-names { color: var(--light); font-size: 14px; text-align: center; }
.ack-names a { text-decoration: none; color: var(--tan); }
.ack-names a:hover { text-decoration: underline; }

/* ---------- Private Events & Tours and the Art Contest ---------- */
.events { padding: 33px 0 66px; }
@media (max-width: 1024px) { .events { padding: 0; } }
.art-title { font-size: 40px; }
.sec > .col > .art-button { margin-top: 45px; }
@media (max-width: 1024px) { .sec > .col > .art-title { margin-top: 25px; } }
@media (max-width: 767px) {
  .art-title { font-size: 21px; }
  .sec > .col > .art-title { margin-top: 22px; }
  .art-text { font-size: 12px; }  /* (11px on the old site; 12px is the smallest Google calls easy to read) */
}

/* ---------- Privacy Policy, Accessibility, Site Map, page not found (new) ---------- */
.legal .col { max-width: 900px; margin: 0 auto; }
.legal-text h2 { margin: 1.6em 0 .6em; font-family: 'Cinzel', serif; font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--tan); }
.legal-text ul { margin: 0 0 1.5em; padding-left: 1.4em; }
.legal-text li { margin-bottom: .4em; }
.site-map h2 { margin-top: 1.2em; }
.site-map h2 a { text-decoration: none; color: var(--tan); }

/* ---------- Footer ---------- */
.site-footer { padding: 33px 0; background: #121212 url(/images/footer-texture.webp); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 10px; text-align: center; }
.footer-logo { width: 25%; margin: 0 auto 20px; }
.footer-copy { margin: 0 0 18px; font-size: 12px; line-height: 1.5; color: var(--tan); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: -6px 0 12px; font-size: 12px; line-height: 1.5; }
.footer-links a { color: var(--tan); }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { margin: 0; font-size: 12px; line-height: 1; }
.footer-credit a { display: inline-flex; align-items: center; gap: 6px; color: var(--light); }
.footer-credit img { width: 102px; height: auto; }
.footer-credit a:hover { color: var(--tan-hover); }
@media (max-width: 767px) { .footer-logo { width: 65%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header::before, .page-body::before, .main-nav, .slides-prev, .slides-next, .slides-dots, .slides-pause, .footer-links, .footer-credit { display: none !important; }
  body, .page-body, .site-header, .site-footer { background: #fff !important; color: #000 !important; }
  .text, .heading, a { color: #000 !important; }
}
