/* ============================================================
 * Services: service pages, /services/ archive, nav dropdown, blog service box (25 Nov 2026)
 * Tech Minimal layer. Loads after tech-minimal.css (inc/services.php).
 * Off-white ground, hairlines, mono lowercase labels, photos in a 14px frame, red as a signal only.
 * ============================================================ */

/* ── Breadcrumb ── */
html[data-theme="tm"] .crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted);
  margin: 0 0 clamp(32px, 4vw, 56px);
}
html[data-theme="tm"] .crumbs a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
html[data-theme="tm"] .crumbs a:hover { color: var(--ink); border-color: var(--outline); }
html[data-theme="tm"] .crumbs [aria-current] { color: var(--ink); }
html[data-theme="tm"] .post__header .crumbs { margin-bottom: 28px; }

/* ── Service hero: copy left, photo or graphic right ── */
html[data-theme="tm"] .sp-hero { padding-top: clamp(32px, 4vw, 56px); }
html[data-theme="tm"] .sp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 5vw, 80px); align-items: center;
}
html[data-theme="tm"] .sp-hero__grid--solo { grid-template-columns: 1fr; }
html[data-theme="tm"] .sp-hero__kw {
  display: flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font-family: var(--f-mono); font-weight: 400; font-size: 14px; line-height: 1.4; letter-spacing: 0; text-transform: lowercase; color: var(--muted);
}
html[data-theme="tm"] .sp-hero__kw::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
html[data-theme="tm"] .sp-hero__line { display: block; }
html[data-theme="tm"] .sp-hero--split .sp-hero__title { max-width: none; margin: 0 0 28px; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.03; text-wrap: balance; }
html[data-theme="tm"] .sp-hero--split .sp-hero__subtitle { max-width: 46ch; margin: 0 0 36px; }
html[data-theme="tm"] .sp-hero--split .sp-hero__ctas { margin-bottom: 0; }
html[data-theme="tm"] .sp-hero--split .sp-hero__metrics { margin-top: clamp(56px, 7vw, 96px); }
html[data-theme="tm"] .sp-hero__visual { border-radius: 14px; overflow: hidden; background: #EFEFEC; aspect-ratio: 4 / 5; }
html[data-theme="tm"] .sp-hero__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-theme="tm"] .sp-hero__visual--graphic { aspect-ratio: 1 / 1; background: var(--ground); border: 1px solid var(--rule); }
html[data-theme="tm"] .svc-graphic { display: block; width: 100%; height: 100%; }
html[data-theme="tm"] .svc-archive .sp-hero { padding-bottom: clamp(56px, 6vw, 88px); }
html[data-theme="tm"] .svc-archive .sp-hero__title { max-width: 14ch; }
html[data-theme="tm"] .svc-archive .sp-hero__ctas { margin-bottom: 0; }

/* ── New sections share the page rhythm ── */
html[data-theme="tm"] .sp-what, html[data-theme="tm"] .sp-guides, html[data-theme="tm"] .sp-others, html[data-theme="tm"] .svc-index {
  background: transparent; padding: var(--section-pad-y) 0; border-top: 1px solid var(--rule);
}
html[data-theme="tm"] .sp-what { padding: var(--section-pad-y-tight) 0; }
html[data-theme="tm"] .sp-guides .badge, html[data-theme="tm"] .sp-others .badge { display: block; margin-bottom: 20px; }
html[data-theme="tm"] .sp-guides__header, html[data-theme="tm"] .sp-others__header { text-align: left; max-width: 820px; margin: 0 0 clamp(48px, 6vw, 80px); }
html[data-theme="tm"] .sp-guides__subtitle { margin: 20px 0 0; max-width: 56ch; color: var(--body); }
html[data-theme="tm"] .sp-guides__more { margin: 48px 0 0; }
/* Guides: a two-column hairline list (no dependence on post covers) */
html[data-theme="tm"] .guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
html[data-theme="tm"] .guide-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--rule); color: var(--ink); }
html[data-theme="tm"] .guide-row__n { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; color: var(--muted); }
html[data-theme="tm"] .guide-row__title { font-weight: 500; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; letter-spacing: -0.015em; margin: 0; transition: color .18s; text-wrap: balance; }
html[data-theme="tm"] .guide-row__arrow { font-family: var(--f-mono); color: var(--muted); transition: transform .18s var(--ease-tm), color .18s; }
html[data-theme="tm"] .guide-row:hover .guide-row__title { color: var(--accent); }
html[data-theme="tm"] .guide-row:hover .guide-row__arrow { transform: translateX(4px); color: var(--accent); }

/* What it is: the question left, the answer large on the right */
html[data-theme="tm"] .sp-what__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
html[data-theme="tm"] .sp-what__q { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
html[data-theme="tm"] .sp-what__a p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-2); margin: 0; }

/* Pain points lose the old cross icon: a hairline and the words */
html[data-theme="tm"] .sp-pain__icon { display: none; }

/* Photo band */
html[data-theme="tm"] .sp-band { padding: 0 0 var(--section-pad-y); }
html[data-theme="tm"] .sp-band__frame { border-radius: 14px; overflow: hidden; background: #EFEFEC; }
html[data-theme="tm"] .sp-band__frame img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
html[data-theme="tm"] .sp-features:has(+ .sp-band) { padding-bottom: clamp(56px, 6vw, 80px); }
html[data-theme="tm"] .sp-band + .sp-process { border-top: 0; padding-top: 0; }

/* FAQ question keeps its look inside an h3 */
html[data-theme="tm"] .sp-faq__h { margin: 0; font: inherit; letter-spacing: inherit; }
html[data-theme="tm"] .sp-faq__question { width: 100%; text-align: left; }

/* Service rows: other services, nav-independent */
html[data-theme="tm"] .svc-list { border-top: 1px solid var(--rule); }
html[data-theme="tm"] .svc-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule); color: var(--ink);
}
html[data-theme="tm"] .svc-row__name { font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.025em; transition: color .18s; }
html[data-theme="tm"] .svc-row__hook { color: var(--body); font-size: 17px; }
html[data-theme="tm"] .svc-row__arrow { font-family: var(--f-mono); color: var(--muted); transition: transform .18s var(--ease-tm), color .18s; }
html[data-theme="tm"] .svc-row:hover .svc-row__name { color: var(--accent); }
html[data-theme="tm"] .svc-row:hover .svc-row__arrow { transform: translateX(4px); color: var(--accent); }

/* ── /services/ archive ── */
html[data-theme="tm"] .svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(32px, 4vw, 56px); }
html[data-theme="tm"] .svc-card { display: grid; align-content: start; gap: 0; color: var(--ink); }
html[data-theme="tm"] .svc-card__visual { display: block; border-radius: 14px; overflow: hidden; background: #EFEFEC; aspect-ratio: 16 / 10; margin-bottom: 28px; }
html[data-theme="tm"] .svc-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-tm); }
html[data-theme="tm"] .svc-card:hover .svc-card__visual img { transform: scale(1.02); }
html[data-theme="tm"] .svc-card__visual--graphic { background: var(--ground); border: 1px solid var(--rule); }
html[data-theme="tm"] .svc-card__visual--graphic .svc-graphic { width: auto; height: 100%; margin: 0 auto; }
html[data-theme="tm"] .svc-card__num { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
html[data-theme="tm"] .svc-card__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.04em; margin: 0 0 10px; transition: color .18s; }
html[data-theme="tm"] .svc-card:hover .svc-card__title { color: var(--accent); }
html[data-theme="tm"] .svc-card__hook { font-size: 19px; color: var(--ink-2); margin: 0 0 20px; }
html[data-theme="tm"] .svc-card__items { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .svc-card__items li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--body); }
html[data-theme="tm"] .svc-card .link { justify-self: start; }

/* ── Nav: Services dropdown (desktop). Opens on hover and on keyboard focus. ── */
html[data-theme="tm"] .nav__item { position: relative; display: flex; align-items: center; height: var(--nav-h); }
html[data-theme="tm"] .nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
html[data-theme="tm"] .nav__chev { width: 10px; height: 10px; transition: transform .18s var(--ease-tm); }
html[data-theme="tm"] .nav__item:hover .nav__chev, html[data-theme="tm"] .nav__item:focus-within .nav__chev { transform: rotate(180deg); }
html[data-theme="tm"] .nav__menu {
  position: absolute; top: calc(100% - 10px); left: -20px; width: 340px; padding: 8px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-soft);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s var(--ease-tm), visibility 0s .16s;
}
html[data-theme="tm"] .nav__item:hover .nav__menu, html[data-theme="tm"] .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
html[data-theme="tm"] .nav__links .nav__menu a {
  display: block; padding: 11px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; color: var(--ink);
  transition: background .15s, color .15s;
}
html[data-theme="tm"] .nav__links .nav__menu a:hover, html[data-theme="tm"] .nav__links .nav__menu a:focus-visible { background: var(--ground); color: var(--ink); }
html[data-theme="tm"] .nav__links .nav__menu a.nav__menu-all {
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); border-radius: 0 0 10px 10px;
  font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted);
}
html[data-theme="tm"] .nav__links .nav__menu a.nav__menu-all:hover { color: var(--ink); }
/* Mobile menu: a small label above the service links */
html[data-theme="tm"] .nav__mobile .nav__mobile-label {
  font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted);
  padding: 16px 0 6px; border-bottom: 0; letter-spacing: 0;
}

/* ── Blog post: the service this guide belongs to ── */
html[data-theme="tm"] .post__service { margin: 56px 0 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; }
html[data-theme="tm"] .post__service-label { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 13.5px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .post__service-name { font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; color: var(--ink); }
html[data-theme="tm"] .post__service-hook { grid-column: 1; color: var(--body); font-size: 17px; margin: 0; }
html[data-theme="tm"] .post__service .link { grid-column: 2; grid-row: 2 / 4; align-self: center; }
html[data-theme="tm"] .blog__service { margin: 20px 0 0; font-size: 17px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  html[data-theme="tm"] .sp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  html[data-theme="tm"] .sp-hero__visual { aspect-ratio: 16 / 10; }
  html[data-theme="tm"] .sp-hero__visual--graphic { aspect-ratio: 16 / 11; }
  html[data-theme="tm"] .sp-hero__visual--graphic .svc-graphic { width: auto; margin: 0 auto; }
  html[data-theme="tm"] .sp-what__grid { grid-template-columns: 1fr; gap: 20px; }
  html[data-theme="tm"] .svc-row { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-theme="tm"] .svc-row__hook { grid-column: 1; grid-row: 2; }
  html[data-theme="tm"] .svc-row__arrow { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  html[data-theme="tm"] .crumbs { margin-bottom: 28px; font-size: 13px; }
  html[data-theme="tm"] .sp-hero--split .sp-hero__title { font-size: clamp(36px, 10.5vw, 48px); margin-bottom: 20px; }
  html[data-theme="tm"] .sp-hero__kw { margin-bottom: 16px; font-size: 13px; }
  html[data-theme="tm"] .sp-hero--split .sp-hero__subtitle { margin-bottom: 28px; }
  html[data-theme="tm"] .sp-hero__metrics { gap: 24px 40px; }
  html[data-theme="tm"] .sp-band__frame img { aspect-ratio: 16 / 10; }
  html[data-theme="tm"] .svc-grid { grid-template-columns: 1fr; }
  html[data-theme="tm"] .guide-list { grid-template-columns: 1fr; }
  html[data-theme="tm"] .post__service { grid-template-columns: 1fr; }
  html[data-theme="tm"] .post__service .link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
