/* Digital Country Services layout 1.2.29 — scoped to the Services index. */
body[data-page-path="/services/"] {
  --dc-services-surface: #fff;
  --dc-services-wash: #fbf8fc;
  --dc-services-line: #ddcddd;
  --dc-services-ink: #2e1a4c;
  --dc-services-muted: #6d6677;
  --dc-services-accent: #bd0052;
  --dc-services-glow: #fce7f1;
}
body[data-page-path="/services/"] #main > .directory-heading {
  margin: 18px 16px 0;
  padding: clamp(30px, 4vw, 52px) 0 clamp(36px, 4.8vw, 64px);
  border: 1px solid #b99db6;
  border-radius: 28px;
  background: radial-gradient(ellipse at 90% 18%, #fce4ef 0, transparent 59%), linear-gradient(130deg, #fff 20%, #fcf9fd 70%, #f2ecf7);
  color: var(--dc-services-ink);
}
body[data-page-path="/services/"] .directory-heading > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  column-gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
body[data-page-path="/services/"] .directory-heading .breadcrumb {
  grid-column: 1 / -1;
  margin: 0 0 clamp(32px, 4vw, 50px);
  color: var(--dc-services-muted);
}
body[data-page-path="/services/"] .directory-heading .breadcrumb a:hover { color: var(--dc-services-accent); }
body[data-page-path="/services/"] .directory-heading .eyebrow {
  grid-column: 1;
  margin: 0 0 22px;
  color: var(--dc-services-accent);
  font-size: .75rem;
}
body[data-page-path="/services/"] .directory-heading h1 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2.4rem, 4.1vw, 3.65rem);
  line-height: 1.13;
  letter-spacing: -.04em;
  word-spacing: .025em;
  text-wrap: balance;
}
body[data-page-path="/services/"] .directory-heading h1 .accent { color: var(--dc-services-accent); }
body[data-page-path="/services/"] .directory-heading > .container > p {
  grid-column: 1;
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dc-services-muted);
}
body[data-page-path="/services/"] .heading-service-icons {
  grid-column: 2;
  grid-row: 2 / 5;
  display: grid;
  gap: 10px;
  align-self: center;
  margin: 0;
  padding: 22px;
  border: 1px solid #e5cedf;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffffdf, #fff8fc);
  box-shadow: 0 24px 56px -36px #b5005680;
}
body[data-page-path="/services/"] .heading-service-icons > span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #ece3ee;
  border-radius: 12px;
  background: #fff;
  color: var(--dc-services-ink);
  font-size: .875rem;
  font-weight: 650;
}
body[data-page-path="/services/"] .heading-service-icons svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--dc-services-accent);
}
body[data-page-path="/services/"] .heading-service-icons > span:nth-child(2) svg { color: #00779f; }
body[data-page-path="/services/"] .heading-service-icons > span:nth-child(3) svg { color: #7d439b; }
body[data-page-path="/services/"] .heading-service-icons > span:nth-child(4) svg { color: #9c6a04; }
body[data-page-path="/services/"] #main > .section {
  padding: 18px 0 0;
}
body[data-page-path="/services/"] .services-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
body[data-page-path="/services/"] .service-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--dc-services-line);
  border-radius: 20px;
  background: var(--dc-services-surface);
  box-shadow: 0 12px 40px -34px #2e1a4c60;
}
body[data-page-path="/services/"] .service-sidebar h2 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: var(--dc-services-muted);
  font-size: .6875rem;
}
body[data-page-path="/services/"] .service-sidebar > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e9dfeb;
  border-radius: 12px;
  background: var(--dc-services-wash);
  color: var(--dc-services-ink);
  font-size: .8125rem;
  line-height: 1.5;
}
body[data-page-path="/services/"] .service-sidebar > a svg { color: var(--dc-services-accent); }
body[data-page-path="/services/"] .service-sidebar > a:hover,
body[data-page-path="/services/"] .service-sidebar > a.active {
  border-color: #cc8dae;
  background: #fff0f7;
  color: var(--dc-services-accent);
}
body[data-page-path="/services/"] .service-sidebar .sidebar-help {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  padding: 12px 2px 0;
  border-top: 1px solid #eee4ed;
  border-radius: 0;
  background: transparent;
  color: var(--dc-services-muted);
}
body[data-page-path="/services/"] .sidebar-help > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 9px;
  background: #fff0f7;
  color: var(--dc-services-accent);
}
body[data-page-path="/services/"] .sidebar-help > span svg { width: 18px; height: 18px; }
body[data-page-path="/services/"] .sidebar-help strong {
  flex: 1;
  margin: 0;
  font-size: .8125rem;
  font-weight: 500;
}
body[data-page-path="/services/"] .sidebar-help button {
  min-height: 40px;
  margin: 0;
  padding: 9px 18px;
  border-radius: 10px;
  background: #f50067;
  color: #fff;
  font-size: .8125rem;
}
body[data-page-path="/services/"] .services-directory > div { min-width: 0; }
body[data-page-path="/services/"] .directory-group {
  margin: 0 0 24px;
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--dc-services-line);
  border-radius: 26px;
  background: var(--dc-services-surface);
  scroll-margin-top: 116px;
}
body[data-page-path="/services/"] .directory-group:last-child { margin-bottom: 0; }
body[data-page-path="/services/"] .directory-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
  align-items: stretch;
  height: auto;
  min-height: 220px;
  margin: 0 0 24px;
  border: 1px solid #e5c9dc;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(115deg, #fff7fb, #f1eaf8);
}
body[data-page-path="/services/"] .directory-cover::after { content: none; }
body[data-page-path="/services/"] .directory-cover > img {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}
body[data-page-path="/services/"] .directory-title {
  grid-column: 1;
  grid-row: 1;
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  align-self: center;
  color: var(--dc-services-ink);
}
body[data-page-path="/services/"] .directory-title > div { min-width: 0; }
body[data-page-path="/services/"] .directory-title h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
body[data-page-path="/services/"] .directory-title p {
  margin: 12px 0 0;
  color: var(--dc-services-muted);
  font-size: .9375rem;
  line-height: 1.7;
}
body[data-page-path="/services/"] .directory-title .service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #f4d2e1;
  border-radius: 12px;
  background: #fff;
  color: var(--dc-services-accent);
}
body[data-page-path="/services/"] .directory-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body[data-page-path="/services/"] .directory-link,
body[data-page-path="/services/"] .directory-link.primary {
  display: flex;
  gap: 14px;
  min-height: 106px;
  padding: 22px;
  border: 1px solid #e6dce8;
  border-radius: 16px;
  background: var(--dc-services-surface);
  box-shadow: 0 12px 30px -25px #2e1a4c40;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body[data-page-path="/services/"] .directory-link.primary { background: var(--dc-services-wash); border-color: #d7bedf; }
body[data-page-path="/services/"] .directory-link:hover {
  transform: translateY(-2px);
  border-color: #c778a1;
  box-shadow: 0 14px 26px -22px #ad005890;
}
body[data-page-path="/services/"] .directory-copy strong { color: var(--dc-services-ink); font-size: .9375rem; }
body[data-page-path="/services/"] .directory-copy > span,
body[data-page-path="/services/"] .directory-link.primary .directory-copy > span { color: var(--dc-services-muted); font-size: .8125rem; }
body[data-page-path="/services/"] .directory-icon,
body[data-page-path="/services/"] .directory-link.primary .directory-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff0f7;
  color: var(--dc-services-accent) !important;
}
body[data-page-path="/services/"] .directory-copy .directory-points { display: none !important; }
body[data-page-path="/services/"] .directory-group#software .directory-items { grid-template-columns: minmax(0, 1fr); }
body[data-page-path="/services/"] #main > .cta-section { padding: 24px 0 48px; }
body[data-page-path="/services/"] .cta-block {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #d4b6cd;
  border-radius: 26px;
  background: radial-gradient(ellipse at 95% 10%, #f9d9e8, transparent 65%), linear-gradient(130deg, #fff, #f7effa);
  color: var(--dc-services-ink);
}
body[data-page-path="/services/"] .cta-block::before { display: none; }
body[data-page-path="/services/"] .cta-block .eyebrow { color: var(--dc-services-accent); }
body[data-page-path="/services/"] .cta-block h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
body[data-page-path="/services/"] .cta-block p { color: var(--dc-services-muted); line-height: 1.8; }
body[data-page-path="/services/"] .cta-actions > a { color: var(--dc-services-ink); }
body[data-page-path="/services/"] #main :is(a, button):focus-visible { outline: 3px solid #007caa; outline-offset: 4px; }

/* Keep the site's existing dark-mode switch readable. */
html[data-theme="dark"] body[data-page-path="/services/"] {
  --dc-services-surface: #241730;
  --dc-services-wash: #2d1d3b;
  --dc-services-line: #57405e;
  --dc-services-ink: #f6edf9;
  --dc-services-muted: #d1c2d8;
  --dc-services-accent: #ff9ac6;
}
html[data-theme="dark"] body[data-page-path="/services/"] :is(.directory-heading, .cta-block) { background: linear-gradient(130deg, #281932, #38203c); border-color: #674362; }
html[data-theme="dark"] body[data-page-path="/services/"] .heading-service-icons { background: #2a1c35; border-color: #63405c; }
html[data-theme="dark"] body[data-page-path="/services/"] .heading-service-icons > span { background: #32223e; border-color: #654662; color: var(--dc-services-ink); }
html[data-theme="dark"] body[data-page-path="/services/"] .service-sidebar > a { border-color: #5c4262; }
html[data-theme="dark"] body[data-page-path="/services/"] .service-sidebar > a:is(:hover, .active) { background: #43233d; border-color: #b45a8a; }
html[data-theme="dark"] body[data-page-path="/services/"] .sidebar-help { border-color: #57405e; }
html[data-theme="dark"] body[data-page-path="/services/"] .directory-cover { background: linear-gradient(110deg, #36213e, #2a1b3a); border-color: #684861; }
html[data-theme="dark"] body[data-page-path="/services/"] .directory-link { border-color: #5c4262; }
html[data-theme="dark"] body[data-page-path="/services/"] .directory-link.primary { border-color: #84608c; }
html[data-theme="dark"] body[data-page-path="/services/"] .directory-link:hover { border-color: #da83ad; }
html[data-theme="dark"] body[data-page-path="/services/"] .directory-icon,
html[data-theme="dark"] body[data-page-path="/services/"] .directory-link.primary .directory-icon,
html[data-theme="dark"] body[data-page-path="/services/"] .directory-title .service-icon { background: #44243c; border-color: #744762; }

@media (max-width: 980px) {
  body[data-page-path="/services/"] .directory-heading > .container { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .8fr); column-gap: 28px; }
  body[data-page-path="/services/"] .directory-heading h1 { font-size: clamp(2.2rem, 4.8vw, 3rem); }
  body[data-page-path="/services/"] .heading-service-icons { padding: 16px; gap: 8px; }
  body[data-page-path="/services/"] .service-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page-path="/services/"] .directory-cover { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); }
}
@media (max-width: 700px) {
  body[data-page-path="/services/"] #main > .directory-heading { margin: 12px 12px 0; border-radius: 20px; padding: 25px 0 30px; }
  body[data-page-path="/services/"] .directory-heading > .container,
  body[data-page-path="/services/"] .services-directory,
  body[data-page-path="/services/"] .cta-section > .container { width: calc(100% - 40px); }
  body[data-page-path="/services/"] .directory-heading > .container { display: block; }
  body[data-page-path="/services/"] .directory-heading .breadcrumb { margin-bottom: 30px; }
  body[data-page-path="/services/"] .directory-heading .eyebrow { font-size: .625rem; letter-spacing: .11em; margin-bottom: 18px; }
  body[data-page-path="/services/"] .directory-heading h1 { font-size: clamp(2rem, 8.2vw, 2.8rem); line-height: 1.16; letter-spacing: -.035em; }
  body[data-page-path="/services/"] .directory-heading > .container > p { margin-top: 20px; font-size: .9375rem; line-height: 1.8; }
  body[data-page-path="/services/"] .heading-service-icons { margin-top: 26px; padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-radius: 16px; }
  body[data-page-path="/services/"] .heading-service-icons > span { gap: 8px; padding: 8px; min-height: 48px; font-size: .6875rem; }
  body[data-page-path="/services/"] .heading-service-icons > span:last-child { grid-column: 1 / -1; }
  body[data-page-path="/services/"] .heading-service-icons svg { width: 18px; height: 18px; flex-basis: 18px; }
  body[data-page-path="/services/"] .service-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 8px; border-radius: 18px; }
  body[data-page-path="/services/"] .service-sidebar > a { padding: 10px; min-height: 66px; font-size: .75rem; gap: 8px; }
  body[data-page-path="/services/"] .service-sidebar > a:last-of-type { grid-column: 1 / -1; min-height: 48px; }
  body[data-page-path="/services/"] .service-sidebar > a svg { width: 18px; height: 18px; }
  body[data-page-path="/services/"] .sidebar-help { gap: 10px; }
  body[data-page-path="/services/"] .sidebar-help > span { display: none; }
  body[data-page-path="/services/"] .sidebar-help strong { font-size: .75rem; line-height: 1.6; }
  body[data-page-path="/services/"] .sidebar-help button { padding: 9px 12px; white-space: nowrap; }
  body[data-page-path="/services/"] .directory-group { padding: 14px; border-radius: 20px; margin-bottom: 20px; scroll-margin-top: 108px; }
  body[data-page-path="/services/"] .directory-cover { grid-template-columns: minmax(0, 1fr); border-radius: 14px; margin-bottom: 14px; }
  body[data-page-path="/services/"] .directory-cover > img { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 1.7; }
  body[data-page-path="/services/"] .directory-title { grid-column: 1; grid-row: 2; padding: 22px 16px; gap: 12px; }
  body[data-page-path="/services/"] .directory-title h2 { font-size: 1.375rem; line-height: 1.3; }
  body[data-page-path="/services/"] .directory-title p { font-size: .8125rem; margin-top: 10px; line-height: 1.7; }
  body[data-page-path="/services/"] .directory-title .service-icon { width: 36px; height: 36px; border-radius: 10px; }
  body[data-page-path="/services/"] .directory-title .service-icon svg { width: 19px; height: 19px; }
  body[data-page-path="/services/"] .directory-items { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body[data-page-path="/services/"] .directory-link,
  body[data-page-path="/services/"] .directory-link.primary { padding: 16px; gap: 12px; min-height: 96px; border-radius: 13px; }
  body[data-page-path="/services/"] .directory-copy strong { font-size: .875rem; }
  body[data-page-path="/services/"] .directory-copy > span { font-size: .8125rem; }
  body[data-page-path="/services/"] .directory-icon { width: 32px; height: 32px; border-radius: 9px; }
  body[data-page-path="/services/"] .cta-block { border-radius: 20px; padding: 28px 22px; gap: 24px; }
  body[data-page-path="/services/"] .cta-block h2 { font-size: 1.875rem; }
  body[data-page-path="/services/"] .cta-block p { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-path="/services/"] .directory-link { transition: none; }
  body[data-page-path="/services/"] .directory-link:hover { transform: none; }
}
@media print {
  body[data-page-path="/services/"] #main > .directory-heading,
  body[data-page-path="/services/"] .directory-group,
  body[data-page-path="/services/"] .cta-block { background: #fff; color: #222; border-color: #ccc; }
  body[data-page-path="/services/"] .heading-service-icons { box-shadow: none; }
}

