/* ==========================================================================
   Waking Windows Portland — Restored Brine-style Layout & Responsive Theme
   ========================================================================== */

:root {
  --ww-bg: #ffffff;
  --ww-surface: #fafafa;
  --ww-surface-alt: #f4f2ed;
  --ww-ink: #1a1a1a;
  --ww-muted: #666666;
  --ww-border: #e4e2dc;
  --ww-accent: #1a1a1a;
  --ww-highlight: #d45c3c;
  --ww-font-display: "Futura PT", "Futura", "Century Gothic", "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ww-font-body: "Runda", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ww-max-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ww-bg);
  color: var(--ww-ink);
  font-family: var(--ww-font-body);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.Loader {
  display: none;
}

/* ==========================================================================
   Desktop Header (Header--top + Header--bottom)
   ========================================================================== */

.Site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.Site-inner {
  flex: 1 0 auto;
}

.Header {
  width: 100%;
  background: var(--ww-bg);
}

.Header--top {
  border-bottom: 1px solid var(--ww-border);
}

.Header-inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 36px;
}

.Header-inner--top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding-top: 8px;
  padding-bottom: 8px;
}

[data-nc-container="top-left"] {
  justify-self: start;
}

[data-nc-container="top-center"] {
  justify-self: center;
}

[data-nc-container="top-right"] {
  justify-self: end;
}

/* Search Form (underlined style) */
.Header-search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cfcdc6;
  padding-bottom: 3px;
  width: 190px;
  transition: border-color 0.2s ease;
}

.Header-search-form:focus-within {
  border-bottom-color: var(--ww-ink);
}

.Header-search-form-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--ww-font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ww-ink);
  padding: 4px 6px 2px 0;
}

.Header-search-form-input::placeholder {
  color: #8a877f;
}

.Header-search-form-submit {
  border: 0;
  background: transparent;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ww-ink);
}

.Header-search-form-submit .Icon--search--small {
  width: 15px;
  height: 15px;
  display: block;
}

.Header-search-form-submit .Icon--search {
  display: none;
}

/* Social Links */
.SocialLinks-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.SocialLinks-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ww-ink);
}

.SocialLinks-link:hover {
  opacity: 0.65;
}

.SocialLinks-link > div {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.SocialLinks-link-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.SocialLinks-link-icon {
  fill: currentColor;
}

.SocialLinks-link-mask {
  display: none;
}

/* Header Bottom (Primary Nav + Centered Logo) */
.Header--bottom {
  padding-top: 26px;
  padding-bottom: 20px;
}

.Header-inner--bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

[data-nc-container="bottom-left"] {
  justify-self: start;
}

[data-nc-container="bottom-center"] {
  justify-self: center;
  text-align: center;
}

[data-nc-container="bottom-right"] {
  justify-self: end;
}

.Header-branding {
  display: inline-block;
}

.Header-branding-logo {
  width: 280px;
  height: auto;
  margin: 0 auto;
}

.ancillary-header-tagline-position-hide .Header-tagline {
  display: none;
}

.Header-tagline {
  margin-top: 10px;
  font-family: var(--ww-font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ww-muted);
}

/* Primary Nav & Dropdown Folders */
.Header-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.Header-nav-item,
.Header-nav-folder-title {
  font-family: var(--ww-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ww-ink);
  padding: 6px 0;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.Header-nav-item::after,
.Header-nav-folder-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background-color: var(--ww-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.Header-nav-item:hover::after,
.Header-nav-item--folder:hover .Header-nav-folder-title::after,
.Header-nav-item--folder.is-open .Header-nav-folder-title::after {
  transform: scaleX(1);
}

.Header-nav-item--folder {
  position: relative;
}

.Header-nav-folder {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 170px;
  background: var(--ww-bg);
  border: 1px solid var(--ww-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.Header-nav-item--folder:hover .Header-nav-folder,
.Header-nav-item--folder:focus-within .Header-nav-folder,
.Header-nav-item--folder.is-open .Header-nav-folder {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.Header-nav-folder-item {
  display: block;
  padding: 8px 16px;
  font-family: var(--ww-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ww-ink);
  white-space: nowrap;
}

.Header-nav-folder-item:hover {
  background: var(--ww-surface-alt);
}

/* ==========================================================================
   Main Content & 12-Column Squarespace Grid
   ========================================================================== */

.Content-outer {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 28px 36px 48px;
}

.sqs-layout {
  width: 100%;
}

.sqs-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -20px;
  margin-right: -20px;
}

.sqs-row > .col {
  padding-left: 20px;
  padding-right: 20px;
}

.sqs-col-5 {
  width: 41.666667%;
}

.sqs-col-7 {
  width: 58.333333%;
}

.sqs-col-6 {
  width: 50%;
}

.sqs-col-12 {
  width: 100%;
}

.sqs-block {
  margin-bottom: 24px;
}

.sqs-block:last-child {
  margin-bottom: 0;
}

/* Poster Image Block */
.image-block-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--ww-surface-alt);
  border: 1px solid var(--ww-border);
}

.image-block-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-caption-wrapper {
  margin-top: 10px;
}

.image-caption p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ww-muted);
}

/* Editorial Copy Block */
.sqs-block-html p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.72;
  color: #222222;
  white-space: normal !important;
}

.sqs-block-html p:last-child {
  margin-bottom: 0;
}

.sqs-block-html strong {
  font-weight: 700;
  color: #000000;
}

/* Program Highlights Grid */
.ww-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.ww-program-card {
  background: var(--ww-surface);
  border: 1px solid var(--ww-border);
  padding: 16px 18px;
}

.ww-program-card h4 {
  margin: 0 0 6px;
  font-family: var(--ww-font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-highlight);
}

.ww-program-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333333;
}

.ww-header-location {
  font-family: var(--ww-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ww-muted);
  white-space: nowrap;
}

.sqs-block-spacer .sqs-block-content {
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.Footer {
  background-color: var(--ww-surface);
  border-top: 1px solid var(--ww-border);
  padding: 40px 24px 44px;
}

.Footer-inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  text-align: center;
}

.Footer-blocks--bottom h3 {
  margin: 0;
  font-family: var(--ww-font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ww-ink);
  white-space: normal !important;
}

.ww-site-footnote {
  margin: 10px auto 0;
  font-family: var(--ww-font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-muted);
}

/* ==========================================================================
   Mobile Bar & Slide-Out Overlay (Hidden on Desktop)
   ========================================================================== */

.Mobile {
  display: none;
}

.Mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.28s ease;
}

.Mobile-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.Mobile-overlay-back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.Mobile-overlay.is-open .Mobile-overlay-back {
  opacity: 1;
}

.Mobile-overlay-menu {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--ww-bg);
  padding: 72px 28px 32px;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  z-index: 2;
}

.Mobile-overlay.is-open .Mobile-overlay-menu {
  transform: translateX(0);
}

.Mobile-overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ww-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.Mobile-overlay-close .Icon {
  width: 18px;
  height: 18px;
}

.Mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.Mobile-overlay-nav-item,
.Mobile-overlay-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-family: var(--ww-font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-ink);
  border-bottom: 1px solid var(--ww-border);
}

.Mobile-overlay-nav-item--folder::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  color: var(--ww-muted);
}

.Mobile-overlay-folders {
  display: none;
}

.Mobile-overlay-menu.has-active-folder .Mobile-overlay-menu-main {
  display: none;
}

.Mobile-overlay-menu.has-active-folder .Mobile-overlay-folders {
  display: block;
}

.Mobile-overlay-folder {
  display: none;
}

.Mobile-overlay-folder.is-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.Mobile-overlay-folder-item--toggle {
  color: var(--ww-muted);
  font-size: 13px;
}

.Mobile-overlay-folder-item--toggle::before {
  content: "‹ ";
  margin-right: 6px;
}

/* ==========================================================================
   Search Banner, Highlights & Archive Page Modal
   ========================================================================== */

.ww-search-bar {
  max-width: var(--ww-max-width);
  margin: 0 auto 20px;
  padding: 12px 18px;
  background: var(--ww-surface-alt);
  border: 1px solid var(--ww-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.ww-search-bar[hidden] {
  display: none;
}

.ww-search-bar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ww-search-inline-input {
  border: 1px solid #cfc9bc;
  background: #ffffff;
  padding: 6px 10px;
  font-size: 14px;
  font-family: var(--ww-font-body);
  border-radius: 2px;
  min-width: 190px;
}

.ww-search-clear {
  border: 1px solid var(--ww-ink);
  background: transparent;
  color: var(--ww-ink);
  font-family: var(--ww-font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.ww-search-clear:hover {
  background: var(--ww-ink);
  color: #ffffff;
}

mark.ww-highlight {
  background-color: #fde3a7;
  color: #111111;
  padding: 0 2px;
  border-radius: 2px;
}

.ww-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.ww-modal-backdrop[hidden] {
  display: none;
}

.ww-modal {
  background: var(--ww-bg);
  border: 1px solid var(--ww-border);
  max-width: 560px;
  width: 100%;
  padding: 28px 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  position: relative;
}

.ww-modal-kicker {
  margin: 0 0 6px;
  font-family: var(--ww-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ww-highlight);
}

.ww-modal-title {
  margin: 0 0 12px;
  font-family: var(--ww-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ww-modal-body {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #2b2b2b;
}

.ww-modal-list {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #2b2b2b;
}

.ww-modal-list li {
  margin-bottom: 6px;
}

.ww-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ww-modal-btn {
  border: 1px solid var(--ww-ink);
  background: var(--ww-ink);
  color: #ffffff;
  font-family: var(--ww-font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
}

.ww-modal-btn--ghost {
  background: transparent;
  color: var(--ww-ink);
}

.ww-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ww-muted);
  padding: 4px 8px;
}

.ww-modal-close:hover {
  color: var(--ww-ink);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .Header-inner--bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .Header-inner--bottom [data-nc-container="bottom-center"] {
    order: -1;
  }

  .Header-inner--bottom [data-nc-container="bottom-left"] {
    justify-self: center;
  }

  .Header-inner--bottom [data-nc-container="bottom-right"] {
    display: none;
  }

  .Header-nav-inner {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .Header {
    display: none;
  }

  .Mobile {
    display: block;
  }

  .Mobile-bar--top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ww-border);
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 10px 16px;
  }

  .Mobile-bar--top [data-nc-container="top-left"] {
    grid-column: 2;
    justify-self: center;
  }

  .Mobile-bar-branding-logo {
    width: 170px;
    height: auto;
  }

  .Mobile-bar--bottom {
    position: fixed;
    top: 0;
    left: 12px;
    right: 12px;
    height: 88px;
    z-index: 65;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .Mobile-bar--bottom [data-nc-container="bottom-left"] {
    order: 1;
  }

  .Mobile-bar--bottom [data-nc-container="bottom-center"] {
    order: 2;
  }

  .Mobile-bar--bottom [data-nc-container="bottom-right"] {
    order: 3;
  }

  .Mobile-bar-menu,
  .Mobile-bar-search {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ww-ink);
    padding: 0;
  }

  /* Match tweak-mobile-bar-menu-icon-vertical-dots */
  .Mobile-bar-menu .Icon {
    display: none;
    width: 20px;
    height: 20px;
  }

  .Mobile-bar-menu .Icon--dots-vertical {
    display: block;
  }

  .Mobile-bar-search .Icon--search {
    width: 19px;
    height: 19px;
  }

  .Site-inner {
    padding-top: 100px;
  }

  .Content-outer {
    padding: 18px 20px 36px;
  }

  .sqs-row {
    margin-left: 0;
    margin-right: 0;
  }

  .sqs-row > .col {
    padding-left: 0;
    padding-right: 0;
  }

  .sqs-col-5,
  .sqs-col-7,
  .sqs-col-6 {
    width: 100%;
  }

  .sqs-col-5 {
    margin-bottom: 28px;
  }

  .ww-program-grid {
    grid-template-columns: 1fr;
  }

  .ww-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
