dialog {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  max-width: calc(100vw - 28px);
  max-height: 90dvh;
  box-shadow: var(--shadow-lg);
  margin: auto;
  overscroll-behavior: contain;
}
dialog[open] {
  animation: dialog-in 0.24s var(--ease);
}
dialog::backdrop {
  background: rgba(15, 23, 34, 0.64);
  backdrop-filter: blur(6px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-top .eyebrow {
  font-size: 12.5px;
}
.dialog-top .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}
.dialog-top .ic {
  width: 16px;
}
.dialog-body {
  padding: 26px;
}
.dialog-body h2,
.reader h1 {
  line-height: 1.45;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.9px;
}
.dialog-body > p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
  margin-top: 10px;
}
.dialog-quick-call {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.detail-list {
  padding-inline-start: 20px;
  margin-block: 16px 24px;
  font-size: 14px;
  list-style: disc;
}
.detail-list li {
  margin-top: 7px;
}
.detail-list li::marker {
  color: var(--orange);
}
.gallery-dialog {
  width: 1040px;
  background: #fff;
}
.lightbox-stage {
  position: relative;
  background: var(--pale);
}
.lightbox-stage > img {
  height: min(60dvh, 620px);
  width: 100%;
  object-fit: contain;
}
.lightbox-stage .prev,
.lightbox-stage .next {
  position: absolute;
  top: calc(50% - 20px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}
.lightbox-stage .prev {
  right: 14px;
}
.lightbox-stage .next {
  left: 14px;
}
.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.gallery-foot h3 {
  font-size: 19px;
}
.gallery-foot p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.gallery-foot-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.gallery-count {
  color: var(--muted);
  white-space: nowrap;
}
.quote-dialog {
  width: 580px;
}
.quote-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 400;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  background: #fff;
  border-color: var(--orange);
}
.quote-form textarea {
  resize: vertical;
  min-height: 86px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-note,
.form-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.brief-summary {
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin-block: 16px;
}

/* Source Viewer Modal */
.source-dialog {
  width: min(1150px, 96vw);
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.source-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  height: min(49vh, 510px);
  border-top: 1px solid var(--line);
}
.source-list {
  min-height: 0;
  overflow: auto;
  border-inline-end: 1px solid var(--line);
  padding: 8px;
  background: var(--paper);
}
.source-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  text-align: left;
  direction: ltr;
  font: 11px/1.7 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.source-file.active {
  background: rgba(230, 90, 37, 0.12);
  color: var(--deep-orange);
}
.source-file .ic {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.source-code {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.source-toolbar button {
  font-size: 12px;
  color: var(--deep-orange);
  font-weight: 600;
}
.source-code pre {
  overflow: auto;
  direction: ltr;
  text-align: left;
  white-space: pre;
  flex: 1;
  margin: 0;
  padding: 15px;
  font: 11px/1.8 ui-monospace, monospace;
  background: #fcfcfd;
  color: #334155;
}
.source-preview {
  padding: 20px;
  min-height: 0;
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--paper);
}
.source-preview img {
  max-height: 32vh;
  object-fit: contain;
}
.source-instructions {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.source-instructions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.source-instructions ol {
  list-style: decimal;
  padding-inline-start: 21px;
  margin-top: 12px;
}

/* Two-Column Modern Layout + Sticky Conversion Sidebars (Services & Articles) */
.page-shell {
  padding-block: 42px 84px;
  background: var(--paper);
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.page-main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}
.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.detail-header {
  margin-top: 22px;
}
.detail-header .page-heading {
  margin-top: 10px;
}
.detail-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-quick-actions .btn {
  min-height: 43px;
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: 999px;
}
.detail-media {
  margin-block: 26px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--pale);
}
.detail-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}
.reader-text h2 {
  font-size: 23px;
  line-height: 1.45;
  margin: 26px 0 12px;
}
.reader-text h3 {
  margin: 22px 0 6px;
  font-size: 20px;
}
.reader-text p {
  margin-block: 12px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}
.reader-text .lead-p {
  font-size: 17.5px;
  color: var(--ink);
  font-weight: 500;
}
.reader-text ul {
  padding-inline-start: 22px;
}
.spec-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.spec-card {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
}
.spec-card .mono {
  color: var(--deep-orange);
  font-weight: 700;
}
.spec-card p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}
.coverage-card {
  margin-top: 30px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.coverage-card h2 {
  font-size: 21px;
  margin: 8px 0 6px;
}
.coverage-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.service-cta-box {
  margin-top: 30px;
  padding: 26px;
  border-radius: var(--r-md);
  background: linear-gradient(125deg, #0f1722 0%, #1c2939 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.service-cta-box .eyebrow {
  color: #cbd5e1;
}
.service-cta-box h2 {
  font-size: 21px;
  margin: 8px 0 4px;
  color: #fff;
}
.service-cta-box p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
}
.service-cta-box .btn.call-btn {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.related-block {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* Sticky Sidebar Cards */
.page-sidebar {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-cta-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(230, 90, 37, 0.28);
  box-shadow: var(--shadow-md);
}
.sidebar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--wa-soft);
  color: var(--wa);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.sidebar-cta-card h3 {
  font-size: 19px;
  line-height: 1.45;
}
.sidebar-cta-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.8;
}
.sidebar-cta-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.sidebar-cta-actions .btn {
  width: 100%;
  min-height: 44px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
}
.sidebar-trust-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.sidebar-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-trust-list .ic {
  width: 15px;
  height: 15px;
  color: var(--orange);
}
.sidebar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.sidebar-card-head h3,
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
}
.sidebar-card-head .mono {
  color: var(--deep-orange);
  font-weight: 700;
}
.sidebar-nav-list {
  display: grid;
  gap: 6px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sidebar-nav-link:hover {
  background: var(--paper);
  color: var(--deep-orange);
}
.sidebar-nav-link.is-current {
  background: rgba(230, 90, 37, 0.1);
  border-color: rgba(230, 90, 37, 0.25);
  color: var(--deep-orange);
  font-weight: 700;
}
.sidebar-nav-link .mono {
  color: var(--muted);
}
.sidebar-nav-link.is-current .mono {
  color: var(--deep-orange);
}
.sidebar-nav-link .ic {
  width: 14px;
  height: 14px;
  margin-inline-start: auto;
  color: var(--muted);
}
.sidebar-mini-services {
  display: grid;
  gap: 10px;
}
.sidebar-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.sidebar-mini-card:hover {
  border-color: var(--orange);
  background: #fff;
}
.sidebar-mini-card img {
  width: 68px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-mini-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}
.sidebar-mini-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Services Archive Cards */
.archive-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.archive-services-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-archive-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.service-archive-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-archive-media {
  position: relative;
  background: var(--pale);
}
.service-archive-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-archive-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-archive-body h2 {
  font-size: 19px;
  line-height: 1.45;
}
.service-archive-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.service-archive-body .read-more {
  margin-top: auto;
  padding-top: 8px;
}

.archive-list {
  display: grid;
  gap: 22px;
}
.archive-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.archive-entry h2 {
  font-size: 24px;
}
.archive-entry p {
  font-size: 14px;
  color: var(--muted);
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.map-frame {
  border: 0;
  width: 100%;
  min-height: 200px;
  border-radius: var(--r-sm);
}
.photostack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photostack img {
  width: 140px;
  max-height: 130px;
  border-radius: var(--r-sm);
}
.count-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--deep-orange);
}
.custom-logo {
  max-width: 155px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.wp-caption,
.wp-caption-text,
.gallery-caption {
  max-width: 100%;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.alignleft {
  float: left;
  margin-right: 1rem;
}
.alignright {
  float: right;
  margin-left: 1rem;
}
.pagination {
  margin-top: 26px;
}
.pagination .page-numbers {
  padding: 6px 12px;
  border-radius: var(--r-sm);
}
.pagination .current {
  background: var(--ink);
  color: #fff;
}
.print-only {
  display: none;
}
