/* Boston Teawrights: static rebuild of the Divi (WordPress) design.
   Sizes follow the old site: Divi defaults plus the "Easy Google Fonts" settings
   (paragraphs 18px, h1 46px, h2 40px, h3 35px, h4 33px, uppercase headings). */

/* Droid Sans: add static/fonts/droid-sans.woff2 (see SETUP.md); until then Open Sans stands in. */
@font-face { font-family: 'Droid Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/droid-sans.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/open-sans-300.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/open-sans-600.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400-italic.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700-italic.woff) format('woff'); }

:root {
  --accent: #2ea3f2;
  --text: #666;
  --heading: #333;
  --body-font: 'Droid Sans', 'Open Sans', Arial, sans-serif;  /* body text was Droid Sans; Open Sans until the font file is added */
  --head-font: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Divi sets 14px / 1.7em on <body>; the line height (23.8px) carries into 18px paragraphs. */
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body-font); font-size: 14px; line-height: 1.7em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
p { margin: 0; padding-bottom: 1em; font-family: var(--body-font); font-size: 18px; }
p:last-of-type { padding-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding-bottom: 10px; color: var(--heading); font-family: var(--head-font); font-weight: 400; line-height: 1em; }
h1 { font-size: 46px; text-transform: uppercase; }
h2 { font-size: 40px; text-transform: uppercase; }
h3 { font-size: 35px; text-transform: uppercase; }
h4 { font-size: 33px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; font-weight: 300; }
/* The old site set every list item in 18px uppercase Open Sans. Delete these two lines to stop that. */
li { font-family: var(--head-font); font-size: 18px; text-transform: uppercase; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid var(--accent); }
table { border-collapse: collapse; margin-bottom: 1.5em; width: 100%; }
th, td { border: 1px solid #eee; padding: 6px 12px; text-align: left; }

/* ---- Boxed layout ------------------------------------------------------ */
#page-container { width: 90%; max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.2); }
.container, .d-row { width: 90%; max-width: 1080px; margin: 0 auto; }

/* ---- Header ------------------------------------------------------------ */
/* Fixed header that shrinks on scroll (site.js adds .et-fixed-header) */
#page-container { padding-top: 84px; }
#main-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; width: 90%; max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); transition: all .4s ease-in-out; }
#main-header.et-fixed-header { box-shadow: 0 0 7px rgba(0,0,0,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .4s ease-in-out; }
.et-fixed-header .header-inner { height: 58px; }
.logo img { display: block; height: 45px; width: auto; transition: height .4s ease-in-out; }
.et-fixed-header .logo img { height: 31px; }
.top-menu ul { display: flex; margin: 0; padding: 0; list-style: none; }
.top-menu li { padding-left: 22px; }
.top-menu a { color: #666; font-family: var(--head-font); font-weight: 400; transition: all .4s ease-in-out; }
.top-menu a:hover { opacity: .7; }
.top-menu li.current a { color: var(--accent); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; font-size: 28px; color: var(--accent); line-height: 1; padding: 6px 0; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu ul { position: absolute; right: 0; top: 46px; width: 240px; margin: 0; padding: 5%; list-style: none; background: #fff; border-top: 3px solid var(--accent); box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.mobile-menu li { padding: 10px 5%; border-bottom: 1px solid rgba(0,0,0,.03); }
.mobile-menu a { color: rgba(0,0,0,.6); }

/* ---- Divi-style sections, rows, columns -------------------------------- */
.d-section { position: relative; padding: 54px 0; background-position: center; background-size: cover; }
.d-section.d-fullwidth { padding: 0; }
.d-inner-shadow { box-shadow: inset 0 0 7px rgba(0,0,0,.07); }
.d-row { display: flex; gap: 0 5.5%; padding: 27px 0; }
.d-col { min-width: 0; }
.d-col-4_4 { width: 100%; }
.d-col-1_2 { width: 47.25%; }
.d-col-1_3 { width: 29.6667%; }
.d-col-2_3 { width: 64.833%; }
.d-col-1_4 { width: 20.875%; }
.d-col-3_4 { width: 73.625%; }
.d-module, .d-divider { margin-bottom: 30px; }
.d-col > :last-child { margin-bottom: 0; }
.d-align-center { text-align: center; }
.d-align-right { text-align: right; }
.d-align-justified { text-align: justify; }
.d-dark, .d-dark h1, .d-dark h2, .d-dark h3, .d-dark h4, .d-dark h5, .d-dark h6, .d-dark a:not(.d-button) { color: #fff; }
/* Divi shrinks headings inside narrow columns */
.d-col-1_3 h1, .d-col-1_4 h1 { font-size: 25.2px; }
.d-col-1_3 h2, .d-col-1_4 h2 { font-size: 23.8px; }
.d-col-1_3 h3, .d-col-1_4 h3 { font-size: 20.4px; }
.d-col-1_3 h4, .d-col-1_4 h4 { font-size: 18px; }
.d-col-1_3 h5, .d-col-1_4 h5 { font-size: 16px; }
.d-text img.aligncenter { display: block; margin: 0 auto; }
.d-divider hr { margin: 0; border-top-width: 1px; }

/* Buttons */
/* Buttons: on hover the border fades, a light fill appears and an arrow slides in (as in Divi) */
.d-button { display: inline-block; position: relative; margin-top: 20px; padding: .3em 1em; border: 2px solid var(--accent); border-radius: 3px; color: var(--accent); font-family: var(--body-font); font-size: 20px; line-height: 1.7em; background: transparent; transition: all .3s; }
.d-button::after { content: ''; position: absolute; top: 50%; width: .8em; height: .8em; margin: -.4em 0 0 -1em; opacity: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 11h16.2l-5.6-5.6L14 4l8 8-8 8-1.4-1.4 5.6-5.6H2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 11h16.2l-5.6-5.6L14 4l8 8-8 8-1.4-1.4 5.6-5.6H2z'/%3E%3C/svg%3E") center / contain no-repeat; transition: all .2s; }
.d-button:hover { padding: .3em 2em .3em .7em; border-color: transparent; background: rgba(0,0,0,.05); }
.d-button:hover::after { opacity: 1; margin-left: .3em; }
.d-dark .d-button { color: #fff; border-color: #fff; }
.d-dark .d-button:hover { border-color: transparent; background: rgba(255,255,255,.2); }

/* Fullwidth header */
.d-fw-header { padding: 50px 0; }
.d-fw-header .d-inner { width: 80%; max-width: 1080px; margin: 0 auto; }
.d-fw-header h1 { font-size: 46px; }
.d-fw-header .d-subhead { padding: 0; font-size: 14px; }
.d-dark .d-subhead { color: #fff; }

/* Fullwidth menu (Tea Craft sub-pages) */
.d-fw-menu .d-inner { width: 90%; max-width: 1080px; margin: 0 auto; }
.d-fw-menu ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.d-fw-menu.d-align-right ul { justify-content: flex-end; }
.d-fw-menu li { padding: 0 11px; }
.d-fw-menu li:last-child { padding-right: 0; }
.d-fw-menu a { display: block; padding: 28px 0; color: rgba(0,0,0,.6); }
.d-fw-menu.d-dark a { color: #fff; }
.d-fw-menu a[aria-current] { opacity: .6; }

/* Fullwidth slider (one slide each) */
.d-slide { padding: 0 6%; background-color: #fff; box-shadow: inset 0 0 10px rgba(0,0,0,.1); background-position: center; background-size: cover; }
.d-slide .d-inner { position: relative; z-index: 1; display: flex; align-items: center; }
/* "True parallax" slide background, moved by site.js */
.d-slide.d-parallax { position: relative; overflow: hidden; }
.d-parallax-wrap { position: absolute; inset: 0; overflow: hidden; }
.d-parallax-bg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: top; background-repeat: no-repeat; will-change: transform; }
.d-slide-empty .d-inner::before { content: ''; display: block; padding-top: 32%; }
.d-slide-desc { flex: 1; padding: 16% 8%; text-align: center; }
.d-slide-with-image .d-slide-image { width: 47.25%; }
.d-slide-with-image .d-slide-image img { visibility: hidden; }
.d-slide-with-image .d-slide-desc { width: 47.25%; flex: none; margin-left: 5.5%; padding-left: 0; padding-right: 0; text-align: left; }
.d-slide h2 { font-size: 46px; font-weight: 300; }
.d-slide h2 a { color: inherit; }
.d-slide-content { font-size: 14px; color: #333; }  /* paragraphs inside stay 18px, as on the old site */
.d-slide.d-dark .d-slide-content, .d-slide.d-dark .d-slide-content p { color: #fff; }
.d-slide.d-dark h2 { text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.d-slide.d-dark .d-slide-content { text-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* Call to action */
.d-cta { padding: 40px 60px; }
.d-cta-desc { padding-bottom: 20px; }
.d-cta-desc:empty, .d-cta.d-no-bg .d-cta-desc { padding-bottom: 0; }
.d-cta.d-no-bg { padding: 0; }
.d-col-1_3 .d-cta.d-has-bg { padding: 40px; }

/* Blurbs */
.d-blurb-image { margin-bottom: 30px; }
.d-blurb-image img { max-width: 100%; }
.d-col-1_2 .d-blurb-image img { max-width: 50%; }

/* Toggles and accordions (FAQ) */
.d-toggle { padding: 20px; border: 1px solid #d9d9d9; background: #f4f4f4; }
.d-toggle[open] { background: #fff; }
.d-accordion .d-toggle + .d-toggle { margin-top: 10px; }
.d-toggle summary { position: relative; list-style: none; cursor: pointer; padding-right: 50px; font-family: var(--head-font); color: var(--heading); font-size: 20px; line-height: 1.3em; }
.d-toggle summary::-webkit-details-marker { display: none; }
.d-toggle summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #ccc; color: #fff; font-size: 14px; line-height: 16px; text-align: center; }
.d-toggle[open] summary::after { content: '\2013'; }
.d-toggle-content { padding-top: 20px; }

/* Team member (one post) */
.d-team { display: flex; gap: 30px; align-items: flex-start; }
.d-team-image { flex: 0 0 320px; }
.d-team-position { color: #999; }

/* Contact riddle */
.d-contact h3 { font-size: 26px; }
.d-contact .riddle { font-size: 22px; line-height: 1.5em; color: #333; }

/* Old "Currently Unavailable" pill buttons on Raw Tea Leaves */
#A_1 { display: inline-block; width: 280px; max-width: 100%; height: 45px; padding: 15px 20px; border-radius: 40px; background: #2eb256; color: #fff; font: 600 15px/15px 'Open Sans', Helvetica, Arial, sans-serif; text-align: center; white-space: nowrap; }

/* ---- Blog grid ----------------------------------------------------------- */
.blog .d-section:first-child h4 { font-size: 33px; }
.blog-section { background: #f7f7f7; }
.blog-grid { width: 100%; }
.blog-grid-desktop { display: flex; gap: 5.5%; align-items: flex-start; }
.blog-column { width: 29.6667%; }
.blog-grid-mobile { display: none; }
.post-card { margin-bottom: 18.539%; padding: 19px; border: 1px solid #d8d8d8; background: #fff; word-wrap: break-word; }
.post-card-image { display: block; margin: -20px -20px 29px; }
.post-card-image img { display: block; width: 100%; aspect-ratio: 400 / 250; object-fit: cover; }
.post-card h2 { padding-bottom: 6px; font-size: 18px; line-height: 1.2em; }
.post-card h2 a { color: var(--heading); }
.post-card .post-meta { margin-bottom: 6px; padding: 0; font-size: 14px; }
.post-excerpt p { font-size: 14px; padding-bottom: 1em; }
.post-excerpt p:last-child { padding-bottom: 0; }
.more-link { font-size: 14px; }
.pagination { display: flex; justify-content: space-between; padding-bottom: 20px; font-size: 14px; }
.pagination .newer { margin-left: auto; }
.archive-header h1 { font-size: 40px; padding: 0; }

/* ---- Single post ---------------------------------------------------------- */
.post .post-header { display: block; padding: 58px 0 0; }
.post .entry-title { padding-bottom: 10px; }
.post-meta { padding-bottom: 0; margin-bottom: 30px; font-size: 14px; }
.post .post-meta a { color: #666; }
.entry-content { width: 90%; max-width: 1080px; margin: 0 auto; padding-bottom: 50px; }
.entry-content h2, .entry-content h3, .entry-content h4 { padding-top: 10px; }
.entry-content.entry-builder { width: auto; max-width: none; }
.wp-caption { max-width: 96%; margin: 0 auto 10px; padding: 8px; border: 1px solid #ddd; background: #f3f3f3; text-align: center; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption figcaption { padding: 4px 4px 5px; font-size: 12px; line-height: 1.5em; }
.wp-caption.alignnone { margin-left: 0; }
.alignleft { float: left; margin: 0 30px 15px 0; }
.alignright { float: right; margin: 0 0 15px 30px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ''; display: table; clear: both; }
.wp-caption:not([class*=align]), .wp-caption.alignnone { margin-left: 0; }
.discuss a { font-family: var(--head-font); }
.sidenote { color: #999; }
.video { position: relative; max-width: 640px; margin-bottom: 1.5em; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 1.5em; scroll-snap-type: x mandatory; }
.gallery img { flex: 0 0 auto; height: 360px; width: auto; max-width: none; scroll-snap-align: start; }
.not-found { display: block; }

/* ---- Footer --------------------------------------------------------------- */
#main-footer { background: #222; }
.footer-widgets { display: flex; gap: 5.5%; padding: 6% 0 5.5%; }
.footer-widget { width: 29.6667%; color: #777; }
.footer-widget .title { padding-bottom: 6px; color: var(--accent); font-size: 33px; line-height: 1.2em; }
.footer-widget p { font-size: 16px; text-align: justify; color: #777; padding-bottom: 1em; }
.social-icons { display: grid; grid-template-columns: repeat(4, 40px); gap: 12px 40px; margin: 6px 0 0; padding: 0; list-style: none; }
/* Social icons: on hover the circle takes the network's color and the icon slides through (Monarch's "slide" effect) */
.social-icons a { position: relative; display: block; overflow: hidden; width: 40px; height: 40px; border-radius: 50%; background: #515151; color: #a0a0a0; font-size: 18px; transition: background-color .3s, color .3s; }
.social-icons .ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.social-icons .ico-in { top: -40px; bottom: 40px; }
.social-icons a:hover { color: #fff; }
.social-icons a:hover .ico:not(.ico-in) { opacity: 0; transform: translateY(40px); }
.social-icons a:hover .ico-in { top: 0; bottom: 0; }
.social-facebook a:hover { background: #314a83; }
.social-x a:hover { background: #0092cc; }
.social-pinterest a:hover { background: #ae181a; }
.social-instagram a:hover { background: #456c8c; }
.social-reddit a:hover { background: #d63c1a; }
.social-linkedin a:hover { background: #0f699b; }
.social-rss a:hover { background: #d07b30; }
.footer-nav { background: rgba(255,255,255,.05); }
.footer-nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 15px 0; list-style: none; line-height: 1.3em; }
.footer-nav li { padding-right: 22px; }
.footer-nav a { color: #bbb; font-family: var(--head-font); transition: all .4s ease-in-out; }
.footer-nav a:hover { opacity: .7; }
.footer-nav li.current a { color: var(--accent); }
.footer-bottom { padding: 15px 0 5px; background: rgba(0,0,0,.32); color: #666; font-size: 14px; }
.footer-bottom .container { padding-bottom: 10px; }

/* ---- Tablet and phone (Divi switches at 980px) ---------------------------- */
@media (max-width: 980px) {
  #page-container { width: 100%; padding-top: 0; }
  #main-header { position: relative; width: 100%; }
  .et-fixed-header .header-inner { height: 70px; }
  .et-fixed-header .logo img { height: 34px; }
  .d-divider { display: none; }
  .top-menu { display: none; }
  .mobile-menu { display: block; }
  .header-inner { height: 70px; }
  .logo img { height: 34px; }
  .d-section { padding: 50px 0; }
  .d-row { flex-direction: column; padding: 30px 0; }
  .d-row > .d-col { width: 100%; margin-bottom: 30px; }
  .d-row > .d-col:last-child { margin-bottom: 0; }
  .d-slide-with-image .d-slide-image { display: none; }
  .d-slide-with-image .d-slide-desc { width: 100%; margin: 0; padding: 16% 0; }
  .d-cta { padding: 40px; }
  .blog-grid-desktop { display: none; }
  .blog-grid-mobile { display: block; }
  .footer-widgets { flex-direction: column; }
  .footer-widget { width: 100%; margin-bottom: 30px; }
  .d-team { flex-direction: column; }
  .d-team-image { flex: none; }
}
@media (max-width: 767px) {
  h1, .d-fw-header h1, .d-slide h2 { font-size: 34px; }
  h2 { font-size: 30px; }
  .d-fw-header .d-inner { width: 90%; }
  .footer-nav ul { flex-direction: column; align-items: center; }
  .footer-nav li { padding: 0; }
  .alignleft, .alignright { float: none; margin: 0 auto 15px; }
  .gallery img { height: 240px; }
}
.blog-section .d-row, .archive-header .d-row { display: block; }
