/* =========================================================
   TrustMark Consultation 2026 — page + document reader
   Ported from Base44 (TrustMarkPrimitives / trustmark components).
   Loaded only on the TrustMark template and document pages.
   ========================================================= */
.tm-page {
  --tm-navy: #14253D;
  --tm-lime: #9ACD33;
  --tm-green: #179237;
  --tm-grey: #F4F5F7;
  --tm-border: #E5E7EB;
  --tm-body: #3F4652;
  --tm-muted: #7A828F;
  color: var(--tm-body);
  overflow-x: hidden;
}
.tm-page *, .tm-page *::before, .tm-page *::after { box-sizing: border-box; }
.tm-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.tm-wrap--narrow { max-width: 64rem; }
.tm-ico { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.tm-page p { margin: 0; }
.tm-page h1, .tm-page h2, .tm-page h3, .tm-page h4 { margin: 0; }
.tm-lime { color: var(--tm-lime) !important; }
.tm-c-green { color: var(--tm-green) !important; }

/* ---------- Sections & type ---------- */
.tm-section { padding: 3.5rem 0; background: #fff; scroll-margin-top: 6rem; }
.tm-section--grey { background: var(--tm-grey); }
@media (min-width: 768px) { .tm-section { padding: 4rem 0; } }
.tm-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--tm-lime); margin-bottom: .75rem !important; }
.tm-h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.375; color: var(--tm-navy); margin-bottom: 1rem !important; }
@media (min-width: 768px) { .tm-h2 { font-size: 1.875rem; } }
.tm-h2--white { color: #fff; }
.tm-h3 { font-size: 1rem; font-weight: 700; line-height: 1.375; color: var(--tm-navy); margin-bottom: .5rem !important; }
.tm-h3--sm { font-size: .875rem; margin-bottom: .75rem !important; }
.tm-intro { max-width: 48rem; margin-bottom: 2.25rem; }
#why-it-matters .tm-intro { margin-bottom: 2.5rem; }
.tm-intro > p:not(.tm-eyebrow), .tm-lead, .tm-prose p { line-height: 1.625; text-align: justify; }
.tm-lead { margin-bottom: 1rem !important; }
.tm-prose p + p { margin-top: 1rem; }
.tm-small { font-size: .875rem; }
.tm-mini-h { font-weight: 700; font-size: .875rem; color: var(--tm-navy); margin: 1.75rem 0 1rem !important; }
.tm-mini-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tm-muted); margin: 2rem 0 .75rem !important; }

/* ---------- Buttons & links ---------- */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .875rem; line-height: 1.25; padding: .625rem 1rem; border-radius: 4px; border: 2px solid transparent; text-decoration: none; transition: opacity .2s, background .2s; cursor: pointer; }
.tm-btn--lg { padding: .75rem 1.5rem; }
.tm-btn--green { background: var(--tm-green); color: #fff !important; }
.tm-btn--green:hover { opacity: .9; }
.tm-btn--navy { background: var(--tm-navy); color: #fff !important; }
.tm-btn--navy:hover { opacity: .9; }
.tm-btn--outline { background: #fff; border-color: var(--tm-navy); color: var(--tm-navy) !important; }
.tm-btn--outline:hover { background: rgba(0,0,0,.05); }
.tm-btn--ghost { border-color: rgba(255,255,255,.5); color: #fff !important; background: transparent; }
.tm-btn--ghost:hover { background: rgba(255,255,255,.1); }
.tm-btn--block { width: 100%; }
.tm-textlink { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .875rem; color: var(--tm-green) !important; margin-top: 1.5rem; text-decoration: none; transition: gap .2s; }
.tm-textlink:hover { gap: .75rem; }

/* ---------- Hero ---------- */
.tm-hero { position: relative; color: #fff; background: var(--tm-navy); }
.tm-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tm-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,37,61,.96) 0%, rgba(20,37,61,.88) 55%, rgba(20,37,61,.72) 100%); }
.tm-hero__inner { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .tm-hero__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.tm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: 1.75rem; }
.tm-crumbs a { color: rgba(255,255,255,.5); text-decoration: none; }
.tm-crumbs a:hover { color: #fff; }
.tm-crumbs span { color: rgba(255,255,255,.8); }
.tm-hero__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--tm-lime); margin-bottom: 1rem !important; }
.tm-hero__title { font-size: 1.875rem; font-weight: 700; line-height: 1.25; max-width: 48rem; margin-bottom: 1rem !important; color: #fff; }
@media (min-width: 768px) { .tm-hero__title { font-size: 3rem; } }
.tm-hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 48rem; line-height: 1.375; margin-bottom: 1.5rem !important; }
@media (min-width: 768px) { .tm-hero__sub { font-size: 1.25rem; } }
.tm-hero__text { max-width: 48rem; color: rgba(255,255,255,.75); line-height: 1.625; }
.tm-hero__text p { text-align: justify; }
.tm-hero__text p + p { margin-top: 1rem; }
.tm-hero__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.tm-hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.15); }
.tm-hero__facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: .25rem; }
.tm-hero__facts dd { margin: 0; font-weight: 700; font-size: .875rem; color: #fff; }
.tm-hero__facts a { display: inline-flex; align-items: center; gap: .375rem; color: #fff; text-decoration: none; }
.tm-hero__facts a:hover { text-decoration: underline; }

/* ---------- Cards / grids ---------- */
.tm-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tm-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tm-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .tm-grid--3c { grid-template-columns: repeat(3, 1fr); } }
.tm-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--tm-border); border-radius: 4px; padding: 1.5rem; }
.tm-card--link { text-decoration: none; transition: box-shadow .2s; }
.tm-card--link:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.tm-card__body { font-size: .875rem; line-height: 1.625; color: var(--tm-body); flex: 1; text-align: justify; }
.tm-num { width: 2.25rem; height: 2.25rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; background: var(--tm-navy); color: var(--tm-lime); margin-bottom: 1rem; }
.tm-more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 700; color: var(--tm-green); transition: gap .2s; }
.tm-more--navy { color: var(--tm-navy); }
.tm-card--link:hover .tm-more { gap: .75rem; }
.tm-iconbox { width: 2.5rem; height: 2.5rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--tm-navy); color: var(--tm-lime); margin-bottom: 1rem; }

/* ---------- Document library ---------- */
.tm-library { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .tm-library { grid-template-columns: 1fr 1fr; } }
.tm-doc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tm-border); border-radius: 8px; padding: 1.5rem; height: 100%; }
@media (min-width: 768px) { .tm-doc { padding: 1.75rem; } }
.tm-doc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.tm-doc__chip { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tm-doc__icon { width: 1.75rem; height: 1.75rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tm-doc__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tm-navy); }
.tm-pill { font-size: 10px; font-weight: 600; border-radius: 9999px; padding: .25rem .625rem; white-space: nowrap; flex-shrink: 0; }
.tm-tone-navy  { background: rgba(20,37,61,.08); color: var(--tm-navy); }
.tm-tone-green { background: rgba(23,146,55,.10); color: var(--tm-green); }
.tm-tone-lime  { background: rgba(154,205,51,.22); color: var(--tm-navy); }
.tm-tone-grey  { background: var(--tm-grey); color: var(--tm-navy); }
.tm-doc__title { font-size: 1.125rem; font-weight: 700; line-height: 1.375; color: var(--tm-navy); }
.tm-copylabel { display: inline-flex; align-items: center; gap: .375rem; align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: 4px; padding: .25rem .625rem; margin-top: .5rem !important; background: rgba(154,205,51,.15); color: var(--tm-navy); }
.tm-copylabel--grey { background: var(--tm-grey); font-size: .75rem; padding: .375rem .75rem; margin-top: 1rem !important; }
.tm-doc__summary { font-size: 15px; line-height: 1.625; margin-top: .75rem !important; color: var(--tm-body); text-align: left; }
.tm-meta { display: grid; grid-template-columns: 1fr; gap: .5rem 1.25rem; margin: 1rem 0 0; }
@media (min-width: 640px) { .tm-meta { grid-template-columns: 1fr 1fr; } }
.tm-meta > div { display: flex; flex-direction: column; border-bottom: 1px solid var(--tm-border); padding-bottom: .375rem; }
.tm-meta dt { display: flex; align-items: center; gap: .375rem; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--tm-muted); }
.tm-meta dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--tm-navy); }
.tm-note { border-radius: 4px; padding: .875rem; margin-top: 1rem; font-size: 13px; line-height: 1.625; background: var(--tm-grey); color: var(--tm-body); border-left: 3px solid var(--tm-lime); }
.tm-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.tm-actions--foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--tm-border); }
.tm-pending { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 600; border-radius: 4px; padding: .5rem .75rem; background: var(--tm-grey); color: #6B7280; border: 1px solid var(--tm-border); }
.tm-subs { display: flex; flex-direction: column; gap: 1.25rem; }
.tm-sub { border: 1px solid var(--tm-border); border-radius: 4px; padding: 1.25rem; background: #FAFAFB; }
.tm-sub.is-primary { background: #fff; }
.tm-sub__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tm-muted); }
.tm-sub.is-primary .tm-sub__label { color: var(--tm-green); }
.tm-sub__title { font-weight: 700; line-height: 1.375; margin-top: .5rem !important; font-size: 1rem; color: var(--tm-navy); }
.tm-sub.is-primary .tm-sub__title { font-size: 17px; }
.tm-sub__facts { font-size: 13px; font-weight: 500; margin-top: .375rem !important; color: var(--tm-muted); }
.tm-sub .tm-actions { margin-top: 1rem; }

/* ---------- Energy split / aside ---------- */
.tm-split { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .tm-split { grid-template-columns: 2fr 1fr; gap: 3rem; } }
.tm-aside { align-self: start; border: 1px solid var(--tm-border); border-radius: 4px; padding: 1.5rem; background: var(--tm-grey); }
.tm-aside p { font-size: .875rem; line-height: 1.625; text-align: justify; }

/* ---------- Statements ---------- */
.tm-statement { border-radius: 4px; border-left: 4px solid var(--tm-lime); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--tm-navy); }
.tm-statement p { font-weight: 700; font-size: .875rem; line-height: 1.375; color: #fff; }
@media (min-width: 768px) { .tm-statement p { font-size: 1rem; } }
.tm-statement--lime { background: rgba(154,205,51,.12); }
.tm-statement--lime p { color: var(--tm-navy); }
.tm-statement--amber { background: rgba(245,158,11,.12); border-left-color: #F59E0B; }
.tm-statement--amber p { color: #92400E; }

/* ---------- Waste points ---------- */
.tm-points { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .tm-points { grid-template-columns: 1fr 1fr; } }
.tm-point { display: flex; align-items: flex-start; gap: .75rem; }
.tm-point__icon { width: 2.25rem; height: 2.25rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--tm-grey); color: var(--tm-navy); }
.tm-point__title { font-weight: 700; font-size: .875rem; color: var(--tm-navy); margin-bottom: .25rem !important; }
.tm-point__body { font-size: .875rem; line-height: 1.625; }
.tm-callout { font-size: .875rem; line-height: 1.625; margin-top: 1.75rem !important; border-radius: 4px; padding: 1.25rem; border-left: 4px solid var(--tm-lime); background: var(--tm-grey); text-align: justify; }

/* ---------- Recommendations ---------- */
.tm-recs { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; grid-template-columns: 1fr; gap: .75rem 1.5rem; }
@media (min-width: 640px) { .tm-recs { grid-template-columns: 1fr 1fr; } }
.tm-recs li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.625; }
.tm-recs__tick { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .125rem; background: var(--tm-navy); color: var(--tm-lime); }
.tm-panel { background: #fff; border: 1px solid var(--tm-border); border-radius: 4px; padding: 1.5rem; }
@media (min-width: 768px) { .tm-panel { padding: 1.75rem; } }
.tm-panel p { font-size: .875rem; line-height: 1.625; margin-bottom: 1rem !important; }
.tm-panel .tm-btn { padding: .75rem 1.25rem; text-align: left; }

/* ---------- Updates accordion ---------- */
.tm-updates { list-style: none; margin: 0; padding: 0 1.5rem; background: #fff; border: 1px solid var(--tm-border); border-radius: 4px; }
.tm-update { border-bottom: 1px solid var(--tm-border); }
.tm-update:last-child { border-bottom: 0; }
.tm-update__btn { width: 100%; display: flex; align-items: flex-start; gap: 1rem; text-align: left; padding: 1.25rem 0; background: none; border: 0; cursor: pointer; font-family: inherit; color: inherit; }
.tm-update__text { flex: 1; min-width: 0; }
.tm-update__meta { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tm-muted); margin-bottom: .25rem; }
.tm-update__title { display: block; font-weight: 700; font-size: 1rem; line-height: 1.375; color: var(--tm-navy); margin-bottom: .25rem; }
.tm-update__preview { display: block; font-size: .875rem; line-height: 1.625; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-update.is-open .tm-update__preview { display: none; }
.tm-update__chev { color: var(--tm-navy); margin-top: .25rem; transition: transform .2s; }
.tm-update.is-open .tm-update__chev { transform: rotate(180deg); }
.tm-update__panel { padding-bottom: 1.5rem; }
@media (min-width: 768px) { .tm-update__panel { padding-left: 52px; } }
.tm-update__panel p { font-size: .875rem; line-height: 1.625; max-width: 48rem; }
.tm-anticipated { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 640px) { .tm-anticipated { grid-template-columns: 1fr 1fr; } }
.tm-anticipated li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; border-radius: 4px; padding: .625rem 1rem; border: 1px dashed var(--tm-border); background: #fff; }
.tm-dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--tm-lime); flex-shrink: 0; }

/* ---------- Contact panel ---------- */
.tm-contact { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; background: var(--tm-navy); border-radius: 4px; padding: 1.75rem; }
@media (min-width: 768px) { .tm-contact { padding: 2.5rem; } }
@media (min-width: 1024px) { .tm-contact { grid-template-columns: 2fr 1fr; } }
.tm-contact__lead { line-height: 1.625; margin-bottom: 1.5rem !important; color: rgba(255,255,255,.75); text-align: justify; }
.tm-contact__box { border-radius: 4px; padding: 1.5rem; background: rgba(255,255,255,.08); }
.tm-contact__name { font-weight: 700; font-size: .875rem; color: var(--tm-lime); margin-bottom: 1rem !important; }
.tm-contact__box ul { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.tm-contact__box li { display: flex; align-items: center; gap: .625rem; color: rgba(255,255,255,.85); }
.tm-contact__box li + li { margin-top: .75rem; }
.tm-contact__box li .tm-ico { color: var(--tm-lime); }
.tm-contact__box a { color: rgba(255,255,255,.85); text-decoration: none; word-break: break-all; }
.tm-contact__box a:hover { text-decoration: underline; }
.tm-contact__small { font-size: .75rem; margin-top: 1.25rem !important; line-height: 1.625; color: rgba(255,255,255,.55); }

/* ---------- Document reader page ---------- */
.tm-reader { padding: 2.5rem 0 3.5rem; }
@media (min-width: 768px) { .tm-reader { padding: 3.5rem 0; } }
.tm-back { margin: 0 0 1.75rem; }
.tm-reader__head { margin-bottom: 2rem; }
.tm-reader__title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--tm-navy); margin-bottom: 1rem !important; }
@media (min-width: 768px) { .tm-reader__title { font-size: 2.25rem; } }
.tm-reader__summary { line-height: 1.625; max-width: 48rem; text-align: justify; }
.tm-reader__btns { margin-top: 1.5rem; gap: .75rem; }
.tm-reader__meta { display: grid; grid-template-columns: 1fr; gap: .75rem 1.5rem; border: 1px solid var(--tm-border); background: var(--tm-grey); border-radius: 4px; padding: 1.5rem; margin: 0 0 2rem; }
@media (min-width: 640px) { .tm-reader__meta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tm-reader__meta { grid-template-columns: repeat(3, 1fr); } }
.tm-reader__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--tm-muted); margin-bottom: .125rem; }
.tm-reader__meta dd { margin: 0; font-size: .875rem; font-weight: 500; color: var(--tm-navy); }
.tm-note--lg { padding: 1.25rem; margin: 0 0 2rem; font-size: .875rem; border-left-width: 4px; }
.tm-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tm-tab { font-weight: 700; font-size: .875rem; padding: .625rem 1rem; border-radius: 4px; border: 0; cursor: pointer; background: var(--tm-grey); color: var(--tm-navy); font-family: inherit; }
.tm-tab.is-active { background: var(--tm-navy); color: #fff; }
.tm-viewer { border: 1px solid var(--tm-border); border-radius: 4px; overflow: hidden; }
.tm-viewer iframe { display: none; width: 100%; height: 80vh; border: 0; }
.tm-viewer__mobile { padding: 1.5rem; text-align: center; }
.tm-viewer__mobile p { font-size: .875rem; margin-bottom: 1rem !important; }
@media (min-width: 768px) { .tm-viewer iframe { display: block; } .tm-viewer__mobile { display: none; } }
.tm-viewer--empty { border-style: dashed; background: var(--tm-grey); padding: 2rem; text-align: center; }
.tm-viewer--empty p { font-size: .875rem; max-width: 42rem; margin: 0 auto !important; }
.tm-viewer__empty-title { font-weight: 700; color: var(--tm-navy); font-size: 1rem !important; margin-bottom: .5rem !important; }
