/* Subpage scale (larger type, spacing and cards) and the Tekniska tjänster timeline. Every rule skips the start page. */

/* Layout and type scale */
body:not([data-page="index"]) main .wrap { width: min(100% - 6rem, 84rem); }
/* Headings size to their column (cqi), so a long compound such as "Vattenåtervinning" never breaks mid-word. */
body:not([data-page="index"]) .page-intro { container-type: inline-size; max-width: none; }
body:not([data-page="index"]) .page-intro h1 { font-size: min(clamp(3rem, 8.4vw, 7.8rem), 10cqi); letter-spacing: -.055em; }
body:not([data-page="index"]) .page-intro p:not(.eyebrow) { font-size: clamp(1.15rem, 1.9vw, 1.55rem); max-width: 46rem; }
body:not([data-page="index"]) .section { padding-block: clamp(4.5rem, 9vw, 9rem); }
body:not([data-page="index"]) main h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
body:not([data-page="index"]) .contact-form h2 { font-size: clamp(1.55rem, 2.65vw, 2.3rem); }
body:not([data-page="index"]) .prose { container-type: inline-size; }
body:not([data-page="index"]) .prose h2 { font-size: min(clamp(1.9rem, 3.4vw, 3rem), 9cqi); }
body:not([data-page="index"]) .two-column { container-type: inline-size; }
body:not([data-page="index"]) .two-column > h2 { font-size: min(clamp(2.3rem, 5vw, 4.6rem), 5.2cqi); }
body:not([data-page="index"]) .section-heading { container-type: inline-size; }
body:not([data-page="index"]) .section-heading h2 { font-size: min(clamp(2.3rem, 5vw, 4.6rem), 9.4cqi); }
body:not([data-page="index"]) .product-card-copy { container-type: inline-size; }
body:not([data-page="index"]) .product-card h3 { font-size: min(clamp(1.45rem, 2.4vw, 2rem), 9.5cqi); }
body:not([data-page="index"]) .resource-row > div { container-type: inline-size; }
body:not([data-page="index"]) .resource-row h3 { font-size: min(clamp(1.45rem, 2.4vw, 2rem), 8.6cqi); }
body:not([data-page="index"]) .news-card { container-type: inline-size; }
body:not([data-page="index"]) .news-card h3 { font-size: min(clamp(1.45rem, 2.4vw, 2rem), 9.3cqi); }
@media (max-width: 37rem) {
  body:not([data-page="index"]) .two-column > h2 { font-size: min(clamp(2.3rem, 5vw, 4.6rem), 10cqi); }
}
body:not([data-page="index"]) .detail-box h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: .8rem; }
body:not([data-page="index"]) h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
body:not([data-page="index"]) main p:not(.eyebrow) { font-size: 1.075rem; }
body:not([data-page="index"]) .section-heading { margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
body:not([data-page="index"]) .section-heading p:not(.eyebrow) { font-size: 1.15rem; }
body:not([data-page="index"]) .prose { gap: 2.2rem; }

/* Cards */
body:not([data-page="index"]) .reference-grid article,
body:not([data-page="index"]) .news-card,
body:not([data-page="index"]) .process-grid li,
body:not([data-page="index"]) .product-card-copy,
body:not([data-page="index"]) .detail-box,
body:not([data-page="index"]) .contact-form { padding: clamp(1.5rem, 2.8vw, 2.4rem); }
body:not([data-page="index"]) .reference-grid article,
body:not([data-page="index"]) .news-card,
body:not([data-page="index"]) .product-card,
body:not([data-page="index"]) .detail-box { border-radius: 1rem; }

/* Contact strip and buttons */
body:not([data-page="index"]) .contact-strip-inner { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
body:not([data-page="index"]) .contact-strip h2 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
body:not([data-page="index"]) .contact-strip .button { min-height: 3.6rem; padding-inline: 1.6rem; font-size: 1rem; }
body:not([data-page="index"]) .button { min-height: 3.4rem; padding: .8rem 1.45rem; font-size: 1rem; }

/* Tekniska tjänster: audience */
body:not([data-page="index"]) .audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
body:not([data-page="index"]) .audience-copy p:not(.eyebrow) { margin-top: 1rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 30rem; }
body:not([data-page="index"]) .audience-icon svg { width: 1.55rem; height: 1.55rem; }
body:not([data-page="index"]) .audience-list {
  display: grid;
  gap: .9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
body:not([data-page="index"]) .audience-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 650;
  color: var(--ink);
}
body:not([data-page="index"]) .audience-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: .8rem;
  background: #e0f1f7;
  color: #245d73;
}

/* Tekniska tjänster: five-step timeline */
body:not([data-page="index"]) .services {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
body:not([data-page="index"]) .services-intro {
  position: sticky;
  top: 7rem;
}
body:not([data-page="index"]) .services-intro h2 { margin: .6rem 0 1.4rem; }
body:not([data-page="index"]) .service-track {
  position: relative;
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
body:not([data-page="index"]) .service-track::before,
body:not([data-page="index"]) .service-track::after {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
}
body:not([data-page="index"]) .service-track::before { background: var(--line); }
body:not([data-page="index"]) .service-track::after {
  background: linear-gradient(#5bc2e7, #245d73);
  transform: scaleY(var(--track-fill, 1));
  transform-origin: top;
}
body:not([data-page="index"]) .service-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
body:not([data-page="index"]) .service-num {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #3d819a;
  font-weight: 750;
  transition: border-color .4s, background-color .4s, color .4s;
}
body:not([data-page="index"]) .service-step.is-active .service-num {
  border-color: #5bc2e7;
  background: #102a35;
  color: #fff;
}
body:not([data-page="index"]) .service-card {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: #f2f7fa;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  transition: border-color .45s, box-shadow .45s;
}
body:not([data-page="index"]) .service-step.is-active .service-card {
  border-color: #5bc2e7aa;
  box-shadow: 0 1.2rem 2.4rem #102a3512;
}
body:not([data-page="index"]) .service-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.1rem;
  border-radius: .8rem;
  background: #fff;
  color: #245d73;
}
body:not([data-page="index"]) .service-icon svg { width: 1.65rem; height: 1.65rem; }
body:not([data-page="index"]) .service-card h3 { margin-bottom: .6rem; }
body:not([data-page="index"]) .service-card p:not(.eyebrow) { font-size: 1.1rem; }

@media (max-width: 62rem) {
  body:not([data-page="index"]) main .wrap { width: calc(100% - 4rem); }
}
@media (max-width: 52rem) {
  body:not([data-page="index"]) .audience,
  body:not([data-page="index"]) .services { grid-template-columns: 1fr; }
  body:not([data-page="index"]) .services-intro { position: static; }
}
@media (max-width: 37rem) {
  body:not([data-page="index"]) main .wrap { width: calc(100% - 2.1rem); }
  body:not([data-page="index"]) .section-heading { margin-bottom: 1.3rem; }
}

/* Product pages: data note and certification list. Selectors are kept heavier than the main p rule above. */
body:not([data-page="index"]) .detail-box .data-note { font-size: .95rem; color: var(--muted); margin: .2rem 0 .4rem; line-height: 1.55; }
body:not([data-page="index"]) .cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
body:not([data-page="index"]) .cert-list li { display: grid; gap: .2rem; padding: 1rem 1.2rem; background: #f2f7fa; border-left: 3px solid #5bc2e7; border-radius: .5rem; }
body:not([data-page="index"]) .cert-list strong { color: var(--ink); }

/* INTEWA: Om INTEWA and certification table */
body:not([data-page="index"]) .about-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
body:not([data-page="index"]) .about-copy p:not(.eyebrow) { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 44rem; }
body:not([data-page="index"]) .about-copy p:not(.eyebrow) + p { margin-top: 1.1rem; }
body:not([data-page="index"]) .about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }
body:not([data-page="index"]) .about-facts > div { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: #f2f7fa; }
body:not([data-page="index"]) .about-facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #3d819a; font-weight: 700; }
body:not([data-page="index"]) .about-facts dd { margin: .35rem 0 0; font-weight: 650; color: var(--ink); }
body:not([data-page="index"]) .cert-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
body:not([data-page="index"]) .cert-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
body:not([data-page="index"]) .cert-table th,
body:not([data-page="index"]) .cert-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
body:not([data-page="index"]) .cert-table thead th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #3d819a; background: #f2f7fa; }
body:not([data-page="index"]) .cert-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
body:not([data-page="index"]) .cert-table tbody tr:last-child th,
body:not([data-page="index"]) .cert-table tbody tr:last-child td { border-bottom: 0; }
body:not([data-page="index"]) .section .cert-note { color: var(--muted); font-size: .98rem; max-width: 52rem; margin-top: 1rem; }
body:not([data-page="index"]) .spec-block + .spec-block { margin-top: 2rem; }
body:not([data-page="index"]) .spec-table td { white-space: normal; }
body:not([data-page="index"]) .spec-table tbody th { white-space: normal; }
body:not([data-page="index"]) .spec-table thead th { text-transform: none; letter-spacing: normal; }
body:not([data-page="index"]) .spec-table th,
body:not([data-page="index"]) .spec-table td { padding: .75rem .8rem; }
body:not([data-page="index"]) .spec-table { font-size: .9rem; }
/* Product pages with spec tables: the prose column is too narrow for six-column tables below ~77rem, so stack the aside under the specs. */
@media (max-width: 77rem) {
  body:not([data-page="index"]) .detail-layout:has(.spec-table) { grid-template-columns: minmax(0, 1fr); }
}
body:not([data-page="index"]) .detail-layout > .prose,
body:not([data-page="index"]) .spec-block { min-width: 0; }
body:not([data-page="index"]) .spec-note { color: var(--muted); font-size: .95rem; margin-top: .8rem; max-width: 46rem; }
body:not([data-page="index"]) .spec-table .nowrap { white-space: nowrap; }
@media (max-width: 52rem) {
  body:not([data-page="index"]) .about-layout,
  body:not([data-page="index"]) .about-facts { grid-template-columns: 1fr; }
}
@media (max-width: 37rem) {
  body:not([data-page="index"]) .cert-table tbody th { white-space: normal; }
}
