:root {
  --tmb-paper: #f6f4ec;
  --tmb-white: #fff;
  --tmb-ink: #163542;
  --tmb-text: #253b45;
  --tmb-muted: #50666f;
  --tmb-green: #07634c;
  --tmb-green-dark: #064c3c;
  --tmb-soft: #edf5ef;
  --tmb-line: #d8e2dd;
  --tmb-display: Georgia, "Times New Roman", serif;
  --tmb-body: system-ui, sans-serif;
}

body { background: var(--tmb-paper); color: var(--tmb-text); }
#main-header { border-bottom: 1px solid var(--tmb-line); box-shadow: none; }
#main-header .container { width: min(100% - 36px, 1240px); }
#main-header .logo { display: flex; align-items: center; gap: .65rem; margin: 0; }
#main-header .logo img { width: 48px; height: auto; margin: 0; }
#main-header .logo-slogan { display: grid; gap: 2px; }
#main-header .tmb-site-title { font: 700 clamp(1.25rem, 2.1vw, 1.7rem)/1.08 var(--tmb-display); color: var(--tmb-ink); white-space: nowrap; }
#main-header .tmb-site-desc { font-size: .72rem; line-height: 1.25; color: var(--tmb-muted); }
#et-navigation > ul > li { margin: 0 clamp(5px, .65vw, 11px); }
#et-navigation > ul > li > a { color: var(--tmb-ink); font: 650 .84rem/1.2 var(--tmb-body); text-transform: none; }
#et-navigation > ul > li > a:hover, .post-content a:hover { color: var(--tmb-green-dark); }
#main-content > .container { width: min(100% - 32px, 1240px); }

.tmb-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  padding: clamp(20px, 4vw, 52px);
  border-radius: 18px;
  background: #e7efe9;
  text-align: left;
}
.tmb-home-intro h1 {
  margin: 0 0 .65rem;
  padding: 0;
  color: var(--tmb-ink);
  font: 700 clamp(2rem, 4.4vw, 3.9rem)/1.07 var(--tmb-display);
  letter-spacing: -.035em;
}
.tmb-home-intro p { margin: 0 0 1rem; color: var(--tmb-muted); font: 1.06rem/1.55 var(--tmb-body); }
.tmb-start-links { display: flex; flex-wrap: wrap; gap: .45rem .85rem; }
.tmb-start-links a { padding: .38rem 0; color: var(--tmb-green); font: 650 .91rem/1.3 var(--tmb-body); text-decoration: underline; text-underline-offset: .2em; }

.tmb-quote-entry {
  box-sizing: border-box;
  padding: clamp(16px, 3vw, 24px);
  background: var(--tmb-white);
  border: 1px solid var(--tmb-line);
  border-radius: 14px;
  color: var(--tmb-ink);
  text-align: left;
  font: 1rem/1.5 var(--tmb-body);
}
.single .post-content .tmb-quote-entry { margin: 1.4rem 0 1.8rem; background: var(--tmb-soft); }
.tmb-quote-heading h2, .single .post-content .tmb-quote-heading h2 {
  margin: 0;
  padding: 0;
  color: var(--tmb-ink);
  font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--tmb-display);
}
.tmb-quote-entry p, .single .post-content .tmb-quote-entry p { margin: .4rem 0 0; padding: 0; color: var(--tmb-muted); font: .93rem/1.5 var(--tmb-body); }
.tmb-quote-entry form { margin-top: .9rem; }
.tmb-quote-entry label { display: block; margin-bottom: .35rem; font: 650 .88rem/1.4 var(--tmb-body); }
.tmb-quote-controls { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.tmb-quote-entry input[type=text] { box-sizing: border-box; flex: 1 1 118px; width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #8aaba5; border-radius: 8px; background: var(--tmb-white); color: var(--tmb-ink); font: 1rem/1.15 var(--tmb-body); }
.tmb-quote-entry .tmb-quote-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 8px 15px; border: 0; border-radius: 8px; background: var(--tmb-green);
  color: var(--tmb-white); text-decoration: none; text-shadow: none; box-shadow: none; font: 650 .91rem/1.2 var(--tmb-body);
}
.tmb-quote-entry .tmb-quote-button:hover { color: var(--tmb-white); background: var(--tmb-green-dark); }
.tmb-quote-entry .tmb-quote-heading + a { margin-top: .8rem; }
.tmb-quote-entry .tmb-quote-alternatives { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin-top: .7rem; font-size: .83rem; }
.tmb-quote-alternatives a { color: var(--tmb-green); text-decoration: underline; text-underline-offset: .16em; }
.tmb-quote-entry :is(a,input,button):focus-visible { outline: 3px solid #ad6329; outline-offset: 2px; }

.single-post .single-post-module { border: 1px solid var(--tmb-line); border-radius: 14px; box-shadow: none; background: var(--tmb-white); }
.single-post .single-post-module > .post-header { max-width: 835px; margin: 0 auto; padding: clamp(23px, 5vw, 52px) clamp(16px, 4vw, 44px) 12px; text-align: left; }
.single-post .single-post-module > .post-header h1 {
  margin: 0; padding: 0 !important; color: var(--tmb-ink);
  font: 700 clamp(2rem, 4.4vw, 3.3rem)/1.09 var(--tmb-display); letter-spacing: -.035em;
}
.single-post .single-post-module > .post-wrap { padding: 0 clamp(16px, 4vw, 44px) 1rem; }
.single-post .single-post-module .post-wrap > .post-content {
  max-width: 747px;
  margin: 0 auto 1rem;
  color: var(--tmb-text);
  font: clamp(1rem, .9rem + .32vw, 1.14rem)/1.66 var(--tmb-body);
  overflow-wrap: anywhere;
}
.single-post .single-post-module .post-content > p { margin: 0 0 1.02em; padding: 0; font: inherit; }
.single-post .single-post-module .post-content > :is(h2,h3,h4) { clear: both; padding: 0; margin: 1.25em 0 .48em; color: var(--tmb-ink); line-height: 1.21; letter-spacing: -.02em; }
.single-post .single-post-module .post-content > h2 { font: 700 clamp(1.53rem, 2.9vw, 2.13rem)/1.2 var(--tmb-display); }
.single-post .single-post-module .post-content > h3 { font: 700 clamp(1.22rem, 2.3vw, 1.53rem)/1.3 var(--tmb-display); }
.single-post .single-post-module .post-content :is(ul,ol):not(.mmrc-list) { padding-inline-start: 1.25em; }
.single-post .single-post-module .post-content a:not(.tmb-quote-button) { text-underline-offset: .16em; }
.single-post .single-post-module .post-content :is(.wp-caption,figure.wp-block-image,img.alignleft,img.alignright,img.aligncenter) {
  display: block;
  float: none !important;
  clear: both;
  box-sizing: border-box;
  max-width: min(100%, 640px);
  margin: 1.3em auto !important;
}
.single-post .single-post-module .post-content :is(.wp-caption,figure.wp-block-image) { width: fit-content !important; padding: 0; }
.single-post .single-post-module .post-content :is(.wp-caption img,.wp-block-image img,img.alignleft,img.alignright,img.aligncenter) {
  height: auto;
  max-width: 100% !important;
  width: auto !important;
  margin-inline: auto !important;
  border-radius: 9px;
}
.single-post .single-post-module .post-content .wp-caption-text { font: .85rem/1.45 var(--tmb-body); color: var(--tmb-muted); margin: .45rem 0 0; padding: 0; text-align: center; }
.single-post .single-post-module .post-content > .wp-caption:first-child,
.single-post .single-post-module .post-content > p:first-child:has(img.alignleft,img.alignright) {
  margin-top: .85rem;
}
.single-post .single-post-module .post-content table { margin: 1.35em 0; border: 1px solid var(--tmb-line); border-collapse: collapse; font: .93rem/1.45 var(--tmb-body); }
.single-post .single-post-module .post-content table caption { padding: 0 0 .65rem; color: var(--tmb-muted); text-align: start; }
.single-post .single-post-module .post-content table :is(td,th) { padding: .64rem .72rem; border-color: var(--tmb-line); text-align: start; }
.single-post .single-post-module .post-content thead th { background: var(--tmb-soft); color: var(--tmb-ink); }
#comment-wrap { max-width: 900px; margin-inline: auto; }
#comment-wrap .fn { color: var(--tmb-ink); font-weight: 650; }
#comment-wrap .commentlist .children { padding-inline-start: clamp(7px, 2.2vw, 24px); }
#footer { background: #193845; }


@media (max-width: 1080px) {
  #main-header #et-menu { display: none; }
  #main-header #et-mobile-navigation { display: block; }
}
@media (max-width: 760px) {
  #main-header .container, #main-content > .container { width: calc(100% - 20px); }
  #main-header .logo img { width: 41px; }
  #main-header .tmb-site-desc { display: none; }
  .tmb-home-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .single-post .single-post-module { border-radius: 10px; }
  .single-post .single-post-module .post-content table { display: block; overflow-x: auto; max-width: 100%; }
  .single-post .single-post-module .post-content table :is(td,th) { min-width: 4.5rem; }
  #comment-wrap .commentlist .children { margin: 0; }
}
@media (max-width: 445px) {
  .tmb-quote-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tmb-quote-entry .tmb-quote-button { justify-content: center; }
}
.page-template-cost-estimator-tpl #main-content > .container { max-width: 1030px; }
.page-template-cost-estimator-tpl article.page { background: var(--tmb-white); border: 1px solid var(--tmb-line); border-radius: 14px; box-shadow: none; }
.page-template-cost-estimator-tpl .post-wrap { padding: clamp(10px, 3vw, 30px); }
.page-template-cost-estimator-tpl .post-content.entry-content { margin: 0 !important; }
.page-template-cost-estimator-tpl .post-content .et_pb_row { width: 100% !important; }
.page-template-cost-estimator-tpl .post-content h1 {
  font: 700 clamp(1.85rem, 4.4vw, 3rem)/1.1 var(--tmb-display);
  color: var(--tmb-ink);
}
.page-template-cost-estimator-tpl :is(#myIframe,#myIframeSmall) { max-width: 100%; border: 0; }

.single-post .post-content .wp-caption img,
.single-post .post-content .tmb-opening-image img { max-height: min(52vh, 340px); object-fit: contain; }
.single-post .post-content .tmb-opening-image { text-align: center; }
#comment-wrap img.avatar { width: clamp(38px, 6vw, 58px); height: auto; border-radius: 50%; }

.page:not(.page-template-cost-estimator-tpl) article.page .post-content.entry-content :is(.wp-caption,img.alignleft,img.alignright) {
  display: block;
  float: none !important;
  clear: both;
  max-width: 100%;
  margin: 1rem auto !important;
}
.page:not(.page-template-cost-estimator-tpl) article.page .post-content.entry-content .wp-caption img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .archive #content-area .et_pb_extra_column_main > .et_pb_section > .et_pb_row {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
.tmb-quote-entry .tmb-quote-button,
.tmb-quote-entry input[type=text],
.tmb-quote-entry input[type=text]::placeholder { text-transform: none; letter-spacing: normal; }
@media (max-width: 1080px) {
  #main-header #et-mobile-navigation .show-menu-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }
}
