/* GMTECH brand palette rollout — prepared for approved logo asset deployment.
   Uses user-approved colors; does not redraw or replace any existing logo image.
   Safe to revert by removing this stylesheet link. */
#gmtech-site {
  --brand-green:#2E9E3A;
  --brand-darkgreen:#0F6B2A;
  --brand-navy:#0B2A5B;
  --brand-orange:#F57C00;
  --brand-light:#F3F6F4;
}
#gmtech-site .p-masthead{border-bottom-color:var(--brand-green)}
#gmtech-site .p-company .p-brand-title{color:#A1EDA9}
#gmtech-site .p-company{border-left-color:#66C879}
#gmtech-site .p-trust>div{border-right-color:#69C677}
#gmtech-site .p-trust svg{color:#7BD786}
#gmtech-site .p-nav .p-hotline{color:var(--brand-darkgreen)}
#gmtech-site .p-nav button:hover,
#gmtech-site .p-nav a:hover{color:var(--brand-darkgreen)}
#gmtech-site .p-slant{background:linear-gradient(110deg,#0F6B2A,#2E9E3A);border-bottom-color:#F57C00}
#gmtech-site .p-checks li:before{background:var(--brand-darkgreen)}
#gmtech-site .p-digital-link{color:var(--brand-darkgreen)}
#gmtech-site .p-service-head{border-bottom-color:var(--brand-orange)}
#gmtech-site button:focus-visible,
#gmtech-site a:focus-visible{outline-color:var(--brand-orange)}
/* Controlled rollout: retain legacy photographic logo panel until the approved
   pixel-exact binary PNG asset is committed and visually verified. */

/* Service card: attendance/security replaces legacy server/cloud image sprite. */
#gmtech-site .p-service:nth-child(3) .gmtech-attendance-art{display:flex;align-items:center;justify-content:center;aspect-ratio:314/95;background:linear-gradient(115deg,#F3F6F4,#DCEDE2);border-bottom:1px solid #C8DFD0;padding:10px;text-align:center}
#gmtech-site .p-service:nth-child(3) .gmtech-attendance-art span{color:#0F6B2A;font-size:clamp(10px,1.1vw,15px);font-weight:800;letter-spacing:.04em;line-height:1.45}

/* SMB services: consistent artwork instead of outdated imagery. */
#gmtech-site .p-service .gmtech-service-art{display:flex;align-items:center;justify-content:center;aspect-ratio:314/95;background:linear-gradient(120deg,#F3F6F4,#E3EFE8);border-bottom:1px solid #CBDDD1;padding:10px;text-align:center}
#gmtech-site .p-service .gmtech-service-art span{color:#0F6B2A;font-size:clamp(10px,1.1vw,15px);font-weight:800;letter-spacing:.035em;line-height:1.45}
#gmtech-site .p-service:nth-child(2) .gmtech-service-art{background:linear-gradient(120deg,#F3F6F4,#E3ECF5)}
#gmtech-site .p-service:nth-child(2) .gmtech-service-art span{color:#0B2A5B}

/* Catalog listing: finite media slot prevents unusually tall product images
   from pushing product information below a large empty area. */
#gmtech-site .catalog-card>.catalog-media{display:block;position:relative;width:100%;aspect-ratio:4/3;flex:0 0 auto;overflow:hidden;background:#F3F6F4;border-bottom:1px solid #DCE7E0}
#gmtech-site .catalog-card>.catalog-media>.catalog-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;background:transparent}
#gmtech-site .catalog-card>.catalog-body{gap:8px;padding:15px}
#gmtech-site .catalog-card>.catalog-body h2{margin:0;line-height:1.35;font-size:clamp(15px,1.25vw,18px)}
#gmtech-site .catalog-card>.catalog-body p{margin:0}
#gmtech-site .catalog-card>.catalog-body .catalog-price{font-size:20px;color:#0F6B2A}
@media(max-width:540px){#gmtech-site .catalog-card>.catalog-media{aspect-ratio:16/10}#gmtech-site .catalog-card>.catalog-body{padding:14px}}

/* Product detail only: reduce excessive imagery whitespace and improve readable layout. */
#gmtech-site .product-detail-layout{grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);align-items:start;gap:clamp(16px,2.5vw,32px);max-width:1250px;margin:0 auto}
#gmtech-site .product-detail-layout>.post-body{min-width:0;background:#fff;border:1px solid #DEEAE3;border-radius:10px;padding:clamp(16px,2vw,26px);line-height:1.65}
#gmtech-site .product-detail-layout .post-hero.product-detail-image{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;object-position:center;background:#F3F6F4;border:1px solid #E0E8E3;border-radius:8px;margin:16px auto 20px}
#gmtech-site .product-detail-layout .catalog-price{font-weight:800;color:#0F6B2A;font-size:clamp(22px,2.5vw,30px)}
#gmtech-site .product-detail-layout>.p-quote{border:1px solid #D3E5D6;border-top:4px solid #2E9E3A;border-radius:10px;background:#F3F6F4;padding:clamp(16px,2vw,24px)}
#gmtech-site .product-detail-layout .post-body img:not(.product-detail-image){height:auto;max-height:480px;width:auto;max-width:100%;object-fit:contain}
@media(max-width:800px){#gmtech-site .product-detail-layout{grid-template-columns:1fr;gap:18px;padding:18px}#gmtech-site .product-detail-layout .post-hero.product-detail-image{max-height:340px}}
@media(max-width:540px){#gmtech-site .product-detail-layout{padding:12px}#gmtech-site .product-detail-layout>.post-body{padding:14px}#gmtech-site .product-detail-layout .post-hero.product-detail-image{max-height:280px}}


/* Keep public content spacing proportional to the available screen width. */
#gmtech-site {
  --content-inset: clamp(14px, 2vw, 22px);
  --content-gap: clamp(10px, 1.5vw, 16px);
}
#gmtech-site .p-section,
#gmtech-site .p-detail-top,
#gmtech-site .p-service-grid,
#gmtech-site .p-detail-cols:not(.product-detail-layout) {
  padding: var(--content-inset);
}
#gmtech-site .p-service-grid,
#gmtech-site .article-grid,
#gmtech-site .updates-grid,
#gmtech-site .catalog-grid,
#gmtech-site .p-detail-cols:not(.product-detail-layout) {
  gap: var(--content-gap);
  align-items: start;
}
#gmtech-site .p-service-head {
  min-height: 0;
  padding: 10px 12px;
}
#gmtech-site .p-service .gmtech-service-art,
#gmtech-site .article-art {
  aspect-ratio: auto;
  padding: 8px 12px;
}
#gmtech-site .article-art {
  font-size: 1rem;
}
#gmtech-site .article-content,
#gmtech-site .update-body {
  padding: 12px 14px;
  gap: 8px;
}
#gmtech-site .article-content > h2,
#gmtech-site .article-content > p {
  margin: 0;
}
#gmtech-site .p-detail-cols > .post-body {
  min-width: 0;
}
#gmtech-site .post-hero:not(.product-detail-image) {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(190px, 34vw, 340px);
  margin: 0 auto 14px;
}
#gmtech-site .post-body > :first-child { margin-top: 0; }
#gmtech-site .post-body > :last-child { margin-bottom: 0; }
#gmtech-site .p-detail-cols:not(.product-detail-layout) .p-quote {
  padding: var(--content-inset);
}
#gmtech-site .p-detail-cols:not(.product-detail-layout) .p-quote p {
  margin: 8px 0;
}
@media (max-width: 800px) {
  #gmtech-site .p-detail-cols:not(.product-detail-layout) {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ===== SHARED CONTENT DETAIL SYSTEM =====
   Bring CMS articles and service detail pages up to the product-detail standard. */
#gmtech-site .p-section > .post-body,
#gmtech-site .p-section > .post-hero + .post-body,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body,
#gmtech-site .product-copy{
  min-width:0;
  max-width:920px;
  margin:18px auto;
  padding:clamp(18px,3vw,34px);
  border:1px solid #DEEAE3;
  border-radius:10px;
  background:#fff;
  color:#234966;
  font-size:15px;
  line-height:1.8;
  overflow-wrap:anywhere;
}
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body{max-width:none;margin:0}
#gmtech-site .p-section > .post-hero{display:block;width:min(100%,920px);max-height:460px;height:auto;object-fit:contain;object-position:center;background:#fff;border:1px solid #DEEAE3;border-radius:10px;margin:18px auto;padding:8px}
#gmtech-site .p-section > .post-body h2,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body h2,
#gmtech-site .product-copy h2{margin:1.6em 0 .65em;color:#0B2A5B;font-size:clamp(20px,2vw,25px);line-height:1.35}
#gmtech-site .p-section > .post-body h3,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body h3,
#gmtech-site .product-copy h3{margin:1.35em 0 .55em;color:#0F6B2A;font-size:clamp(17px,1.6vw,20px);line-height:1.4}
#gmtech-site .p-section > .post-body p,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body p,
#gmtech-site .product-copy p{margin:0 0 1em}
#gmtech-site .p-section > .post-body ul,
#gmtech-site .p-section > .post-body ol,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body ul,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body ol,
#gmtech-site .product-copy ul,
#gmtech-site .product-copy ol{padding-left:1.5em;margin:0 0 1.25em}
#gmtech-site .p-section > .post-body li,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body li,
#gmtech-site .product-copy li{padding-left:.2em;margin:.35em 0}
#gmtech-site .p-section > .post-body a,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body a,
#gmtech-site .product-copy a{color:#0F6B2A;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
#gmtech-site .p-section > .post-body blockquote,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body blockquote,
#gmtech-site .product-copy blockquote{margin:1.4em 0;padding:14px 18px;border-left:4px solid #F57C00;border-radius:0 8px 8px 0;background:#F3F6F4;color:#294b3a}
#gmtech-site .p-section > .post-body img,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body img,
#gmtech-site .product-copy img{display:block;max-width:100%;height:auto;max-height:480px;object-fit:contain;margin:1.25em auto;border-radius:8px}
#gmtech-site .p-section > .post-body table,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body table,
#gmtech-site .product-copy table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.25em 0;font-size:14px}
#gmtech-site .p-section > .post-body th,
#gmtech-site .p-section > .post-body td,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body th,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body td,
#gmtech-site .product-copy th,
#gmtech-site .product-copy td{padding:10px 12px;border:1px solid #D6E4DA;text-align:left;vertical-align:top}
#gmtech-site .p-section > .post-body th,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body th,
#gmtech-site .product-copy th{background:#F3F6F4;color:#0B2A5B}
#gmtech-site .p-section > .post-body pre,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body pre,
#gmtech-site .product-copy pre{max-width:100%;overflow:auto;padding:14px;border-radius:8px;background:#102b48;color:#f5fbff}
#gmtech-site .p-section > .post-body code,
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body code,
#gmtech-site .product-copy code{overflow-wrap:anywhere}
#gmtech-site .p-detail-cols:not(.product-detail-layout) > .p-quote{align-self:start;border:1px solid #D3E5D6;border-top:4px solid #2E9E3A;border-radius:10px;background:#F3F6F4;padding:clamp(16px,2vw,24px)}
#gmtech-site .p-section > .post-pagination{max-width:920px;margin:22px auto}
#gmtech-site .p-section > .post-pagination a{display:block;min-width:0;padding:14px 16px;border:1px solid #D6E4DA;border-radius:8px;background:#F3F6F4;color:#0B2A5B;line-height:1.5;overflow-wrap:anywhere}
#gmtech-site .p-section > .article-grid{max-width:1160px;margin:18px auto}
#gmtech-site .p-section > h2{max-width:1160px;margin:26px auto 14px}
@media(max-width:800px){
  #gmtech-site .p-detail-cols:not(.product-detail-layout){grid-template-columns:minmax(0,1fr);gap:18px;padding:18px}
  #gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body{padding:20px}
}
@media(max-width:540px){
  #gmtech-site .p-section > .post-body,
  #gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body,
  #gmtech-site .product-copy{padding:16px;font-size:14px}
  #gmtech-site .p-section > .post-hero{max-height:300px;padding:5px}
  #gmtech-site .p-section > .post-body table,
  #gmtech-site .p-detail-cols:not(.product-detail-layout) > .post-body table,
  #gmtech-site .product-copy table{font-size:13px}
}


/* ===== KNOWLEDGE HUB: COMPACT ARTICLE CARDS =====
   Match the actual markup emitted by scripts/build-layout.js:
   .article-grid > .article-card > .article-content, with h2 and p.article-meta.
   Keep changes scoped to the knowledge/article-card component. */
#gmtech-site .article-grid {
  align-items: start;
  row-gap: 16px;
}
#gmtech-site .article-grid > .article-card {
  align-self: start;
  height: auto;
  min-height: 0;
}
#gmtech-site .article-card > .article-content {
  flex: 0 1 auto;
  min-height: 0;
  padding: 12px 14px;
  gap: 8px;
}
#gmtech-site .article-card .article-meta {
  margin: 0;
  line-height: 1.35;
}
#gmtech-site .article-card .article-content > h2 {
  margin: 0;
  color: #0B2A5B;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
#gmtech-site .article-card .article-content > p:not(.article-meta) {
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
#gmtech-site .article-card .article-read-more {
  align-self: start;
  margin-top: 2px;
}
@media (max-width: 900px) {
  #gmtech-site .article-grid { row-gap: 14px; }
}
@media (max-width: 540px) {
  #gmtech-site .article-card > .article-content { padding: 12px; }
}
\n\n/* ===== KNOWLEDGE ARTICLE DETAIL: RESPONSIVE HERO CROP =====
   The article thumbnail currently contains large empty vertical bands.
   Give the detail-page hero a predictable landscape viewport and crop the
   image around its center. Keep this rule limited to article detail pages;
   product/service detail images retain their existing treatment. */
#gmtech-site .p-section > img.post-hero {
  display: block;
  width: 100%;
  max-width: 920px;
  height: clamp(220px, 38vw, 420px);
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  margin: 18px auto;
  padding: 0;
  background: #17212b;
}
@media (max-width: 540px) {
  #gmtech-site .p-section > img.post-hero {
    height: clamp(190px, 56vw, 280px);
    margin: 12px auto 16px;
    border-radius: 8px;
  }
}

/* Keep the fixed contact action from obscuring the last lines of article text. */
#gmtech-site .p-section {
  scroll-margin-top: 16px;
}
#gmtech-site .p-section > p:last-child {
  padding-bottom: max(76px, env(safe-area-inset-bottom));
}

/* ===== KNOWLEDGE HUB: FIXED ARTICLE MEDIA FRAME ===== */
/* Dedicated 16:9 viewport; the source image cannot determine card height. */
#gmtech-site .article-grid > .article-card > .article-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #102b48;
}
#gmtech-site .article-grid > .article-card > .article-media > .gmtech-article-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}
