/* ERS guide, hub, sector and location pages + "Common questions" blocks.
   Same palette and type as the Flatsome theme: maroon #8d1a27, charcoal #3b3132,
   blush #e2d0d0, Raleway. */
:root {
  --ers-maroon: #8d1a27;
  --ers-maroon-dark: #6f1420;
  --ers-red: #d83131;
  --ers-charcoal: #3b3132;
  --ers-ink: #2b2425;
  --ers-text: #4a4a4a;
  --ers-muted: #6b6264;
  --ers-blush: #e2d0d0;
  --ers-blush-soft: #f6eeee;
  --ers-line: #e6dcdc;
  --ers-radius: 14px;
}

.ers-main { background: #fff; color: var(--ers-text); }
.ers-wrap { max-width: 1250px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.ers-narrow { max-width: 860px; }

/* hero: charcoal band, same weight as the service page heroes, chevron notch like the site's section arrows */
.ers-hero { position: relative; background: var(--ers-charcoal); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.ers-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.3px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%); pointer-events: none; }
.ers-hero::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); border: 18px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ers-hero .ers-wrap { position: relative; }
.ers-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 10px 0 14px; max-width: 30ch; text-wrap: balance; }
.ers-lede { font-size: 1.15rem; line-height: 1.6; color: #efe6e6; max-width: 62ch; margin: 0 0 10px; }
.ers-metaline { font-size: .875rem; color: #cbbcbc; margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ers-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbbcbc; display: inline-block; }
.ers-crumbs { font-size: .85rem; color: #cbbcbc; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ers-crumbs a { color: #f1e6e6; text-decoration: none; }
.ers-crumbs a:hover { color: #fff; text-decoration: underline; }
.ers-sep { opacity: .5; }

/* article + sidebar */
.ers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 64px; }
.ers-article { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; color: var(--ers-text); }
.ers-article > p:first-child { font-size: 1.15rem; color: var(--ers-ink); }
.ers-article h2 { color: var(--ers-ink); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: 100px; text-wrap: balance; }
.ers-article h3 { color: var(--ers-ink); font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin: 1.8em 0 .5em; scroll-margin-top: 100px; }
.ers-article h2:first-child { margin-top: 0; }
.ers-article p { margin: 0 0 1.1em; }
.ers-article a { color: var(--ers-maroon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ers-article a:hover { color: var(--ers-red); }
.ers-article ul, .ers-article ol { margin: 0 0 1.3em 0; padding-left: 0; }
.ers-article li { margin: 0 0 .55em; list-style: none; position: relative; padding-left: 1.8em; }
.ers-article ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ers-maroon); box-shadow: 0 0 0 4px var(--ers-blush-soft); }
.ers-article ol { counter-reset: ers; }
.ers-article ol > li { counter-increment: ers; }
.ers-article ol > li::before { content: counter(ers); position: absolute; left: 0; top: .15em; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--ers-charcoal); color: #fff; font-size: .78em; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.ers-article strong { color: var(--ers-ink); }
.ers-table { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--ers-line); border-radius: 10px; }
.ers-table table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.ers-table th { background: var(--ers-charcoal); color: #fff; text-align: left; font-weight: 600; padding: 12px 14px; border: 0; }
.ers-table td { padding: 12px 14px; border-top: 1px solid var(--ers-line); vertical-align: top; color: var(--ers-text); }
.ers-table tr:nth-child(even) td { background: #fbf7f7; }

.ers-side { position: relative; }
.ers-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.ers-card { border-radius: var(--ers-radius); padding: 22px 22px; background: #fff; border: 1px solid var(--ers-line); }
.ers-card-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ers-ink); margin: 0 0 10px; }
.ers-card--talk { background: var(--ers-maroon); border-color: var(--ers-maroon); color: #fbeeee; box-shadow: 0 14px 34px -18px rgba(111, 20, 32, .55); }
.ers-card--talk .ers-card-title { color: #fff; font-size: 1.05rem; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.ers-card--talk p { font-size: .95rem; line-height: 1.55; margin: 0 0 14px; }
.ers-card--talk .ers-phone { display: flex; }
.ers-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; margin-bottom: 14px; }
.ers-phone:hover { color: #fff; text-decoration: underline; }
.ers-card--talk .ers-btn { background: #fff; color: var(--ers-maroon); }
.ers-card--talk .ers-btn:hover { background: var(--ers-blush-soft); color: var(--ers-maroon-dark); }
.ers-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 11px 20px; font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; background: var(--ers-maroon); color: #fff; transition: background .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.ers-btn:hover { background: var(--ers-maroon-dark); color: #fff; transform: translateY(-1px); }
.ers-btn:focus-visible, .ers-phone:focus-visible, .ers-tile:focus-visible, .ers-q summary:focus-visible, .ers-toc a:focus-visible { outline: 3px solid var(--ers-red); outline-offset: 3px; }
.ers-toc ol { margin: 0; padding: 0; counter-reset: toc; }
.ers-toc li { list-style: none; margin: 0; border-top: 1px solid var(--ers-line); }
.ers-toc li:first-child { border-top: 0; }
.ers-toc a { display: block; padding: 8px 0; font-size: .92rem; line-height: 1.4; color: var(--ers-text); text-decoration: none; }
.ers-toc a:hover { color: var(--ers-maroon); }
.ers-card--links ul { margin: 0; padding: 0; }
.ers-card--links li { list-style: none; margin: 0 0 8px; }
.ers-card--links a { color: var(--ers-maroon); font-size: .93rem; line-height: 1.4; }

/* FAQ band: blush, like the site's tinted sections */
.ers-faq { background: var(--ers-blush); padding: 56px 0 64px; position: relative; }
.ers-faq .section-title-container { margin-top: 0; }
.ers-q { background: #fff; border-radius: 12px; margin: 0 0 12px; box-shadow: 0 6px 18px -14px rgba(59, 49, 50, .5); }
.ers-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.ers-q summary::-webkit-details-marker { display: none; }
.ers-q summary h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--ers-ink); margin: 0; width: auto; }
.ers-q-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ers-blush-soft); position: relative; transition: background .2s ease; }
.ers-q-icon::before, .ers-q-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--ers-maroon); transform: translate(-50%, -50%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ers-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.ers-q[open] .ers-q-icon { background: var(--ers-maroon); }
.ers-q[open] .ers-q-icon::before, .ers-q[open] .ers-q-icon::after { background: #fff; }
.ers-q[open] .ers-q-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.ers-a { padding: 0 22px 20px; color: var(--ers-text); line-height: 1.7; }
.ers-a p { margin: 0 0 .8em; }
.ers-a a { color: var(--ers-maroon); text-decoration: underline; }
.ers-a ul { margin: 0 0 .8em 1.1em; }

/* closing band */
.ers-cta { background: var(--ers-charcoal); color: #eadede; padding: 52px 0; }
.ers-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ers-cta h2 { color: #fff; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); font-weight: 500; margin: 0 0 6px; max-width: 30ch; }
.ers-cta p { margin: 0; color: #cbbcbc; font-size: .95rem; }
.ers-cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ers-btn--light { background: #fff; color: var(--ers-maroon); }
.ers-btn--light:hover { background: var(--ers-blush); color: var(--ers-maroon-dark); }
.ers-phone--light { margin: 0; }

/* hubs */
.ers-band { padding: 48px 0 24px; }
.ers-band + .ers-band { padding-top: 16px; }
.ers-services-strip { padding-top: 34px; }
.ers-services-strip ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.ers-services-strip li { list-style: none; margin: 0; }
.ers-services-strip a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; background: var(--ers-blush-soft); color: var(--ers-maroon); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s ease, color .2s ease; }
.ers-services-strip a:hover { background: var(--ers-maroon); color: #fff; }
.ers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ers-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ers-line); border-radius: var(--ers-radius); overflow: hidden; text-decoration: none; color: var(--ers-text); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.ers-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(59, 49, 50, .55); border-color: var(--ers-blush); color: var(--ers-text); }
.ers-tile-img { display: block; aspect-ratio: 16 / 10; background: var(--ers-blush-soft); overflow: hidden; }
.ers-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ers-tile:hover .ers-tile-img img { transform: scale(1.03); }
.ers-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ers-tile--text { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--ers-blush-soft) 100%); }
.ers-tile--text .ers-tile-body { padding-top: 22px; }
.ers-tile-label { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ers-maroon); background: var(--ers-blush-soft); padding: 4px 9px; border-radius: 99px; }
.ers-tile-title { font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--ers-ink); }
.ers-tile-text { font-size: .93rem; line-height: 1.55; color: var(--ers-muted); flex: 1; }
.ers-tile-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ers-maroon); }

@media (max-width: 1000px) {
  .ers-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ers-sticky { position: static; }
  .ers-side .ers-toc { display: none; }
}
@media (max-width: 549px) {
  .ers-hero { padding: 36px 0 48px; }
  .ers-lede { font-size: 1.02rem; }
  .ers-layout { padding-top: 28px; }
  .ers-article { font-size: 1rem; }
  .ers-faq { padding: 40px 0 48px; }
  .ers-q summary { padding: 16px 16px; }
  .ers-a { padding: 0 16px 18px; }
  .ers-cta { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ers-tile, .ers-tile-img img, .ers-btn, .ers-q-icon::before, .ers-q-icon::after { transition: none; }
}

.ers-topics-strip { padding-top: 28px; padding-bottom: 8px; }
