/* Tehachapi Journal child theme — mountain-town newspaper look */

:root {
  --tj-ink: #14241c;
  --tj-ink-soft: #2a3b32;
  --tj-paper: #f6f1e4;
  --tj-paper-2: #efe8d6;
  --tj-cream: #fffbf3;
  --tj-forest: #1b3329;
  --tj-forest-2: #24483a;
  --tj-gold: #1b3329; /* forest, not mustard */
  --tj-canyon: #8a3b16;
  --tj-rule: #c9bfa6;
  --tj-max: 1160px;
  --contrast: #14241c;
  --contrast-2: #2a3b32;
  --contrast-3: #7a6f5c;
  --base: #efe8d6;
  --base-2: #f6f1e4;
  --base-3: #fffbf3;
  --accent: #1b3329;
}

html {
  font-size: 20px;
}

body {
  background: var(--tj-paper);
  color: var(--tj-ink);
  font-family: "Source Sans Pro", "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .entry-title, .site-branding {
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--tj-ink);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

a {
  color: var(--tj-forest);
}

a:hover,
a:focus {
  color: var(--tj-canyon);
}

/* ---------- Utility bar + masthead ---------- */
.tj-util {
  background: var(--tj-forest);
  color: var(--tj-paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tj-util-inner,
.tj-wrap,
.tj-footer-grid {
  width: min(var(--tj-max), calc(100% - 2rem));
  margin-inline: auto;
}

.tj-util-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.tj-util a {
  color: var(--tj-paper);
  text-decoration: none;
  font-weight: 700;
}

.tj-util a:hover,
.tj-util a:focus {
  color: var(--tj-cream);
  text-decoration: underline;
}

.site-header {
  background: var(--tj-paper) !important;
}

.inside-header {
  flex-wrap: wrap;
  justify-content: center !important;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 20px 0.4rem !important;
  max-width: var(--tj-max);
}

.site-logo {
  margin: 0 auto;
  text-align: center;
}

.site-header .header-image,
.site-header .is-logo-image {
  width: min(320px, 78vw) !important;
  height: auto !important;
  max-width: 100%;
}

.tj-masthead-extra {
  text-align: center;
  width: 100%;
  margin: 0.15rem 0 0.75rem;
}

.tj-tagline {
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--tj-ink-soft);
  margin: 0 0 0.7rem;
}

.tj-identity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1.1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tj-forest);
  border-top: 2px solid var(--tj-forest);
  border-bottom: 1px solid var(--tj-forest);
  padding: 0.55rem 0;
  margin: 0;
}

.tj-identity .tj-dot {
  color: var(--tj-gold);
  letter-spacing: 0;
}

/* Navigation as a full-width forest bar under the masthead */
.site-header .main-navigation,
#site-navigation.main-navigation,
.main-navigation,
.main-navigation ul ul {
  background-color: var(--tj-forest) !important;
  margin-left: 0 !important;
}

#site-navigation.main-navigation {
  width: 100%;
}

.main-navigation .inside-navigation {
  max-width: var(--tj-max);
  justify-content: center;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-item a,
.main-navigation .menu-bar-item a:hover {
  color: var(--tj-paper) !important;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.main-navigation .main-nav ul li a {
  padding: 0.85rem 0.95rem;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  background: var(--tj-forest-2) !important;
  color: #fff6d8 !important;
}

.main-navigation ul ul li a {
  color: var(--tj-paper) !important;
}

.site-header a {
  color: var(--tj-forest);
}

.menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
  background: transparent !important;
  color: var(--tj-paper) !important;
}

.mobile-menu-control-wrapper {
  background: var(--tj-forest) !important;
}

/* ---------- Content containers ---------- */
body .site-content {
  background: transparent;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .related-posts,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.separate-containers .inside-page-header,
.inside-article {
  background-color: var(--tj-cream);
}

.separate-containers .widget,
.sidebar .widget {
  background-color: var(--tj-cream);
}

body {
  background-color: var(--tj-paper);
}

/* ---------- Magazine homepage ---------- */
.home .site-content,
.home #primary,
.home .content-area,
.home .inside-article {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.home .content-area {
  width: 100%;
  margin: 0;
}

.tj-home {
  padding: 1.75rem 0 3rem;
}

.tj-kicker {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tj-canyon);
  margin: 0 0 0.4rem;
}

.tj-meta {
  font-size: 0.92rem;
  color: var(--tj-ink-soft);
  margin: 0.35rem 0 0;
}

.tj-dek {
  margin: 0.4rem 0 0;
  color: var(--tj-ink);
  font-size: 1.08rem;
  max-width: 42rem;
}

.tj-read {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tj-forest);
  text-decoration: none;
  border-bottom: 2px solid var(--tj-gold);
  padding-bottom: 0.1rem;
}

.tj-read:hover,
.tj-read:focus {
  color: var(--tj-canyon);
  border-color: var(--tj-canyon);
}

.tj-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--tj-forest);
  margin-bottom: 2rem;
}

.tj-hero img,
.tj-card img,
.tj-cat-feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: var(--tj-forest);
  height: auto;
}

.tj-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 900;
  margin: 0 0 0.4em;
}

.tj-hero h1 a {
  color: inherit;
  text-decoration: none;
}

.tj-hero .tj-dek {
  font-size: 1.18rem;
  line-height: 1.55;
}

.tj-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}

.tj-card,
.tj-cat-feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.tj-card img {
  margin-bottom: 0.75rem;
}

.tj-card h3,
.tj-cat-feature h3 {
  font-size: 1.42rem;
  margin: 0 0 0.25rem;
}

.tj-card:hover h3,
.tj-cat-feature:hover h3,
.tj-cat-list a:hover h4 {
  color: var(--tj-canyon);
}

.tj-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--tj-forest);
  margin: 0 0 1.15rem;
  padding-bottom: 0.3rem;
}

.tj-section-head h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0;
}

.tj-section-head a {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--tj-forest);
}

.tj-section-head a:hover {
  text-decoration: underline;
}

.tj-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem 2.2rem;
}

.tj-cat-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.tj-cat-feature img {
  aspect-ratio: 1 / 1;
}

.tj-cat-feature h3 {
  font-size: 1.35rem;
}

.tj-cat-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tj-cat-list li {
  border-top: 1px solid var(--tj-rule);
  padding: 0.7rem 0;
}

.tj-cat-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tj-cat-list h4 {
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}

.tj-thumb-fallback {
  background: var(--tj-paper-2);
  min-height: 8rem;
}

.tj-shop-strip {
  margin: 2.8rem 0 0;
  background: var(--tj-forest);
  color: var(--tj-paper);
  padding: 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.2rem;
  align-items: center;
}

.tj-shop-strip h2 {
  color: var(--tj-paper);
  font-size: 1.7rem;
  margin: 0 0 0.25rem;
}

.tj-shop-strip p {
  margin: 0;
  font-size: 1.05rem;
  color: #e8e0cc;
}

.tj-btn {
  display: inline-block;
  background: var(--tj-forest);
  color: var(--tj-cream) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  min-height: 48px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.tj-btn:hover,
.tj-btn:focus {
  background: var(--tj-forest-2);
  color: #fff !important;
}

/* ---------- Footer ---------- */
.site-footer,
.site-info {
  background: #101c17 !important;
  color: #e8e0cc;
}

.tj-footer-extra {
  background: #101c17;
  color: #e8e0cc;
  padding: 2.2rem 0 0.4rem;
  font-size: 1.05rem;
}

.tj-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.tj-footer-brand,
.tj-footer-heading {
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  color: var(--tj-paper);
  margin: 0 0 0.6rem;
}

.tj-footer-brand {
  font-size: 1.55rem;
  font-weight: 900;
}

.tj-footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
}

.tj-footer-extra ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tj-footer-extra li {
  margin: 0.35rem 0;
}

.tj-footer-extra a,
.site-info a {
  color: #e8e0cc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tj-footer-extra a:hover,
.site-info a:hover {
  color: var(--tj-cream);
}

.site-info .inside-site-info,
.copyright-bar {
  color: #c9bfa6;
}

/* ---------- Inner pages: readable type, keep plugin layouts ---------- */
.single .entry-content,
.page .entry-content,
.archive .entry-summary {
  font-size: 1.08rem;
  line-height: 1.7;
}

.single .entry-title,
.page .entry-title,
.archive .entry-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
}

/* Woo / directory / travel pages: don't force the homepage grid onto them */
.woocommerce img,
.directorist-content-active img,
.wp-travel-itinerary-item img {
  max-width: 100%;
  height: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  html {
    font-size: 19px;
  }

  .tj-hero,
  .tj-secondary,
  .tj-cat-grid,
  .tj-cat-feature,
  .tj-shop-strip,
  .tj-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .header-image,
  .site-header .is-logo-image {
    width: min(230px, 64vw) !important;
  }

  .tj-tagline {
    font-size: 1.02rem;
  }

  .tj-identity {
    gap: 0.2rem 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.15rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .tj-util-inner {
    justify-content: center;
    text-align: center;
    padding: 0.4rem 0;
    gap: 0.35rem 0.8rem;
  }

  .tj-hero h1 {
    font-size: 2rem;
  }

  .tj-cat-feature img {
    aspect-ratio: 16 / 10;
  }

  .tj-shop-strip .tj-btn {
    justify-self: start;
  }

  .main-navigation .main-nav ul li a {
    padding: 0.7rem 0.8rem;
  }
}


/* Keep the forest nav on one row (menu + My Account + search) */
@media (min-width: 861px) {
  .main-navigation .inside-navigation,
  #site-navigation .inside-navigation {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0.15rem 0.35rem;
  }
  .main-navigation .main-nav {
    width: auto !important;
    flex: 0 1 auto;
  }
  .main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: nowrap;
  }
  .main-navigation .menu-bar-items {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    width: auto !important;
    margin: 0;
  }
  .main-navigation .menu-bar-item {
    width: auto !important;
  }
}

/* Footer: copyright under the extra columns, not beside them */
.site-footer .inside-site-info,
.site-info .inside-site-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  max-width: none;
  width: 100%;
}
.tj-footer-extra {
  width: 100%;
  order: -1;
}
.site-info .copyright-bar,
.site-info .footer-bar {
  width: 100%;
  text-align: center;
  margin: 0;
}
.site-info .copyright-bar {
  padding: 1rem 1rem 1.4rem;
  border-top: 1px solid #3a5348;
}

/* ---------- Sticky header (v1.0.3) ---------- */
:root {
  --tj-sticky-h: 56px;
}

/* Hide the close (X) glyph packed into GP search/menu icons unless the control is open. */
.icon-search svg:nth-child(2),
.icon-menu-bars svg:nth-child(2) {
  display: none !important;
}
.menu-toggle.toggled .icon-menu-bars svg:nth-child(1),
.menu-toggle[aria-expanded="true"] .icon-menu-bars svg:nth-child(1) {
  display: none !important;
}
.menu-toggle.toggled .icon-menu-bars svg:nth-child(2),
.menu-toggle[aria-expanded="true"] .icon-menu-bars svg:nth-child(2) {
  display: block !important;
}

.tj-sticky {
  display: none;
}

.tj-nav-placeholder {
  display: none;
  width: 100%;
}

@media (max-width: 768px) {
  .tj-sticky {
    display: block;
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 10020;
    background: var(--tj-forest);
    color: var(--tj-paper);
    min-height: var(--tj-sticky-h);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  }

  .tj-util {
    display: none !important;
  }

  .tj-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-height: var(--tj-sticky-h);
    padding: 0 0.3rem 0 0.65rem;
    width: 100%;
  }

  .tj-sticky-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-width: 44px;
    min-height: 44px;
    margin-right: auto;
    text-decoration: none !important;
    overflow: visible;
    color: var(--tj-cream) !important;
    flex: 0 1 auto;
  }

  .tj-sticky-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    flex: 0 0 auto;
    background: transparent;
  }

  .tj-sticky-wordmark {
    display: inline;
    font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    word-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tj-cream);
    white-space: nowrap;
    line-height: 1;
  }

  .tj-sticky-brand:hover .tj-sticky-logo,
  .tj-sticky-brand:focus .tj-sticky-logo {
    outline: 2px solid var(--tj-cream);
    outline-offset: 1px;
  }

  .tj-sticky-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .tj-sticky-actions .menu-bar-items {
    display: flex !important;
    align-items: center;
    width: auto !important;
    margin: 0;
  }

  .tj-sticky-actions .menu-bar-item {
    width: auto !important;
  }

  .tj-sticky-actions .menu-toggle,
  .tj-sticky-actions .menu-bar-item a {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--tj-paper) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    float: none !important;
  }

  .tj-sticky-actions .gp-icon,
  .tj-sticky-actions .gp-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  /* Hide the old centered search/hamburger block under the identity rule. */
  #mobile-menu-control-wrapper,
  .mobile-menu-control-wrapper {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Keep the masthead stacked now that the inline toggle is gone from it. */
  .has-inline-mobile-toggle .inside-header {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }

  /* Utility bar would stack a second green strip under the sticky bar. */
  .tj-util {
    display: none;
  }

  /* Collapse the in-flow nav so a closed/open menu does not leave a green hole in the masthead. */
  #site-navigation.main-navigation,
  #site-navigation {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    flex-basis: auto !important;
  }

  #site-navigation .inside-navigation > .menu-toggle,
  #site-navigation > .menu-toggle,
  #site-navigation .inside-navigation > .menu-bar-items {
    display: none !important;
  }

  #site-navigation:not(.toggled) .main-nav {
    display: none !important;
  }

  #site-navigation.toggled .main-nav,
  #site-navigation.toggled .main-nav > ul {
    display: block !important;
  }

  #site-navigation .main-nav {
    position: fixed;
    top: calc(var(--tj-sticky-h) + var(--wp-admin--admin-bar--height, 0px));
    left: 0;
    right: 0;
    z-index: 10010;
    width: 100%;
    background: var(--tj-forest) !important;
    max-height: calc(100vh - var(--tj-sticky-h) - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  #site-navigation .main-nav > ul {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0.25rem 0 0.75rem;
  }

  #site-navigation .main-nav ul li {
    width: 100% !important;
    float: none !important;
    display: block !important;
  }

  #site-navigation .main-nav ul li a {
    font-size: 1.2rem !important;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.9rem 1.15rem !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    color: var(--tj-paper) !important;
  }

  #site-navigation .main-nav ul li a:hover,
  #site-navigation .main-nav ul li a:focus,
  #site-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: var(--tj-forest-2) !important;
    color: #fff6d8 !important;
  }

  #site-navigation .main-nav ul ul {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
    box-shadow: none !important;
    background: var(--tj-forest-2) !important;
    display: none;
  }

  #site-navigation .main-nav ul li.toggled-on > ul,
  #site-navigation .main-nav ul li.sfHover > ul,
  #site-navigation .main-nav ul .toggled-on > ul {
    display: block !important;
  }

  #site-navigation .main-nav ul ul li a {
    padding-left: 1.75rem !important;
    font-size: 1.05rem !important;
  }

  #site-navigation .dropdown-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

@media (min-width: 769px) {
  .tj-sticky {
    display: none !important;
  }

  .tj-nav-placeholder:not([hidden]) {
    display: block;
  }

  #site-navigation.main-navigation,
  #site-navigation {
    /* Break out of the padded, max-width header so the forest bar is edge-to-edge. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
  }

  #site-navigation.tj-nav-fixed {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none;
    z-index: 10020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }

  /* Keep labels on one line so the sticky nav stays a slim bar.
     Use the full viewport width so Search is not clipped off the right edge. */
  #site-navigation .inside-navigation,
  #site-navigation .inside-navigation.grid-container {
    max-width: none !important;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 0;
  }
  #site-navigation .main-nav ul li a,
  #site-navigation .menu-bar-item a {
    white-space: nowrap !important;
  }
  #site-navigation .main-nav > ul > li > a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.15rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  #site-navigation .main-nav > ul > li > a .dropdown-menu-toggle {
    display: inline-flex !important;
    position: static !important;
    float: none !important;
    padding: 0 0 0 0.15rem !important;
  }
}

/* ---------- Magazine front page + Add Your Business CTA (v1.1.0) ---------- */

/* Header Add Listing button — cream on the forest bar, not gold */
.tj-add-listing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-cream);
  color: var(--tj-forest) !important;
  border: 2px solid var(--tj-cream);
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 0.85rem;
  line-height: 1.1;
  box-shadow: none;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.tj-add-listing:hover,
.tj-add-listing:focus {
  background: #fff;
  color: var(--tj-forest) !important;
  border-color: #fff;
}
.tj-add-listing-short {
  display: none;
}
.tj-add-listing-dock {
  display: none;
}

@media (max-width: 768px) {
  .tj-add-listing--desktop {
    display: none !important;
  }
  #site-navigation .tj-add-listing {
    display: none !important;
  }
  .tj-sticky .tj-add-listing--mobile {
    order: 0;
    margin: 0 0.15rem 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0 0.5rem;
    letter-spacing: 0;
    min-height: 36px;
    flex: 0 0 auto;
  }
  /* At 360/390 the short pill crowds the left wordmark; rely on the band below. */
  @media (max-width: 429px) {
    .tj-sticky .tj-add-listing--mobile {
      display: none !important;
    }
  }
  /* "Add Your Business" truncates the wordmark at 390px; use the short label on all small screens. */
  .tj-add-listing--mobile .tj-add-listing-long {
    display: none;
  }
  .tj-add-listing--mobile .tj-add-listing-short {
    display: inline;
  }
}

@media (min-width: 769px) {
  .tj-add-listing--mobile {
    display: none !important;
  }
  #site-navigation .inside-navigation,
  #site-navigation .inside-navigation.grid-container {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    padding: 0.35rem 1rem;
    gap: 0.15rem 0.25rem;
  }
  #site-navigation .tj-add-listing--desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0 0 0 0.4rem;
    order: 20;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.85rem;
    min-height: 44px;
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1280px) {
  #site-navigation .tj-add-listing--desktop {
    font-size: 17px;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  #site-navigation .tj-add-listing--desktop .tj-add-listing-long {
    display: none;
  }
  #site-navigation .tj-add-listing--desktop .tj-add-listing-short {
    display: inline;
  }
  #site-navigation .main-nav > ul > li > a {
    padding-left: 0.32rem;
    padding-right: 0.32rem;
  }
}

/* Homepage CTA band — forest with cream type, not gold */
.tj-list-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  background: var(--tj-forest);
  color: var(--tj-cream);
  padding: 1.05rem 1.3rem;
  margin: 0 0 1.75rem;
  border: 2px solid var(--tj-forest-2);
}
.tj-list-cta-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tj-paper);
}
.tj-list-cta-title {
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--tj-cream);
}
.tj-list-cta .tj-btn {
  background: var(--tj-cream);
  color: var(--tj-forest) !important;
  border: 2px solid var(--tj-cream);
  font-weight: 700;
}
.tj-list-cta .tj-btn:hover,
.tj-list-cta .tj-btn:focus {
  background: #fff;
  color: var(--tj-forest) !important;
  border-color: #fff;
}

/* Directory spotlight Add Your Business — cream with forest border, not gold */
.tj-directory-actions a.tj-btn:not(.tj-btn-forest) {
  background: var(--tj-cream);
  color: var(--tj-forest) !important;
  border: 2px solid var(--tj-forest);
}
.tj-directory-actions a.tj-btn:not(.tj-btn-forest):hover,
.tj-directory-actions a.tj-btn:not(.tj-btn-forest):focus {
  background: #fff;
  color: var(--tj-forest) !important;
  border-color: var(--tj-forest);
}

/* Top stories: lead + stacked secondaries */
.tj-top {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem 1.75rem;
  align-items: stretch;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--tj-forest);
  margin-bottom: 2.1rem;
}
.tj-lead,
.tj-hero.tj-lead {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
  grid-template-columns: none;
  align-items: stretch;
}
.tj-lead-image img,
.tj-lead .tj-thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  height: auto;
  background: var(--tj-forest);
}
.tj-lead h1 {
  font-size: clamp(2.05rem, 3.8vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 0.3em;
  line-height: 1.12;
}
.tj-lead h1 a {
  color: inherit;
  text-decoration: none;
}
.tj-lead h1 a:hover,
.tj-lead h1 a:focus {
  color: var(--tj-canyon);
}
.tj-top-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--tj-rule);
  padding-left: 1.35rem;
}
.tj-side-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tj-rule);
}
.tj-side-card:first-child {
  padding-top: 0;
}
.tj-side-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tj-side-card img,
.tj-side-card .tj-thumb-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  height: auto;
  background: var(--tj-cream);
}
.tj-side-card h2 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 0.2rem;
}
.tj-side-card:hover h2,
.tj-side-card:focus h2 {
  color: var(--tj-canyon);
}
.tj-side-card .tj-dek {
  font-size: 0.98rem;
  margin-top: 0.2rem;
  max-width: none;
}

/* Latest news + things-to-do rail */
.tj-mid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.75rem 2rem;
  margin: 0 0 2.4rem;
}
.tj-latest-list,
.tj-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tj-latest-list li,
.tj-rail-list li {
  border-top: 1px solid var(--tj-rule);
}
.tj-latest-list a,
.tj-rail-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0;
  min-height: 44px;
}
.tj-latest-list h3,
.tj-rail-list h3 {
  font-size: 1.28rem;
  margin: 0 0 0.15rem;
  line-height: 1.25;
}
.tj-latest-list a:hover h3,
.tj-rail-list a:hover h3 {
  color: var(--tj-canyon);
}
.tj-latest-list .tj-kicker {
  margin-bottom: 0.2rem;
}
.tj-rail {
  background: var(--tj-paper-2);
  padding: 1rem 1.15rem 0.4rem;
}

/* Colored section labels */
.tj-section-label {
  display: inline-block;
  color: var(--tj-forest);
  padding-bottom: 0.15rem;
  border-bottom: 4px solid var(--tj-forest);
}
.tj-mag-section--news .tj-section-label { border-bottom-color: var(--tj-forest); color: var(--tj-forest); }
.tj-mag-section--events .tj-section-label,
.tj-rail .tj-section-label { border-bottom-color: var(--tj-gold); color: var(--tj-forest); }
.tj-mag-section--food .tj-section-label { border-bottom-color: var(--tj-canyon); color: var(--tj-canyon); }
.tj-mag-section--living .tj-section-label { border-bottom-color: var(--tj-forest-2); color: var(--tj-forest-2); }
.tj-latest .tj-section-label { border-bottom-color: var(--tj-forest); }

.tj-mag-section {
  margin: 0 0 2.5rem;
}

/* 1-big + 3-small category grid */
.tj-one-plus-three {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.tj-cat-feature {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  grid-template-columns: none;
}
.tj-cat-feature img,
.tj-cat-feature .tj-thumb-fallback {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--tj-cream);
}
.tj-cat-feature h3 {
  font-size: 1.7rem;
  line-height: 1.2;
}
.tj-cat-smalls {
  display: flex;
  flex-direction: column;
}
.tj-small-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.7rem 0;
  border-top: 1px solid var(--tj-rule);
  min-height: 44px;
}
.tj-small-card:first-child {
  padding-top: 0;
  border-top: 0;
}
.tj-small-card img,
.tj-small-card .tj-thumb-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  height: auto;
  background: var(--tj-cream);
}
.tj-small-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0 0 0.2rem;
}
.tj-small-card:hover h3,
.tj-small-card:focus h3,
.tj-cat-feature:hover h3 {
  color: var(--tj-canyon);
}

/* Directory spotlight */
.tj-directory {
  margin: 0 0 2.4rem;
  padding: 1.3rem 1.3rem 1.5rem;
  background: var(--tj-paper-2);
  border-top: 4px solid var(--tj-forest);
}
.tj-dir-search {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
}
.tj-dir-search input[type="search"] {
  flex: 1 1 16rem;
  min-height: 48px;
  font-size: 1.05rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--tj-forest);
  background: #fff;
  color: var(--tj-ink);
  font-family: inherit;
}
.tj-dir-search input[type="search"]:focus {
  outline: 3px solid var(--tj-gold);
  outline-offset: 1px;
}
.tj-btn-forest {
  background: var(--tj-forest) !important;
  color: var(--tj-cream) !important;
}
.tj-btn-forest:hover,
.tj-btn-forest:focus {
  background: var(--tj-forest-2) !important;
  color: #fff !important;
}
.tj-dir-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.tj-dir-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--tj-paper);
  min-height: 44px;
}
.tj-dir-card img,
.tj-dir-card .tj-thumb-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  height: auto;
  background: var(--tj-cream);
}
.tj-dir-card h3 {
  font-size: 1.12rem;
  margin: 0;
  padding: 0.7rem 0.75rem 0.85rem;
  line-height: 1.25;
}
.tj-dir-card:hover h3,
.tj-dir-card:focus h3 {
  color: var(--tj-canyon);
}
.tj-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
}

.tj-home-paged h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

@media (max-width: 860px) {
  .tj-top,
  .tj-mid,
  .tj-one-plus-three,
  .tj-dir-cards {
    grid-template-columns: 1fr;
  }
  .tj-top-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--tj-rule);
    padding-top: 0.4rem;
  }
  .tj-side-card {
    grid-template-columns: 6.25rem 1fr;
  }
  .tj-list-cta {
    padding: 1rem 1.05rem;
  }
  .tj-lead h1 {
    font-size: 2rem;
  }
  .tj-cat-feature h3 {
    font-size: 1.45rem;
  }
  .tj-dir-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tj-dir-cards,
  .tj-side-card {
    grid-template-columns: 1fr;
  }
  .tj-side-card img,
  .tj-side-card .tj-thumb-fallback {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Magazine front page v2 (Discover Tehachapi) ---------- */
.tj-home-v2 {
  background: var(--tj-cream);
  color: var(--tj-ink);
  padding: 0 0 2.5rem;
}

.tj-hero-v2 {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--tj-forest);
  color: var(--tj-cream);
}

.tj-hero-v2-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tj-hero-v2-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 28, 0.25) 0%, rgba(20, 36, 28, 0.72) 100%);
}

.tj-hero-v2-copy {
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.25rem 2.4rem;
  width: min(var(--tj-max), 100%);
  margin: 0 auto;
}

.tj-hero-v2-kicker {
  margin: 0 0 0.55rem;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tj-cream);
}

.tj-hero-v2-copy h1 {
  margin: 0 0 0.45rem;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.tj-hero-v2-dek {
  margin: 0 0 1.2rem;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.35;
  color: var(--tj-cream);
}

.tj-hero-v2-credit {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1.25rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: rgba(255, 251, 243, 0.8);
}

.tj-btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid transparent;
  line-height: 1.1;
}

.tj-btn-v2-forest {
  background: var(--tj-forest);
  color: var(--tj-cream) !important;
  border-color: var(--tj-forest);
  box-shadow: 0 0 0 1px rgba(255, 251, 243, 0.25);
}

.tj-btn-v2-forest:hover,
.tj-btn-v2-forest:focus {
  background: var(--tj-forest-2);
  color: #fff !important;
}

.tj-btn-v2-cream {
  background: var(--tj-cream);
  color: var(--tj-forest) !important;
  border-color: var(--tj-cream);
}

.tj-btn-v2-cream:hover,
.tj-btn-v2-cream:focus {
  background: #fff;
  color: var(--tj-forest) !important;
}

.tj-btn-v2-outline {
  background: transparent;
  color: var(--tj-cream) !important;
  border-color: var(--tj-cream);
}

.tj-btn-v2-outline:hover,
.tj-btn-v2-outline:focus {
  background: var(--tj-cream);
  color: var(--tj-forest) !important;
}

.tj-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1rem 1.15rem 0.25rem;
  width: min(var(--tj-max), 100%);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.tj-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 2px solid var(--tj-forest);
  border-radius: 999px;
  background: #fff;
  color: var(--tj-forest) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tj-chip:hover,
.tj-chip:focus {
  background: var(--tj-forest);
  color: var(--tj-cream) !important;
}

.tj-chip-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.tj-chip-icon--explore {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/><path d='M12 3v18M3 12h18M7 7l10 10M17 7L7 17' stroke='black' stroke-width='1.4' fill='none'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/><path d='M12 3v18M3 12h18M7 7l10 10M17 7L7 17' stroke='black' stroke-width='1.4' fill='none'/></svg>");
}
.tj-chip-icon--food {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2v9a2 2 0 0 0 2 2v9h2V2H9zm8 0c0 3 2 5 2 8v4h-1v8h2V2h-3z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2v9a2 2 0 0 0 2 2v9h2V2H9zm8 0c0 3 2 5 2 8v4h-1v8h2V2h-3z'/></svg>");
}
.tj-chip-icon--events {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm12 8H5v10h14V10z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm12 8H5v10h14V10z'/></svg>");
}
.tj-chip-icon--news {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v14H4V5zm2 2v10h12V7H6zm2 2h8v2H8V9zm0 4h5v2H8v-2z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v14H4V5zm2 2v10h12V7H6zm2 2h8v2H8V9zm0 4h5v2H8v-2z'/></svg>");
}

.tj-around,
.tj-communities {
  padding: 1.6rem 0 0.4rem;
}

.tj-around-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

.tj-around-head h2,
.tj-communities h2 {
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--tj-forest);
  white-space: nowrap;
}

.tj-around-head::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: var(--tj-forest);
  opacity: 0.85;
}

.tj-around-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tj-around-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tj-forest);
  color: inherit;
  text-decoration: none !important;
  min-height: 12rem;
}

.tj-around-card img,
.tj-around-card .tj-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 16 / 10;
  display: block;
  background: var(--tj-forest);
}

.tj-around-card--lead img,
.tj-around-card--lead .tj-thumb-fallback {
  aspect-ratio: 16 / 11;
  min-height: 16rem;
}

.tj-around-card-copy {
  padding: 0.85rem 0.15rem 0.2rem;
}

.tj-around-card--lead .tj-around-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(20, 36, 28, 0) 0%, rgba(20, 36, 28, 0.82) 70%);
  color: #fff;
}

.tj-around-card--lead .tj-kicker {
  color: var(--tj-cream);
}

.tj-around-card--lead h3 {
  color: #fff;
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.15;
}

.tj-around-card--small h3 {
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--tj-ink);
}

.tj-around-card--small .tj-kicker {
  margin: 0 0 0.2rem;
}

.tj-around-arrow {
  font-weight: 500;
}

.tj-biz-band {
  position: relative;
  overflow: hidden;
  background: var(--tj-forest);
  color: var(--tj-cream);
  margin: 1.75rem 0 0.5rem;
  padding: 2.1rem 0 2rem;
}

.tj-biz-band-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  pointer-events: none;
  opacity: 0.22;
}

.tj-biz-mountains {
  width: 100%;
  height: 100%;
  fill: #0e1c16;
}

.tj-biz-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tj-biz-icon-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.tj-store-icon {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--tj-cream);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 6l2-4h12l2 4v2H4V6zm0 3h16v11H4V9zm3 2v7h2v-7H7zm8 0v7h2v-7h-2z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 6l2-4h12l2 4v2H4V6zm0 3h16v11H4V9zm3 2v7h2v-7H7zm8 0v7h2v-7h-2z'/></svg>") center / contain no-repeat;
}

.tj-biz-band-dek {
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.tj-biz-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

.tj-community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tj-community-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.tj-community-card img,
.tj-community-card .tj-thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--tj-forest);
}

.tj-community-card h3 {
  margin: 0.65rem 0 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  color: var(--tj-forest);
}

.tj-home-v2-bottom {
  padding-top: 1.6rem;
  display: grid;
  gap: 1.6rem;
}

.tj-home-v2 .tj-shop-strip {
  background: var(--tj-forest);
  color: var(--tj-cream);
}

.tj-home-v2 .tj-shop-strip h2 {
  color: var(--tj-cream);
}

@media (min-width: 769px) {
  .tj-hero-v2 {
    min-height: 28rem;
    align-items: center;
  }

  .tj-hero-v2-shade {
    background: linear-gradient(90deg, rgba(20, 36, 28, 0.82) 0%, rgba(20, 36, 28, 0.45) 48%, rgba(20, 36, 28, 0.12) 100%);
  }

  .tj-hero-v2-copy {
    margin-left: max(1.5rem, calc((100% - var(--tj-max)) / 2));
    margin-right: auto;
    width: min(32rem, 54%);
    padding: 3.5rem 1.5rem;
  }

  .tj-hero-v2-credit {
    position: absolute;
    right: 1.2rem;
    bottom: 0.5rem;
    text-align: right;
  }

  .tj-chips {
    flex-wrap: wrap;
    overflow: visible;
    padding: 1.4rem 0 0.4rem;
    width: min(var(--tj-max), calc(100% - 2rem));
  }

  .tj-around-grid,
  .tj-community-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .tj-around-card--lead {
    grid-column: auto;
  }

  .tj-around-card--lead img,
  .tj-around-card--lead .tj-thumb-fallback,
  .tj-around-card--small img,
  .tj-around-card--small .tj-thumb-fallback {
    aspect-ratio: 4 / 3;
    min-height: 14rem;
  }

  .tj-around-card--lead .tj-around-card-copy,
  .tj-around-card--small .tj-around-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.05rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(20, 36, 28, 0) 0%, rgba(20, 36, 28, 0.84) 72%);
    color: #fff;
  }

  .tj-around-card--small h3,
  .tj-around-card--small .tj-kicker {
    color: #fff;
  }

  .tj-biz-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .tj-home-v2-bottom {
    gap: 2rem;
  }
}

.tj-community-credit,
.tj-hero-v2-credit {
  font-size: 0.65rem;
  line-height: 1.4;
  color: #5c665f;
  margin: 0.75rem 0 0;
}
.tj-hero-v2-credit { color: rgba(255, 251, 243, 0.8); }

/* ---------- Magazine v2 mockup match ---------- */
@media (max-width: 768px) {
  .tj-sticky-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    padding: 0 0.3rem 0 0.65rem;
  }

  .tj-sticky-brand {
    justify-content: flex-start !important;
    margin-right: auto;
  }

  .tj-sticky-logo {
    width: 42px;
    height: 42px;
  }

  .tj-sticky-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-transform: uppercase;
    color: var(--tj-cream);
    line-height: 1;
    white-space: nowrap;
  }

  .tj-sticky-name,
  .tj-sticky-journal {
    display: block;
    font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.16em;
  }

  .tj-sticky-name {
    font-size: 13px;
  }

  .tj-sticky-journal {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-top: 4px;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 251, 243, 0.85);
    font-weight: 600;
  }
}

.tj-home-v2 {
  background: #f6f1e6;
}

.tj-hero-v2 {
  min-height: 26rem;
  align-items: flex-start;
}

.tj-hero-v2-shade {
  background: linear-gradient(180deg, rgba(246, 241, 230, 0.55) 0%, rgba(246, 241, 230, 0.12) 55%, rgba(246, 241, 230, 0) 100%);
}

.tj-hero-v2-copy {
  padding: 1.6rem 1.25rem 2.6rem;
  color: var(--tj-forest);
}

.tj-hero-v2-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  color: var(--tj-forest);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.tj-hero-v2-kicker::before,
.tj-hero-v2-kicker::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--tj-forest);
  opacity: 0.7;
}

.tj-hero-v2-copy h1 {
  color: var(--tj-forest);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(246, 241, 230, 0.35);
}

.tj-hero-v2-dek {
  color: var(--tj-forest);
  font-style: italic;
}

.tj-hero-v2-credit {
  color: rgba(20, 36, 28, 0.7);
}

.tj-btn-v2-forest {
  box-shadow: none;
}

.tj-chip--on,
.tj-chips .tj-chip:first-child {
  background: var(--tj-forest);
  color: var(--tj-cream) !important;
  border-color: var(--tj-forest);
}

.tj-around-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 36, 28, 0.06);
}

.tj-around-card img,
.tj-around-card .tj-thumb-fallback {
  border-radius: 14px 14px 0 0;
}

.tj-around-card--lead {
  overflow: hidden;
}

.tj-around-card--lead img,
.tj-around-card--lead .tj-thumb-fallback {
  border-radius: 14px;
}

.tj-around-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  flex: 0 0 auto;
}

.tj-around-card--lead .tj-around-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1.15rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.tj-around-card--small .tj-around-card-copy {
  position: relative;
  padding-right: 2.6rem;
}

.tj-around-card--small .tj-around-arrow {
  position: absolute;
  right: 0.7rem;
  bottom: 0.85rem;
  color: var(--tj-ink);
  border-color: var(--tj-forest);
}

@media (max-width: 768px) {
  .tj-around-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .tj-around-card--lead {
    grid-column: 1 / -1;
  }
  .tj-community-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }
}

.tj-biz-band-title {
  margin: 0;
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.tj-biz-band-dek {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--tj-cream);
}

.tj-biz-icon-row {
  align-items: center;
  margin: 0 0 0.25rem;
}

.tj-store-icon {
  width: 1.7rem;
  height: 1.7rem;
  background: var(--tj-cream);
}

.tj-community-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.tj-community-card img,
.tj-community-card .tj-thumb-fallback {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.tj-community-card h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.5rem 0.55rem 0.6rem;
  background: linear-gradient(180deg, rgba(20, 36, 28, 0) 0%, rgba(20, 36, 28, 0.78) 80%);
  color: #fff;
  font-size: clamp(0.82rem, 2.8vw, 1.15rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem;
}

.tj-community-card .tj-around-arrow {
  width: auto;
  height: auto;
  border: 0;
  color: #fff;
}

.tj-community-credit {
  font-size: 0.62rem;
  color: #5c665f;
}

@media (min-width: 769px) {
  .tj-hero-v2 {
    min-height: 32rem;
    align-items: center;
  }
  .tj-hero-v2-shade {
    background: linear-gradient(90deg, rgba(246, 241, 230, 0.82) 0%, rgba(246, 241, 230, 0.45) 42%, rgba(246, 241, 230, 0.05) 70%);
  }
  .tj-hero-v2-copy h1,
  .tj-hero-v2-dek,
  .tj-hero-v2-kicker {
    color: var(--tj-forest);
  }
  .tj-around-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .tj-around-card--lead {
    grid-column: auto;
  }
  .tj-community-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .tj-community-card h3 {
    font-size: 1.35rem;
    padding: 2rem 0.9rem 0.85rem;
  }
}


/* t118u: show the whole flyer or photo in every card box. Cover is only for the hero background. */
.tj-card img,
.tj-cat-feature img,
.tj-cat-feature .tj-thumb-fallback,
.tj-lead-image img,
.tj-lead .tj-thumb-fallback,
.tj-side-card img,
.tj-side-card .tj-thumb-fallback,
.tj-small-card img,
.tj-small-card .tj-thumb-fallback,
.tj-dir-card img,
.tj-dir-card .tj-thumb-fallback,
.tj-around-card img,
.tj-around-card .tj-thumb-fallback,
.tj-community-card img,
.tj-community-card .tj-thumb-fallback,
.tj-listing-card img,
.archive .inside-article img.attachment-post-thumbnail,
.archive .inside-article img.wp-post-image,
.blog .inside-article img.attachment-post-thumbnail,
.blog .inside-article img.wp-post-image,
.search .inside-article img.attachment-post-thumbnail,
.search .inside-article img.wp-post-image,
.category .inside-article img.attachment-post-thumbnail,
.category .inside-article img.wp-post-image {
  object-fit: contain !important;
  object-position: center center;
}

.tj-around-card,
.tj-community-card,
.tj-lead-image,
.tj-around-card img,
.tj-around-card .tj-thumb-fallback,
.tj-community-card img,
.tj-community-card .tj-thumb-fallback,
.tj-lead-image img,
.tj-lead .tj-thumb-fallback,
.archive .inside-article .post-image,
.blog .inside-article .post-image,
.category .inside-article .post-image,
.search .inside-article .post-image {
  background-color: var(--tj-forest);
}

.tj-card,
.tj-side-card,
.tj-small-card,
.tj-dir-card,
.tj-cat-feature,
.tj-card img,
.tj-side-card img,
.tj-small-card img,
.tj-dir-card img,
.tj-cat-feature img,
.tj-side-card .tj-thumb-fallback,
.tj-small-card .tj-thumb-fallback,
.tj-dir-card .tj-thumb-fallback,
.tj-cat-feature .tj-thumb-fallback {
  background-color: var(--tj-cream);
}

.tj-hero-v2-img {
  object-fit: cover !important;
  object-position: center;
}

/* ---------- 1.2.2 iPhone fixes ---------- */
@media (max-width: 768px) {
  /* Sticky bar is the only header chrome on small screens. */
  .site-header .inside-header,
  .site-header .header-image,
  .site-branding,
  .tj-masthead-extra,
  .tj-identity {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .tj-sticky-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
  }

  .tj-sticky-brand {
    justify-content: flex-start !important;
    margin-right: auto;
    order: -1;
  }

  .tj-sticky-actions {
    margin-left: 0;
    margin-right: 0;
  }

  .tj-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* Hero: photo fills the frame, dark overlay, cream type */
.tj-hero-v2-shade {
  background: linear-gradient(180deg, rgba(20, 36, 28, 0.28) 0%, rgba(20, 36, 28, 0.55) 45%, rgba(20, 36, 28, 0.82) 100%) !important;
}

.tj-hero-v2-copy,
.tj-hero-v2-copy h1,
.tj-hero-v2-kicker,
.tj-hero-v2-dek {
  color: var(--tj-cream) !important;
}

.tj-hero-v2-copy h1 {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(20, 36, 28, 0.45);
}

.tj-hero-v2-kicker::before,
.tj-hero-v2-kicker::after {
  background: var(--tj-cream);
  opacity: 0.8;
}

.tj-hero-v2-img {
  object-fit: cover !important;
  object-position: center;
}

@media (min-width: 769px) {
  .tj-hero-v2-shade {
    background: linear-gradient(90deg, rgba(20, 36, 28, 0.82) 0%, rgba(20, 36, 28, 0.45) 48%, rgba(20, 36, 28, 0.18) 100%) !important;
  }
}

/* Story/community cards: full flyer visible; kicker and headline sit under the image, not on it */
.tj-around-card--lead .tj-around-card-copy,
.tj-around-card--small .tj-around-card-copy,
.tj-around-card--lead .tj-around-card-copy,
.tj-around-card--small .tj-around-card-copy {
  position: static !important;
  background: transparent !important;
  padding: 0.75rem 0.15rem 0.35rem !important;
  color: var(--tj-ink) !important;
}

.tj-around-card--lead h3,
.tj-around-card--small h3,
.tj-around-card--lead .tj-kicker,
.tj-around-card--small .tj-kicker {
  color: inherit !important;
}

.tj-around-card--lead h3,
.tj-around-card--small h3 {
  color: var(--tj-ink) !important;
}

.tj-around-card--lead .tj-kicker,
.tj-around-card--small .tj-kicker {
  color: var(--tj-forest) !important;
  position: static !important;
}

.tj-around-card--lead .tj-around-arrow,
.tj-around-card--small .tj-around-arrow {
  position: static !important;
  display: inline-flex;
  margin-left: 0.25rem;
  color: var(--tj-forest);
  border-color: var(--tj-forest);
  vertical-align: middle;
}

.tj-community-card h3 {
  position: static !important;
  background: none !important;
  color: var(--tj-forest) !important;
  padding: 0.55rem 0.1rem 0.15rem !important;
}

.tj-community-card .tj-around-arrow {
  color: var(--tj-forest) !important;
}

.tj-photo-credit {
  margin: 1rem auto 0;
  width: min(var(--tj-max), calc(100% - 2rem));
  font-size: 0.7rem;
  line-height: 1.4;
  color: #c9bfa6;
}

.tj-chips {
  gap: 0.55rem;
}
