/* === Hide Elementor popups/overlays globally === */

.elementor-popup-modal,
.elementor-location-popup,
.dialog-widget-content,
.dialog-lightbox-widget,
[data-elementor-type="popup"],
[data-elementor-type="popup"] ~ .dialog-widget-content,
style[id^="elementor-post-dynamic-"] {
  display: none;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* === Shared Top Bar Component === */

.cc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cc-bg, #fafcf9);
  height: 79px;
  width: 100%;
}

.cc-topbar__inner {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 var(--cc-gutter, 28px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-bottom: 26px;
}

.cc-topbar__logo {
  justify-self: start;
}

.cc-topbar__logo img {
  height: 30px;
  width: auto;
}

/* Matches the right-hand nav's box model. As an inline element this link
   carried the font's descender space inside its box, so bottom-aligning the
   grid put its text a few pixels above ABOUT/CONTACT. */
.cc-topbar__center {
  justify-self: center;
  display: flex;
  align-items: center;
}

.cc-topbar__center a {
  display: block;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-ink, #1e1e1e);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-topbar__center a:hover {
  color: var(--cc-dark-parchment, #8f7f65);
}

.cc-topbar__nav {
  justify-self: end;
  display: flex;
  gap: 40px;
  align-items: center;
}

.cc-topbar__nav a {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-ink, #1e1e1e);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-topbar__nav a:hover {
  color: var(--cc-dark-parchment, #8f7f65);
}

.cc-topbar__menu {
  margin-left: 40px;
  background: none;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.cc-topbar__menu:hover,
.cc-topbar__menu:focus,
.cc-topbar__menu:active {
  background: none;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.cc-topbar__menu span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cc-ink, #1e1e1e);
  transition: transform 0.3s;
}

.cc-topbar__menu--open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.cc-topbar__menu--open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* === Fullscreen Menu Overlay === */

body.cc-menu-open {
  overflow: hidden;
}

body.cc-menu-open .cc-topbar,
body.cc-contact-open .cc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.cc-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cc-bg, #fafcf9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.cc-menu-overlay--open {
  opacity: 1;
  visibility: visible;
}

.cc-menu-overlay__inner {
  max-width: 1512px;
  margin: 0 auto;
  padding: 140px var(--cc-gutter, 28px) 33px;
  display: grid;
  grid-template-columns: 841fr 595fr;
  gap: 0 20px;
  min-height: 100vh;
}

.cc-menu-overlay__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
}

.cc-menu-overlay__desc {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2, #515151);
  max-width: 502px;
}

.cc-menu-overlay__subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0.5px solid var(--cc-archive, #807f7a);
  padding: 16px 20px;
  max-width: 463px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cc-menu-overlay__subscribe:hover {
  border-color: var(--cc-ink, #1e1e1e);
}

.cc-menu-overlay__subscribe-label {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  /* Declared rather than inherited: this used to pick up whatever line-height
     the page's theme CSS happened to set, so the overlay was 25px per row on
     Transactions and 20.72px on the homepage. */
  line-height: 1.6;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
}

.cc-menu-overlay__subscribe-arrow {
  color: var(--cc-archive, #807f7a);
}

.cc-menu-overlay__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 20px;
  padding-bottom: 0;
  position: relative;
}

.cc-menu-overlay__right::before {
  content: '';
  position: absolute;
  left: 0;
  top: -107px;
  bottom: 0;
  width: 0;
  border-left: 0.5px solid var(--cc-archive, #807f7a);
}

.cc-menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cc-menu-overlay__nav a {
  font-family: var(--cc-font-heading, 'Austin News Deck', serif);
  font-weight: 400;
  font-size: clamp(22px, 5.5vh, 44px);
  line-height: 1.15;
  color: var(--cc-newsprint, #d9d9d9);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-menu-overlay__nav a:hover {
  color: var(--cc-ink, #1e1e1e);
}

.cc-menu-overlay__bottom {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.cc-menu-overlay__social {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cc-menu-overlay__social a {
  font-family: var(--cc-font-heading, 'Austin News Deck', serif);
  font-weight: 400;
  font-size: clamp(14px, 2.6vh, 20px);
  line-height: 1.2;
  color: var(--cc-archive, #807f7a);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-menu-overlay__social a:hover {
  color: var(--cc-ink, #1e1e1e);
}

.cc-menu-overlay__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* A legal item renders as a <span> when its page does not exist yet, so both
   elements are styled identically — only the link gets a hover state. */
.cc-menu-overlay__legal a,
.cc-menu-overlay__legal span {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-menu-overlay__legal a:hover {
  color: var(--cc-ink, #1e1e1e);
}

/* === Topbar Contact Button === */

.cc-topbar__contact {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-ink, #1e1e1e);
  cursor: pointer;
  transition: color 0.2s;
}

.cc-topbar__contact:hover,
.cc-topbar__contact:focus,
.cc-topbar__contact:active {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  color: var(--cc-dark-parchment, #8f7f65);
}

/* === Contact Slide-Out Panel === */

body.cc-contact-open {
  overflow: hidden;
}

.cc-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cc-contact-overlay--open {
  opacity: 1;
  visibility: visible;
}

.cc-contact {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  z-index: 200;
  background: var(--cc-bg, #fafcf9);
  border-left: 0.5px solid var(--cc-archive, #807f7a);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.cc-contact--open {
  transform: translateX(0);
}

.cc-contact__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 24px 40px;
}

/* Equal inset top and right so the cross sits balanced in the corner; the
   padding also gives it a proper tap target rather than just the glyph. */
.cc-contact__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 201;
  background: none;
  border: none;
  border-radius: 0;
  padding: 8px;
  box-shadow: none;
  cursor: pointer;
  line-height: 0;
  color: var(--cc-ink, #1e1e1e);
}

.cc-contact__close:hover,
.cc-contact__close:focus,
.cc-contact__close:active {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  color: var(--cc-ink, #1e1e1e);
}

.cc-contact__image {
  width: 100%;
  height: 344px;
  overflow: hidden;
}

.cc-contact__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heading and intro centre with the form fields below them — the panel used to
   mix a left-aligned header against centred inputs. */
.cc-contact__title {
  font-family: var(--cc-font-heading, 'Austin News Deck', serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--cc-ink, #1e1e1e);
  margin-top: 19px;
  text-align: center;
}

.cc-contact__info {
  margin-top: 16px;
  text-align: center;
}

.cc-contact__info-lead {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  color: var(--cc-ink, #1e1e1e);
}

.cc-contact__info-phone {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  color: var(--cc-archive, #807f7a);
}

.cc-contact__form {
  margin-top: 34px;
}

.cc-contact__field {
  border-bottom: 0.5px solid var(--cc-archive, #807f7a);
}

.cc-contact__field input,
.cc-contact__field textarea {
  display: block;
  width: 100%;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--cc-ink, #1e1e1e);
  /* Left, matching the subscribe panel's fields. */
  text-align: left;
  padding: 29px 0 18px;
  resize: none;
  overflow: hidden;
}

.cc-contact__field input:focus,
.cc-contact__field textarea:focus {
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.cc-contact__field input::placeholder,
.cc-contact__field textarea::placeholder {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  opacity: 1;
}

/* Select dropdown — match text inputs */
.cc-contact__field select {
  display: block;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  text-align: left;
  text-align-last: left;
  padding: 29px 24px 18px 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23807f7a' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.cc-contact__field select:has(option:checked:not([disabled])) {
  color: var(--cc-ink, #1e1e1e);
}

/* Radio / checkbox blocks — no border-bottom, custom layout */
.cc-contact__field--radio,
.cc-contact__field--checkboxes {
  border-bottom: none;
  padding: 0 0 18px;
  margin-top: 40px;
  text-align: left;
}

.cc-contact__field-label {
  display: block;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  margin-bottom: 20px;
  text-align: left;
}

.cc-contact__radio-group {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
}

.cc-contact__radio,
.cc-contact__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--cc-ink, #1e1e1e);
  cursor: pointer;
}

.cc-contact__radio input,
.cc-contact__checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--cc-dark-parchment, #3d3d3a);
  cursor: pointer;
}

.cc-contact__checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.cc-contact__conditional {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cc-contact__conditional[hidden] {
  display: none;
}

.cc-contact__conditional .cc-contact__field {
  border-bottom: 0.5px solid var(--cc-archive, #807f7a);
}

.cc-contact__conditional .cc-contact__field--checkboxes {
  border-bottom: none;
}

.cc-contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: 0.5px solid var(--cc-archive, #807f7a);
  background: var(--cc-bg, #fafcf9);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: 56px;
}

.cc-contact__submit:hover {
  background: var(--cc-dark-parchment, #8f7f65);
  color: var(--cc-bg, #fafcf9);
}

.cc-contact__submit:focus,
.cc-contact__submit:active {
  outline: none;
  background: var(--cc-bg, #fafcf9);
  color: var(--cc-archive, #807f7a);
  box-shadow: none;
  border: 0.5px solid var(--cc-archive, #807f7a);
}

.cc-contact__success p {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  color: var(--cc-ink, #1e1e1e);
  text-align: center;
  margin-top: 40px;
}

/* ── SUBSCRIBE PANEL ── */

body.cc-subscribe-open {
  overflow: hidden;
}

.cc-subscribe-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cc-subscribe-overlay--open {
  opacity: 1;
  visibility: visible;
}

.cc-subscribe {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  z-index: 200;
  background: var(--cc-ink, #1e1e1e);
  border-left: 0.5px solid var(--cc-archive, #807f7a);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.cc-subscribe--open {
  transform: translateX(0);
}

.cc-subscribe__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 120px 48px 40px;
}

.cc-subscribe__close {
  position: absolute;
  top: 34px;
  right: 19px;
  z-index: 201;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  color: var(--cc-archive, #807f7a);
}

.cc-subscribe__close:hover,
.cc-subscribe__close:focus,
.cc-subscribe__close:active {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  color: var(--cc-bg, #fafcf9);
}

.cc-subscribe__title {
  font-family: var(--cc-font-heading, 'Austin News Deck', serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--cc-archive, #807f7a);
  margin-bottom: 60px;
}

.cc-subscribe__form {
  margin-top: 0;
}

.cc-subscribe__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.cc-subscribe__field {
  border-bottom: 0.5px solid var(--cc-archive, #807f7a);
}

.cc-subscribe__field input {
  display: block;
  width: 100%;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--cc-bg, #fafcf9);
  padding: 29px 0 18px;
  margin: 0;
  resize: none;
  -webkit-appearance: none;
}

.cc-subscribe__field input:focus {
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.cc-subscribe__field input::placeholder {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive, #807f7a);
  opacity: 1;
}

.cc-subscribe__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-bg, #fafcf9);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  margin-top: 40px;
  padding: 0;
}

.cc-subscribe__submit:hover {
  color: var(--cc-dark-parchment, #8f7f65);
  background: none;
}

.cc-subscribe__submit:focus,
.cc-subscribe__submit:active {
  outline: none;
  background: none;
  color: var(--cc-bg, #fafcf9);
  box-shadow: none;
  border: none;
}

.cc-subscribe__success p {
  font-family: var(--cc-font-body, 'Graphik', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  color: var(--cc-archive, #807f7a);
  margin-top: 40px;
}

/* === Tablet Breakpoint === */
@media (max-width: 767px) {
  .cc-topbar__center {
    display: none;
  }

  .cc-topbar__nav {
    gap: 24px;
  }

  .cc-topbar__menu {
    margin-left: 24px;
  }
}

/* === Mobile Breakpoint === */
@media (max-width: 768px) {
  .cc-topbar {
    height: 60px;
  }

  .cc-topbar__inner {
    padding-bottom: 10px;
    grid-template-columns: 1fr auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cc-topbar__center {
    display: none;
  }

  .cc-topbar__logo img {
    height: 18px;
    max-width: 180px;
  }

  .cc-topbar__nav {
    justify-self: end;
    gap: 0;
  }

  .cc-topbar__nav a,
  .cc-topbar__contact {
    display: none;
  }

  .cc-topbar__menu {
    margin-left: 12px;
  }

  .cc-contact {
    width: 100%;
  }

  .cc-subscribe {
    width: 100%;
  }

  .cc-subscribe__scroll {
    padding: 80px 24px 40px;
  }

  .cc-subscribe__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cc-menu-overlay__inner {
    padding: 70px 20px 24px;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .cc-menu-overlay__left {
    display: none;
  }

  .cc-menu-overlay__right {
    padding-left: 0;
    justify-content: flex-start;
    gap: 28px;
  }

  .cc-menu-overlay__right::before {
    display: none;
  }

  .cc-menu-overlay__nav a {
    font-size: 28px;
    line-height: 1.5;
  }

  .cc-menu-overlay__bottom {
    gap: 20px;
  }

  .cc-menu-overlay__social {
    flex-direction: row;
    gap: 20px;
  }

  .cc-menu-overlay__social a {
    font-size: 16px;
  }
}

