.tmd-header, .tmd-footer {
  --content-width: var(--tmd-max);
  background: var(--tmd-ivory);
}

.tmd-header .tmd-announcement {
  padding: 5px var(--tmd-inset);
  background: var(--tmd-button);
  text-align: center;
}
.tmd-header .tmd-announcement .elementor-heading-title {
  color: var(--tmd-white);
  font: 600 .72rem/1.4 var(--tmd-body);
  letter-spacing: .22em;
}

.tmd-header .tmd-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(100% - 2 * var(--tmd-inset), var(--tmd-max));
  margin-inline: auto;
  position: relative;
  padding-block: 10px 7px;
}
.tmd-header .tmd-masthead > .tmd-wordmark { grid-column: 2; }
.tmd-header .tmd-masthead .elementor-heading-title,
.tmd-footer .tmd-footer-brand .elementor-heading-title {
  font-size: clamp(1.45rem, 4.2vw, 2.9rem);
  letter-spacing: .06em;
  text-align: center;
}
:is(.tmd-header, .tmd-footer) .tmd-wordmark .elementor-heading-title a { color: var(--tmd-ink); }
.tmd-wordmark .tmd-brand-subline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8em;
  margin-top: 3px;
  font: 600 .41em/1 var(--tmd-display);
  letter-spacing: .42em;
  padding-left: .42em;
}
.tmd-wordmark .tmd-brand-subline::before,
.tmd-wordmark .tmd-brand-subline::after {
  content: '';
  display: block;
  width: 3.1em;
  height: 1px;
  background: var(--tmd-gold);
}

.tmd-header .tmd-tools {
  grid-column: 3;
  justify-self: end;
  width: max-content;
  max-width: 100%;
}
.tmd-header :is(.tmd-search summary, .tmd-account a, .elementor-menu-cart__toggle_button) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--tmd-ink);
  background: transparent;
  border: 0;
  padding: 0;
}
.tmd-header .tmd-account .elementor-icon { font-size: 22px; line-height: 1; }
.tmd-header .tmd-account .elementor-icon svg { width: 22px; height: 22px; }
.tmd-header .tmd-search summary svg { width: 25px; height: 25px; }
.tmd-header .elementor-widget-woocommerce-menu-cart {
  --toggle-icon-size: 24px;
  --toggle-button-icon-color: var(--tmd-ink);
  --items-indicator-background-color: var(--tmd-button);
}
.tmd-header .elementor-menu-cart__toggle .elementor-button-icon { line-height: 1; }
.tmd-header .tmd-search summary { cursor: pointer; list-style: none; }
.tmd-header .tmd-search summary::-webkit-details-marker { display: none; }
.tmd-header .tmd-search form {
  position: absolute;
  z-index: 12;
  inset: 100% 0 auto auto;
  width: min(350px, 85vw);
  display: flex;
  padding: 12px;
  gap: 8px;
  background: var(--tmd-ivory);
  border: 1px solid var(--tmd-border);
}
.tmd-header .tmd-search input[type='search'] { min-width: 0; padding: 8px; border-radius: 0; border-color: var(--tmd-muted); }
.tmd-header .tmd-search button {
  border: 0;
  border-radius: 0;
  background: var(--tmd-button);
  color: var(--tmd-white);
  padding: 8px 12px;
}
.tmd-header .tmd-primary-nav {
  width: min(100% - 2 * var(--tmd-inset), var(--tmd-max));
  margin-inline: auto;
  border-bottom: 1px solid var(--tmd-gold);
}
.tmd-header .tmd-primary-nav .elementor-item {
  padding: 10px clamp(8px, 1.6vw, 23px);
  min-height: 44px;
  font: 600 .77rem/1.3 var(--tmd-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tmd-ink);
}
.tmd-header .tmd-primary-nav .elementor-nav-menu--dropdown { background: var(--tmd-ivory); }
.tmd-header .tmd-primary-nav .elementor-menu-toggle { min-width: 44px; min-height: 44px; background: transparent; color: var(--tmd-ink); }
.tmd-header .tmd-primary-nav .elementor-item:hover,
.tmd-header .tmd-primary-nav .elementor-item:focus-visible { color: var(--tmd-button-hover); text-decoration: underline; }

.tmd-footer .tmd-newsletter-layout,
.tmd-footer .tmd-footer-grid,
.tmd-footer .tmd-footer-bottom {
  width: min(100% - 2 * var(--tmd-inset), var(--tmd-max));
  margin-inline: auto;
}
.tmd-footer .tmd-newsletter-layout {
  display: grid;
  grid-template-columns: 1.05fr .85fr 1.2fr;
  align-items: center;
  padding-block: 12px;
  gap: 16px;
}
.tmd-footer .tmd-newsletter-title .elementor-heading-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.tmd-footer .tmd-newsletter-copy { font-size: .8rem; color: var(--tmd-muted); }
.tmd-footer .tmd-newsletter-preview { color: var(--tmd-muted); font-size: .72rem; }
.tmd-footer .elementor-widget-form .elementor-field {
  font-family: var(--tmd-body);
  border: 1px solid var(--tmd-muted);
  border-radius: 0;
  min-height: 44px;
}
.tmd-footer .elementor-widget-form button:disabled { cursor: default; opacity: .78; }

.tmd-footer .tmd-footer-sand { background: var(--tmd-sand); }
.tmd-footer .tmd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .95fr 1.15fr;
  padding-block: 20px;
  gap: 20px;
}
.tmd-footer .tmd-footer-column + .tmd-footer-column {
  border-inline-start: 1px solid var(--tmd-gold);
  padding-inline-start: clamp(12px, 2.7vw, 36px);
}
.tmd-footer .tmd-footer-brand .elementor-heading-title { text-align: start; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: .025em; }
.tmd-footer .tmd-footer-brand .tmd-brand-subline { width: max-content; max-width: 100%; }
.tmd-footer .tmd-footer-label .elementor-heading-title {
  font: 600 .78rem/1.35 var(--tmd-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tmd-footer .tmd-footer-column .elementor-item {
  padding: 4px 0;
  color: var(--tmd-ink);
  font: 400 .84rem/1.28 var(--tmd-body);
}
.tmd-footer .tmd-footer-column .elementor-item:hover,
.tmd-footer .tmd-footer-bottom a:hover { text-decoration: underline; }
.tmd-footer .tmd-footer-brand p,
.tmd-footer .tmd-footer-email { font-size: .84rem; color: var(--tmd-ink); overflow-wrap: anywhere; }
.tmd-footer .tmd-footer-email a { color: var(--tmd-ink); }
.tmd-footer .tmd-footer-bottom {
  padding-block: 8px;
  border-top: 1px solid var(--tmd-gold);
  color: var(--tmd-ink);
  font-size: .75rem;
}
.tmd-footer .tmd-bottom-link .elementor-heading-title { font: inherit; }

@media (max-width: 860px) {
  .tmd-footer .tmd-footer-grid { grid-template-columns: 1fr 1fr; }
  .tmd-footer .tmd-footer-column:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 767px) {
  .tmd-header .tmd-masthead { grid-template-columns: minmax(0, 1fr); padding-block: 12px 5px; }
  .tmd-header .tmd-masthead > :is(.tmd-wordmark, .tmd-tools) { grid-column: 1; }
  .tmd-header .tmd-primary-nav { padding-block: 0 4px; }
  .tmd-header .tmd-tools { justify-self: center; }
  .tmd-header .tmd-search form { inset-inline: 50% auto; transform: translateX(-50%); }
  .tmd-footer .tmd-newsletter-layout { grid-template-columns: 1fr; gap: 7px; padding-block: 20px; }
  .tmd-footer .tmd-footer-bottom { align-items: flex-start; }
}
@media (max-width: 380px) {
  .tmd-footer .tmd-footer-grid { grid-template-columns: 1fr; }
  .tmd-footer .tmd-footer-grid .tmd-footer-column { padding-inline-start: 0; border-inline-start: 0; }
}
.tmd-footer .tmd-policy-links { width: max-content; max-width: 100%; }
.tmd-footer .tmd-footer-email .elementor-heading-title { font: inherit; }
.tmd-footer .tmd-social .elementor-icon { font-size: 19px; color: var(--tmd-ink); }
.tmd-footer .tmd-social a { min-width: 40px; min-height: 40px; display: grid; place-items: center; }
/* The supplied diamond mark accompanies the existing wordmark. */
:is(.tmd-header, .tmd-footer) .tmd-wordmark .elementor-heading-title a,
.tmd-checkout-brand {
  position:relative;
  display:inline-block;
  padding-left:64px;
}
:is(.tmd-header, .tmd-footer) .tmd-wordmark .elementor-heading-title a::before,
.tmd-checkout-brand::before {
  content:'';
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:44px;
  background:url('../images/diamond-mark.png') center / contain no-repeat;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.tmd-footer .tmd-wordmark .elementor-heading-title a { padding-left:46px; }
.tmd-footer .tmd-wordmark .elementor-heading-title a::before { width:38px; height:32px; }
.tmd-checkout-footer .tmd-checkout-brand { padding-left:46px; }
.tmd-checkout-footer .tmd-checkout-brand::before { width:38px; height:32px; }
@media(max-width:767px) {
  .tmd-header .tmd-wordmark .elementor-heading-title a { padding-left:43px; }
  .tmd-header .tmd-wordmark .elementor-heading-title a::before { width:36px; height:30px; }
  .tmd-checkout-header .tmd-checkout-brand { padding-left:43px; }
  .tmd-checkout-header .tmd-checkout-brand::before { width:36px; height:30px; }
}
.tmd-header .tmd-masthead .elementor-heading-title { font-size:clamp(1.3rem,3.8vw,2.55rem); }
