/*site.css*/

  :root{
    --surface-2:#fff; --surface-1:#f6f5f2; --surface-0:#efeee8;
    --text-primary:#1c1c1a; --text-secondary:#5f5e5a; --text-muted:#888780;
    --border:#e2e0d8; --border-strong:#cfcdc3;
    --accent:#1375d7; --accent-bg:#e6f1fb;
    --hover-bg:#e6f1fb; --hover-text:#0c447c;
	--bg-cards: #f5fcff;
  }
  *{box-sizing:border-box;}
  html{height:100%;}
  body{margin:0; min-height:100%; display:flex; flex-direction:column; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; background:var(--surface-0); color:var(--text-primary); line-height:1.6;}
  .env-bar{background:#3a2f0e; color:#f2d98a; font-size:12px; text-align:center; padding:6px;}
  #siteFooter{width:100%; flex:0 0 auto; background:var(--surface-1); border-top:0.5px solid var(--border);}
  .footer-inner{max-width:1800px; margin:0 auto; padding:18px 32px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:12.5px; color:var(--text-muted);}
  .footer-links{display:flex; gap:18px;}
  .footer-links a{color:var(--text-muted); text-decoration:none;}
  .footer-links a:hover{color:var(--accent); text-decoration:underline;}
@media (max-width:480px){ .footer-inner{justify-content:center; text-align:center;} }
  main{max-width:2200px; margin:0 auto; padding:24px; flex:1; width:100%;}
  .public-shell{background:var(--surface-2); border-radius:12px; overflow:hidden; min-height: 100vh; max-width: 1600px; margin: 0 auto;}
  .hero{background:url(/images/hero_img.webp) no-repeat; color:#fff; padding:56px 32px 44px; text-align:center; background-size: cover; background-position: right;}
 @media (max-width:1201px){.hero{text-align:left;} .hero-search{margin: unset!important;}}
 @media (max-width:700px){.hero{background-position:left;}}
  .utility-bar{display:flex; flex-direction: row; flex-wrap: wrap; gap:20px; padding:10px 32px; border-bottom:0.5px solid var(--border); background:var(--surface-1); font-size:13px; justify-content: space-around;}
  .utility-bar a{color:var(--text-secondary); text-decoration:none; cursor:pointer;}
  .utility-bar a:hover{color:var(--text-primary); text-decoration:underline;}
  .recent-added{display:flex; align-items:center; gap:14px; padding:9px 32px; font-size:12.5px; color:var(--text-muted); border-bottom:0.5px solid var(--border); flex-wrap:wrap; row-gap:4px; justify-content: space-evenly;}
  .recent-added .recent-added-label{font-weight:600; color:var(--text-secondary); white-space:nowrap;}
  .recent-added a{color:var(--text-secondary); text-decoration:none; white-space:nowrap;}
  .recent-added a:hover{color:var(--accent); text-decoration:underline;}
  .recent-added .sep{color:var(--border-strong);}
  .hero h2{margin:0 0 10px; font-size:28px; font-weight:500;}
  .hero p{margin:0 0 24px; font-size:15px; opacity:0.9;}
  .hero-search{max-width:520px; margin:0 auto; position:relative;}
  .hero-search input{width:100%; padding:13px 16px 13px 42px; border:none; border-radius:10px; font-size:15px; font-family:inherit;}
  .hero-search .ic{position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#8a8a85; font-size:15px;}
  .section-pad{padding:28px 32px;}

  .view-toggle{display:flex; border:0.5px solid var(--border-strong); border-radius:8px; overflow:hidden;}
  .view-toggle-btn{background:var(--surface-2); border:none; padding:7px 14px; font-size:13px; cursor:pointer; color:var(--text-secondary); font-family:inherit;}
  .view-toggle-btn:first-child{border-right:0.5px solid var(--border-strong);}
  .view-toggle-btn.active{background:var(--accent); color:#fff;}
  .article-card-grid.list-mode{display:flex; flex-direction:column; gap:0; padding:0 32px 28px;}
  .article-list-row{display:flex; align-items:center; gap:16px; padding:14px 16px; border-bottom:0.5px solid var(--border); cursor:pointer; position:relative;}
  .article-list-row:first-child{border-top:0.5px solid var(--border);}
  .article-list-row:hover{background:var(--surface-1);}
  .article-list-row .row-star-slot{flex:0 0 18px; text-align:center;}
  .article-list-row .row-title{font-size:14px; font-weight:500; flex:0 1 460px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  @media (max-width:700px){
  .article-list-row{flex-wrap:nowrap; row-gap:4px; flex-direction: column; align-items: flex-start;}
  .article-list-row .row-title{flex:1 1 100%; white-space:normal;}
  .article-list-row .row-summary{flex:1 1 100%!important; white-space:normal!important; order:3;}
  .article-list-row .row-meta{flex:0 0 auto; order:2;}
}
  .article-list-row .row-summary{font-size:12.5px; color:var(--text-secondary); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .article-list-row .row-meta{font-size:11.5px; color:var(--text-muted); flex:0 0 auto; white-space:nowrap;}
  .article-list-row .row-featured{color:var(--amber);}
  .announcement-banner{ margin:24px 32px 0; padding:20px 26px; border-radius:10px; background:linear-gradient(135deg, #e6f1fb 0%, #f3ecd9 100%); border:0.5px solid #cfe0f0;}
  .announcement-banner .badge-label{font-size:11px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; color:#0c447c; background:#fff; padding:3px 10px; border-radius:20px; white-space:nowrap; display:inline-block; margin-bottom:12px;}
  .announcement-item{display:flex; align-items:center; gap:16px; padding:10px 0; border-top:0.5px solid rgba(12,68,124,0.15);}
  @media (max-width:500px){ .announcement-item {flex-direction: column;}}
  .announcement-item:first-of-type{border-top:none; padding-top:0;}
  .announcement-item .content{flex:1; min-width:200px;}
  .announcement-item h4{margin:0 0 3px; font-size:15px; font-weight:500; color:var(--text-primary);}
  .announcement-item p{margin:0; font-size:13px; color:var(--text-secondary);}
  .announcement-item .btn-cta{ background:#0c447c; color:#fff; border:none; padding:7px 14px; border-radius:8px; font-size:12.5px; font-weight:500; cursor:pointer; white-space:nowrap; font-family:inherit; display:inline-block; text-decoration:none;}
  .announcement-item .btn-cta:hover{opacity:0.9;}
  .section-pad h3{margin:0 0 16px; font-size:16px; font-weight:500;}
  
  .grid3 {display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px;}
  @media (max-width: 1069px) {
    .grid3 {grid-template-columns: repeat(1, 1fr)!important;}
  }
  @media (min-width: 768px) and (max-width: 1300px){
    .grid3{grid-template-columns:repeat(2, 1fr);}
  }
  .grid4{display:grid; grid-template-columns:repeat(4, 1fr); gap:16px;}
  @media (max-width:900px){ .grid4{grid-template-columns:repeat(2,1fr);} }
  @media (max-width:480px){ .grid4{grid-template-columns:1fr;} }
  .grid8{display:grid; grid-template-columns:repeat(8, 1fr); gap:12px;}
  @media (max-width:1000px){ .grid8{grid-template-columns:repeat(4,1fr);} }
  @media (max-width:700px){ .grid8{grid-template-columns:repeat(3,1fr);} }
  @media (max-width:480px){ .grid8{grid-template-columns:repeat(2,1fr);} }
  .cat-card{background:var(--bg-cards); border-radius:10px; padding:18px; display:flex; flex-direction:column; height:310px; box-shadow: 2px 2px 10px #e3e3e3; min-width: 0;}
  .cat-card:hover{border-color:var(--accent);}
  .cat-card:hover h4, .cat-card:hover .count{color:var(--hover-text);}
  .cat-card .cat-card-head{display:flex; align-items:center; gap:10px; margin-bottom:10px;}
  .cat-card .cat-icon{font-size:20px;}
  .cat-card h4{margin:0; font-size:15px; font-weight:500; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .cat-card .count{font-size:11px; color:var(--text-muted);}
  .cat-card ul{list-style:none; margin:0; padding:0; flex:1; overflow-y:auto; min-height:0;}
  .cat-card li{font-size:13px; padding:5px 0; border-bottom:0.5px solid var(--border); cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .cat-card li:hover{color:var(--accent);}
  .cat-card li:last-child{border-bottom:none;}
  .cat-card .view-more{margin-top:12px; text-align:center; flex:0 0 auto;}
  .cat-card .view-more button{width:100%;}
  .cat-card .view-more button:hover {background: var(--hover-bg);}
  .prod-card{background:var(--surface-2); border:0.5px solid var(--border); border-radius:10px; padding:16px 18px; display:flex; flex-direction:column; height:76px; cursor:pointer; transition:background 0.15s, border-color 0.15s;}
  .prod-card:hover{background:var(--hover-bg); border-color:var(--accent);}
  .prod-card:hover h4, .prod-card:hover .count{color:var(--hover-text);}
  .prod-card-head{display:flex; align-items:center; gap:10px;}
  .prod-card .prod-icon{font-size:20px; line-height:1;}
  .prod-card .prod-icon-img{width:24px; height:24px; object-fit:contain; flex:0 0 auto;}
  .prod-card h4{margin:0; font-size:15px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .prod-card .count{font-size:12px; color:var(--text-muted); margin-top:6px;}
  .prod-card-compact{padding:12px; height:80px;}
  .prod-card-compact h4{font-size:13px; margin:0 0 3px;}
  .prod-card-compact .count{font-size:11px;}
  #prodGrid{min-height: 140px;}
  section.browse-section.browse-section-product { min-height: 210px; }
  .article-card-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(415px, 1fr)); gap: 16px; padding: 0 32px 28px;}
  @media (max-width:700px){
  .article-card-grid { grid-template-columns: repeat(1, 1fr) !important; }
  .article-card{ height: auto!important; }
}
  .article-card{background:var(--surface-2); border:0.5px solid var(--border); border-radius:10px; padding:16px; cursor:pointer; position:relative; display:flex; flex-direction:column; height:150px; transition:background 0.15s, border-color 0.15s; min-width:0;}
  .article-card:hover{background:var(--hover-bg); border-color:var(--accent);}
  .article-card:hover h4, .article-card:hover .meta{color:var(--hover-text);}
  .article-card h4{margin:0 0 6px; font-size:14px; font-weight:500; padding-right:16px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-clamp: 2;}
  .article-card .summary{font-size:12.5px; color:var(--text-secondary); margin-bottom:8px; flex:1; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; line-clamp: 2;}
  .article-card .meta{font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .article-card .featured-flag{position:absolute; top:12px; right:12px; font-size:13px;}
  .article-card .tagrow{margin-top:6px; display:flex; gap:4px; flex-wrap:wrap;}
  .btn{background:var(--surface-2); border:0.5px solid var(--border-strong); border-radius:8px; padding:8px 14px; font-size:14px; cursor:pointer; font-family:inherit; color:var(--text-primary);}
  .btn.small{font-size:12px; padding:5px 10px;}
  .view-more .btn.small {padding: 10px 10px;}
  .btn.primary{background:var(--accent); color:#fff; border-color:var(--accent);}
  .empty-state{text-align:center; padding:60px 20px; color:var(--text-muted);}
  .breadcrumb{padding:14px 32px; font: size 0.89em;; color:var(--text-muted); border-bottom:0.5px solid var(--border);}
  .breadcrumb a{color:var(--accent); cursor:pointer; text-decoration:none;}
  .breadcrumb a:hover{text-decoration:underline;}
  .kb-standalone-article{padding:28px 32px;}
  .public-article{padding:28px 32px;}
  .public-article h2{margin:0 0 6px; font-size:20px; font-weight:500; margin-top: 10px; text-align: center;}
  .public-article .meta{font-size:12px; color:var(--text-muted); margin-bottom:20px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content: center;}
  @media (min-width: 1201px){.public-article .body{width: 950px;}}
  .public-article .body{overflow-wrap:break-word; word-break:break-word; margin: 0 auto;}
  .public-article .body img{max-width:100%; border-radius:6px;}
  .public-article .body .video-embed{ border-radius:6px; display:block; margin:8px 0; max-width:100%; position:relative; overflow:hidden; background:#000; cursor:pointer; }
  .public-article .body .video-embed img{width:100%; height:100%; background:#000; display:block; margin:0;}
  .public-article .body .video-embed img.video-thumb-auto{object-fit:cover;}
  .public-article .body .video-embed img.video-thumb-custom{object-fit:contain;}
  .public-article .body .video-embed .play-badge{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:56px; height:56px; border-radius:50%; background:rgba(0,0,0,0.6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; pointer-events:none;}
  .public-article .body .video-embed .playlist-badge{position:absolute; bottom:8px; right:8px; background:rgba(0,0,0,0.75); color:#fff;font-size:11px; padding:3px 9px; border-radius:20px; pointer-events:none; }
  .public-article .body .kb-table{border-collapse:collapse;}
  .public-article .body .kb-table td, .public-article .body .kb-table th{border:1px solid var(--border-strong); padding:8px 10px;}
  .related-articles{margin-top:32px; padding-top:24px; border-top:0.5px solid var(--border);}
  .related-articles h3{margin:0 0 14px; font-size:15px; font-weight:500;}
  .related-articles-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px;}
  .related-article-card{display:block; padding:12px 14px; background:var(--surface-2); border:0.5px solid var(--border); border-radius:8px; font-size:13.5px; font-weight:500; color:var(--text-primary); text-decoration:none; transition:background 0.15s, border-color 0.15s;}
  .related-article-card:hover{background:var(--hover-bg); border-color:var(--accent); color:var(--hover-text);}
  .cat-tag{display:inline-block; font-size:11px; background:var(--accent-bg); color:#0c447c; padding:2px 9px; border-radius:20px; margin:1px 3px 1px 0;}
  .prod-tag{display:inline-block; font-size:11px; background:var(--surface-1); color:var(--text-secondary); border:0.5px solid var(--border-strong); padding:2px 9px; border-radius:20px; margin:1px 3px 1px 0;}
  .ver-tag{display:inline-block; font-size:11px; background:#fff; color:var(--text-muted); border:0.5px dashed var(--border-strong); padding:2px 9px; border-radius:20px; margin:1px 3px 1px 0;}
  .permalink-box{font-size:11px; color:var(--text-muted); background:var(--surface-1); padding:8px 12px; border-radius:6px; margin-top:16px; word-break:break-all;}
  .view{display:none;} .view.active{display:block;}
  /* Bullet cascade */
  .public-article .body ul { list-style-type: disc; }
  .public-article .body ul ul { list-style-type: circle; }
  .public-article .body ul ul ul { list-style-type: square; }
  /* Numbered cascade - matches Word/Writer's common default (1, a, i) */
  .public-article .body ol { list-style-type: decimal; }
  .public-article .body ol ol { list-style-type: lower-alpha; }
  .public-article .body ol ol ol { list-style-type: lower-roman; }

  /* ---------- Print stylesheet ---------- */
/* focuses on making .public-article read cleanly on paper. */
@media print{

  /* ---- Strip anything that only makes sense on-screen ---- */
  .hero, .utility-bar, .recent-added, #announcementBanner,  .view-toggle, #siteFooter, .hero-search{ display:none !important; }

  /* Only the article body matters for print  */
  .view:not(#publicArticleScreen){ display:none !important; }

  /* ---- Layout resets: no card chrome, no shadows, no rounded corners ---- */
  body{background:#fff; color:#000;}
  .public-shell{background:#fff; border-radius:0; min-height:0;}
  main{max-width:none; padding:0; margin:0;}
  .public-article{padding:0;}

  /* Breadcrumb: keep the text but strip the interactive/link styling */
  .public-article .breadcrumb, .breadcrumb{ margin:0 0 12px !important; padding:0 !important; border-bottom:none; color:#000; font-size:11px;}
  .breadcrumb a{color:#000; text-decoration:none;}

  /* ---- Typography: force black-on-white regardless of the on-screen theme ---- */
  .public-article h2{color:#000; font-size:18px;}
  .public-article .body{color:#000; width:auto !important;}
  .public-article .meta{color:#333;}

  /* Tag pills: the coloured backgrounds are screen-only decoration */
  .cat-tag, .prod-tag, .ver-tag{ background:none !important; border:1px solid #999 !important; color:#000 !important;}

  /* ---- Images: fit the page, no rounded corners ---- */
  .public-article .body img{ max-width:100% !important; border-radius:0;  page-break-inside:avoid; }

  /* ---- Video embeds: a thumbnail + play button is meaningless on paper.
     Replace the visual embed with a plain text line showing the URL, so the
     information (there was a video here, and where to find it) survives ---- */
  .public-article .body .video-embed{ display:block !important; position:static !important; background:none !important; height:auto !important; width:auto !important; border:1px solid #999; padding:8px; margin:8px 0;}
  .public-article .body .video-embed img, .public-article .body .video-embed .play-badge, .public-article .body .video-embed .playlist-badge{ display:none !important;}
  .public-article .body .video-embed::after{ content:"▶ Video: " attr(data-video-url); font-size:11px; color:#333;}

  /* ---- Tables: keep the borders, they're informational not decorative ---- */
  .public-article .body .kb-table td, .public-article .body .kb-table th{ border:1px solid #999; }

  /* ---- Links: show the destination URL after external links, since a
     printed page can't be clicked. ---- */
  .public-article .body a[href^="http"]::after{ content:" (" attr(href) ")"; font-size:0.85em; color:#333; word-break:break-all;}

  /* ---- Page-break hygiene ---- */
  h2, h3, h4{ page-break-after:avoid; }
  .kb-table{ page-break-inside:avoid; }
}