/* TC commercial surfaces – targeted homepage hierarchy correction (0.2.7).
   Source: TC visual v1.5 tokens; v1.6 proposed page rhythm applied only here.
   Existing FI/EN content, 2×2 audience grid, emojis and links are unchanged.
   No global theme, Core, W3–W5, header or footer selectors. */

/* Page layout: one 760px content column and natural document scrolling. */
.tc-commercial-home,
.tc-commercial-detail {
  width:calc(100% - 36px);
  max-width:var(--tc-max,760px);
  margin:40px auto;
  box-sizing:border-box;
  color:var(--tc-text,#10201e);
  font-family:var(--tc-font,"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
}
.tc-commercial-home *,
.tc-commercial-detail * {box-sizing:border-box;}
.tc-commercial-site-content {display:flow-root;min-height:200px;width:100%;}

/* Containers: gray outer card, white inner card; no shadows, green borders,
   accent panels or inconsistent page-specific corner radii. */
.tc-commercial-intro,
.tc-commercial-audiences,
.tc-commercial-technology,
.tc-commercial-services,
.tc-commercial-detail-inner {
  background:var(--tc-card,#f5f5f5);
  border:1px solid var(--tc-border,#d6d6d6);
  border-radius:var(--tc-radius,16px);
  padding:24px;
  box-shadow:none;
}
.tc-commercial-intro {margin-bottom:20px;}
.tc-commercial-technology,
.tc-commercial-services {margin-top:20px;}
.tc-commercial-intro-card,
.tc-commercial-card,
.tc-commercial-tech-inner,
.tc-commercial-service-card,
.tc-commercial-detail section {
  background:var(--tc-white,#fff);
  border:1px solid var(--tc-border,#d6d6d6);
  border-radius:var(--tc-radius,16px);
  padding:18px;
  box-shadow:none;
}

/* Public homepage headings, typography and content links. */
.tc-commercial-value {
  margin:0 0 16px;
  color:var(--tc-text,#10201e);
  font-size:22px;line-height:1.35;font-weight:600;
}
.tc-commercial-intro-card p {margin:0 0 13px;font-size:15px;line-height:1.6;}
.tc-commercial-intro-card p:last-child {margin-bottom:0;}
.tc-commercial-audiences > h2,
.tc-commercial-technology > h2,
.tc-commercial-services > h2 {
  margin:0 0 20px;
  color:var(--tc-text,#10201e);
  font-size:17px;line-height:1.35;font-weight:600;
}
.tc-commercial-home .tc-commercial-intro-card a:not(.tc-commercial-cta),
.tc-commercial-home .tc-commercial-tech-inner a.tc-commercial-text-link,
.tc-commercial-detail a:not(.tc-commercial-cta) {
  color:var(--tc-link,#0b66c3);
  text-decoration:none;
}
.tc-commercial-home .tc-commercial-intro-card a:not(.tc-commercial-cta):hover,
.tc-commercial-home .tc-commercial-tech-inner a.tc-commercial-text-link:hover,
.tc-commercial-detail a:not(.tc-commercial-cta):hover {
  text-decoration:underline;text-underline-offset:3px;
}
.tc-commercial-home .tc-commercial-intro-card a:not(.tc-commercial-cta):focus-visible,
.tc-commercial-home .tc-commercial-tech-inner a.tc-commercial-text-link:focus-visible,
.tc-commercial-detail a:not(.tc-commercial-cta):focus-visible {
  outline:3px solid var(--tc-green,#0f4f45);
  outline-offset:3px;
  border-radius:2px;
  text-decoration:underline;
}

/* Audience grid: accepted 2×2 desktop, one-column mobile.
   All headings start at the same card padding position, even with variable
   Unicode emoji glyph bounds and two-line localized names. */
.tc-commercial-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;align-items:stretch;
}
.tc-commercial-home .tc-commercial-audiences .tc-commercial-card {min-width:0;display:flex;flex-direction:column;padding:20px 18px 18px;}
.tc-commercial-card .tc-commercial-card-heading {
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  column-gap:10px;
  align-items:start;
  min-width:0;
  margin:0 0 12px;
  min-height:0; /* natural heading height: no blank band under one-line titles */
  color:var(--tc-text,#10201e);
  font-size:18px;line-height:1.35;font-weight:600;
}
.tc-commercial-card .tc-commercial-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;height:26px;
  padding:0;margin:0;
  font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:26px;line-height:1.2;
  color:inherit;
}
.tc-commercial-card .tc-commercial-promise {
  margin:0 0 12px;
  font-size:14px;line-height:1.5;font-weight:400;
  color:var(--tc-text,#10201e);
}
.tc-commercial-benefits {
  display:block;flex:1;
  list-style:disc;
  margin:0 0 18px;padding-left:18px;
}
.tc-commercial-benefits li {
  display:list-item;list-style:disc;
  margin:0 0 13px;padding:0;
  border:0;border-radius:0;background:transparent;
  font-size:14px;line-height:1.55;
}
.tc-commercial-benefits li:last-child {margin-bottom:0;}
.tc-commercial-benefits strong {font-weight:600;}

/* Common existing green action style, not applied to ordinary text links. */
.tc-commercial-cta {
  display:inline-flex;align-items:center;justify-content:center;
  align-self:flex-start;
  min-height:40px;padding:8px 15px;
  background:var(--tc-green,#0f4f45);
  border:1px solid var(--tc-green,#0f4f45);
  border-radius:10px;
  font-size:14px;line-height:1.3;font-weight:600;
  color:#fff!important;text-decoration:none!important;
  box-shadow:none;
}
.tc-commercial-card .tc-commercial-cta {margin-top:auto;}
.tc-commercial-cta:hover {background:#0a3831;color:#fff!important;}
.tc-commercial-cta:focus-visible {
  outline:3px solid var(--tc-green,#0f4f45);outline-offset:3px;
}

/* Technology and two service cards keep their agreed structure. */
.tc-commercial-tech-inner p {font-size:15px;line-height:1.55;margin:0 0 13px;}
.tc-commercial-tech-inner p:last-child {margin-bottom:0;}
.tc-commercial-tech-inner h3 {
  margin:18px 0 8px;
  font-size:15px;line-height:1.35;font-weight:600;
  color:var(--tc-text,#10201e);
}
.tc-commercial-services-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;
}
.tc-commercial-home .tc-commercial-services .tc-commercial-service-card {min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:20px 18px 18px;}
.tc-commercial-home .tc-commercial-service-card h3 {font-size:15px;line-height:1.35;font-weight:600;margin:0 0 12px;padding:0;}
.tc-commercial-home .tc-commercial-service-card p {font-size:14px;line-height:1.55;margin:0 0 18px;padding:0;flex:1;}
.tc-commercial-home .tc-commercial-service-card .tc-commercial-cta {
  margin-top:auto;font-size:13px;padding:8px 10px;
  max-width:100%;white-space:normal;text-align:center;
}

/* Audience detail pages: shared roles, one consistent set of component rules. */
.tc-commercial-detail-inner > h1 {
  margin:0 0 18px;
  font-size:26px;line-height:1.25;font-weight:700;
}
.tc-commercial-detail section {margin:0 0 20px;}
.tc-commercial-detail section > h2 {
  margin:0 0 15px;
  font-size:18px;line-height:1.4;font-weight:600;
}
.tc-commercial-detail section p {margin:0;font-size:15px;line-height:1.65;}
.tc-commercial-detail section p + p {margin-top:14px;}
.tc-commercial-detail .tc-owner-intro,
.tc-commercial-detail .tc-maintenance-intro,
.tc-commercial-detail .tc-residents-intro,
.tc-commercial-detail .tc-software-intro {padding:22px 24px;}
.tc-commercial-detail .tc-owner-intro h2,
.tc-commercial-detail .tc-maintenance-intro h2,
.tc-commercial-detail .tc-residents-intro h2,
.tc-commercial-detail .tc-software-intro h2 {
  font-size:19px;line-height:1.42;font-weight:600;margin-bottom:14px;
}
.tc-commercial-detail .tc-owner-mechanism + .tc-owner-mechanism,
.tc-commercial-detail .tc-owner-phase + .tc-owner-phase,
.tc-commercial-detail .tc-maintenance-mechanism + .tc-maintenance-mechanism,
.tc-commercial-detail .tc-maintenance-case + .tc-maintenance-case,
.tc-commercial-detail .tc-residents-environment + .tc-residents-environment,
.tc-commercial-detail .tc-software-partner + .tc-software-partner {
  margin-top:16px;padding-top:16px;
  border-top:1px solid var(--tc-border,#d6d6d6);
}
.tc-commercial-detail .tc-owner-mechanism h3,
.tc-commercial-detail .tc-owner-phase h3,
.tc-commercial-detail .tc-maintenance-mechanism h3,
.tc-commercial-detail .tc-maintenance-case h3,
.tc-commercial-detail .tc-residents-environment h3,
.tc-commercial-detail .tc-software-partner h3 {
  font-size:15px;line-height:1.45;font-weight:600;margin:0 0 8px;
}
.tc-commercial-detail .tc-owner-example > p,
.tc-commercial-detail .tc-owner-pilot > p,
.tc-commercial-detail .tc-maintenance-comparison > p {margin-bottom:16px;}
.tc-commercial-detail .tc-owner-steps,
.tc-commercial-detail .tc-residents-steps,
.tc-commercial-detail .tc-software-steps {
  list-style:decimal;margin:0;padding-left:24px;
}
.tc-commercial-detail .tc-owner-steps li,
.tc-commercial-detail .tc-residents-steps li,
.tc-commercial-detail .tc-software-steps li {
  font-size:15px;line-height:1.65;padding-left:4px;margin:0 0 16px;
}
.tc-commercial-detail .tc-owner-steps li:last-child,
.tc-commercial-detail .tc-residents-steps li:last-child,
.tc-commercial-detail .tc-software-steps li:last-child {margin-bottom:0;}
.tc-commercial-detail .tc-owner-steps li::marker,
.tc-commercial-detail .tc-residents-steps li::marker,
.tc-commercial-detail .tc-software-steps li::marker {
  color:var(--tc-green,#0f4f45);font-weight:600;
}
.tc-commercial-detail .tc-owner-steps strong,
.tc-commercial-detail .tc-residents-steps strong,
.tc-commercial-detail .tc-software-steps strong {font-weight:600;}
.tc-commercial-detail .tc-residents-steps li > strong,
.tc-commercial-detail .tc-software-steps li > strong {display:block;margin-bottom:5px;}
.tc-commercial-detail .tc-residents-steps li > p,
.tc-commercial-detail .tc-software-steps li > p {margin:0;}
.tc-commercial-detail .tc-residents-scope {
  margin-top:18px;font-size:14px;line-height:1.55;color:var(--tc-muted,#5b6b68);
}
.tc-commercial-detail .tc-commercial-home-back {margin-top:4px;}

/* Existing local FI/EN control on four audience pages. */
.tc-commercial-locale-control {
  display:flex;justify-content:flex-end;gap:5px;align-items:center;
  font-size:13px;line-height:1.3;color:var(--tc-muted,#5b6b68);
}
.tc-commercial-locale-control a {color:inherit;text-decoration:none;}
.tc-commercial-locale-control a[aria-current=page] {font-weight:600;}
.tc-commercial-locale-control a:focus-visible {
  outline:3px solid var(--tc-green,#0f4f45);outline-offset:3px;
}

@media (max-width:700px) {
  .tc-commercial-services-grid {grid-template-columns:minmax(0,1fr);gap:16px;}
}
@media (max-width:640px) {
  .tc-commercial-home,.tc-commercial-detail {width:calc(100% - 32px);margin:24px auto 40px;}
  .tc-commercial-intro,.tc-commercial-audiences,
  .tc-commercial-technology,.tc-commercial-services,
  .tc-commercial-detail-inner {padding:18px;}
  .tc-commercial-value {font-size:22px;}
  .tc-commercial-grid {grid-template-columns:minmax(0,1fr);gap:16px;}
  .tc-commercial-card .tc-commercial-card-heading {min-height:0;}
  .tc-commercial-card .tc-commercial-card-heading {font-size:18px;}
  .tc-commercial-detail .tc-owner-intro,
  .tc-commercial-detail .tc-maintenance-intro,
  .tc-commercial-detail .tc-residents-intro,
  .tc-commercial-detail .tc-software-intro {padding:18px;}
  .tc-commercial-detail .tc-owner-intro h2,
  .tc-commercial-detail .tc-maintenance-intro h2,
  .tc-commercial-detail .tc-residents-intro h2,
  .tc-commercial-detail .tc-software-intro h2 {font-size:18px;}
  .tc-commercial-detail section > h2 {font-size:17px;}
  .tc-commercial-detail .tc-owner-steps,
  .tc-commercial-detail .tc-residents-steps,
  .tc-commercial-detail .tc-software-steps {padding-left:21px;}
  .tc-commercial-intro-card,.tc-commercial-tech-inner {padding:16px;}
}
@media (prefers-reduced-motion:reduce) {
  .tc-commercial-cta {transition:none;}
}



/* 0.3.3: compact four-step gallery; reuse the existing lightbox. */
.tc-commercial-product-preview {
  margin:0 0 20px;padding:22px 24px;
  background:var(--tc-card,#f5f5f5);
  border:1px solid var(--tc-border,#d6d6d6);
  border-radius:var(--tc-radius,16px);box-shadow:none;
}
.tc-commercial-product-preview > h2 {font-size:17px;line-height:1.4;font-weight:600;margin:0 0 8px;}
.tc-commercial-path-intro {margin:0 0 4px;font-size:14px;line-height:1.55;}
.tc-commercial-path-hint {margin:0 0 18px;font-size:13px;line-height:1.5;color:var(--tc-muted,#5b6b68);}
.tc-commercial-phone-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start;}
.tc-commercial-phone-step {margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;}
.tc-commercial-phone-trigger {display:block;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:24px;line-height:0;max-width:100%;}
.tc-commercial-phone-trigger:hover .tc-commercial-phone-frame {border-color:var(--tc-green,#0f4f45);}
.tc-commercial-phone-trigger:focus-visible {outline:3px solid var(--tc-green,#0f4f45);outline-offset:4px;}
.tc-commercial-phone-frame {display:block;width:154px;max-width:100%;overflow:hidden;padding:4px;border:1px solid #414a4e;border-radius:22px;background:#252d30;}
.tc-commercial-phone-frame img {display:block;width:100%;height:auto;aspect-ratio:946/2048;object-fit:contain;border-radius:16px;background:#fff;}
.tc-commercial-phone-step figcaption {display:block;margin:0;width:100%;min-height:42px;color:var(--tc-text,#10201e);font:500 13px/1.4 var(--tc-font,Inter,system-ui,sans-serif);text-align:center;}
.tc-commercial-caption-line {display:block;}
.tc-commercial-step-number {font-weight:600;margin-right:4px;}
@media(max-width:640px) {
 .tc-commercial-product-preview {padding:18px;}
 .tc-commercial-phone-steps {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;}
 .tc-commercial-phone-frame {width:146px;max-width:100%;}
 .tc-commercial-phone-step figcaption {font-size:12px;min-height:0;}
}
/* One zero-dependency accessible lightbox. Its toolbar never overlaps the image. */
.tc-commercial-lightbox {position:fixed;inset:0;z-index:999999;background:rgba(6,24,22,.9);display:flex;flex-direction:column;overflow:hidden;color:#fff;}
.tc-commercial-lightbox-bar {flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px 12px;background:#102c29;padding-top:max(8px,env(safe-area-inset-top));}
.tc-commercial-lightbox-info {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.tc-commercial-lightbox-label {font-size:14px;line-height:1.35;font-weight:500;min-width:0;}
.tc-commercial-lightbox-counter {white-space:nowrap;font-size:14px;font-weight:600;}
.tc-commercial-lightbox-actions {display:flex;gap:8px;justify-content:space-between;align-items:center;}
.tc-commercial-lightbox button {background:#fff;color:#102c29;border:1px solid #d2ddda;border-radius:8px;min-width:44px;min-height:44px;padding:7px 11px;cursor:pointer;font:600 14px/1.2 var(--tc-font,system-ui,sans-serif);}
.tc-commercial-lightbox button:disabled {opacity:.35;cursor:default;}
.tc-commercial-lightbox button:focus-visible {outline:3px solid #f7b92f;outline-offset:2px;}
.tc-commercial-lightbox-view {overflow:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0;padding:12px;display:flex;align-items:flex-start;justify-content:center;touch-action:pan-y pinch-zoom;}
.tc-commercial-lightbox-view img {display:block;width:min(100%,540px);height:auto;max-width:none;object-fit:contain;background:#fff;}
@media(max-width:640px) {
 .tc-commercial-lightbox-view {padding:8px;}
 .tc-commercial-lightbox-view img {width:100%;}
 .tc-commercial-lightbox-actions button {font-size:13px;padding:6px 9px;}
}

/* 0.3.8: deliberate two-line gallery hint and existing 20px white-card top inset. */
.tc-commercial-home .tc-commercial-path-hint .tc-commercial-hint-line {display:block;}
.tc-commercial-home .tc-commercial-audiences .tc-commercial-card,
.tc-commercial-home .tc-commercial-services .tc-commercial-service-card {padding-top:20px !important;}
