/* mt_site: shared styles for pages migrated from moodyteas.co (WordPress) into Odoo. */

/* Several designs go full-bleed with `margin: 0 -9999px; padding: 0 9999px` (tea guides, pop-ups);
   WordPress's theme hid that overflow at the page level, so do the same here. `clip` (not `hidden`)
   keeps position: sticky working inside. */
#wrap.mt-wp-page { overflow-x: clip; }

.mt-wp-content img { max-width: 100%; height: auto; }
.mt-wp-content .mt-page img { height: auto; }

/* Plain text pages (policies, terms) that had no designed layout in WordPress. */
.mt-wp-content.mt-plain { max-width: 860px; margin: 0 auto; padding: 48px 16px 64px; }
.mt-wp-content.mt-plain h1, .mt-wp-content.mt-plain h2, .mt-wp-content.mt-plain h3 { margin-top: 1.4em; }
.mt-wp-content.mt-plain h1.mt-plain-title { margin-top: 0; }

/* Glossary term links (auto-linked by WordPress's glossary plugin, pointing at moodyteas.co/glossary/).
   Take the surrounding text colour so they stay readable on every section background. */
.mt-wp-content a.glossaryLink, .mt-wp-content span.glossaryLink {
  color: inherit !important;
  text-decoration: underline dotted !important;
  text-underline-offset: 3px;
  border-bottom: 0 !important;
}


/* Homepage blog section: posts load live from the WordPress blog. */
.mt-blog-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
@media (max-width: 767px) { .mt-blog-feed { grid-template-columns: 1fr; } }
.mt-blog-feed .mt-feed-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 3px rgba(13, 40, 24, .12); }
.mt-blog-feed .mt-feed-card:hover { box-shadow: 0 4px 14px rgba(13, 40, 24, .18); }
.mt-blog-feed .mt-feed-img { aspect-ratio: 1200 / 628; width: 100%; object-fit: cover; display: block; background: #e9e4d8; }
.mt-blog-feed .mt-feed-body { padding: 16px 18px 20px; }
.mt-blog-feed .mt-feed-date { font-family: 'Questrial', sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.mt-blog-feed .mt-feed-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; line-height: 1.25; margin: 6px 0 8px; }
.mt-blog-feed .mt-feed-excerpt { font-family: 'Questrial', sans-serif; font-size: 15px; line-height: 1.5; }
.mt-blog-feed .mt-feed-fallback { color: #2d2d2d; text-decoration: underline; text-underline-offset: 3px; font-family: 'Questrial', sans-serif; }
.mt-blog-feed[aria-busy="true"] { min-height: 120px; }

/* Homepage hero: at 45px a long single-word slide line ("TRANSCENDENCE", 13 letters of Archivo Black)
   is ~362px and was clipped on phones (also on the WordPress homepage). Scale it to the screen so the
   longest word fits: (100vw - 40px side padding) / 10.5em. */
@media (max-width: 575px) {
  #mtHeroHeadline { font-size: min(45px, calc((100vw - 40px) / 10.5)) !important; }
}

/* Locations and market pages: cream heading band, then the market locator (mt-locator.css). */
.mt-loc-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mt-loc-head { background: #f0ede7; padding: 56px 0 44px; }
.mt-loc-eyebrow {
  font-family: 'Questrial', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: #2d2d2d; margin: 0 0 12px;
}
.mt-loc-title {
  font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1; color: #2d2d2d; margin: 0 0 14px;
}
.mt-loc-intro { font-family: 'Questrial', sans-serif; font-size: 18px; line-height: 1.7; color: #4b4b4b; max-width: 640px; margin: 0; }
.mt-loc-body { padding: 32px 0 64px; }

/* Ingredient lists that were caption-only slideshows on WordPress. */
.mt-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0; }
.mt-chip-list li { background: #f0ede7; color: #2d2d2d; border-radius: 6px; padding: 6px 12px; font: 15px/1.4 'Questrial', sans-serif; }

/* The designed pages (.mt-page) sit inside Elementor containers, which add a 10px padding by default, so their
   full-width colour bands stopped 10px short of each edge (farmers markets). WordPress hid this with its own
   layout; here the containers holding a designed page get no padding. */
.mt-wp-content .e-con:has(.mt-page) { --padding-left: 0px; --padding-right: 0px; padding-left: 0; padding-right: 0; }
