/* KS-PRODUCT-CONTENT-V1 2026-05-12 — styles for agent-generated product description HTML blocks */

/* ===== ROOT CONTAINER ===== */
.ks-product, .ks-product-description {
  font-family: inherit;
  line-height: 1.65;
  color: #1f2937;
  max-width: 100%;
}
.ks-product-description h2, .ks-product h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0b3d5f;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.ks-product-description h3, .ks-product h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b3d5f;
  margin: 1.75rem 0 0.75rem;
}
.ks-product-description p, .ks-product p { margin: 0 0 1rem; }
.ks-product-description ul, .ks-product ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.ks-product-description li, .ks-product li { margin-bottom: 0.5rem; }

/* ===== HERO BLOCK ===== */
.ks-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.5rem 0;
}
.ks-hero h2 { flex: 1 1 100%; margin: 0 0 0.5rem; border: none; padding: 0; font-size: 1.75rem; }
.ks-hero .ks-subtitle, .ks-subtitle {
  flex: 1 1 100%;
  font-size: 1.05rem;
  color: #4b5563;
  margin: 0 0 1rem;
}
.ks-hero-cta { margin: 0 0 2rem !important; }
.ks-hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0.5rem 0 0; color: #6b7280; font-size: 0.9rem; }

/* ===== BADGES (feature pills) ===== */
.ks-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.5rem 0 1.5rem;
}
.ks-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}
.ks-badge .ks-inline-icon, .ks-badge .ks-inline-icon-sm { color: #f59e0b; }

/* ===== SECTIONS ===== */
.ks-section { margin: 2rem 0; }
.ks-section-title { font-size: 1.35rem; font-weight: 700; color: #0b3d5f; margin: 0 0 1rem; }
.ks-highlight, .ks-highlight-box {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}
.ks-lead { font-size: 1.1rem; color: #374151; line-height: 1.6; margin: 0 0 1.25rem; }

/* ===== APPS GRID (Office apps) ===== */
.ks-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ks-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ks-app:hover { border-color: #0b3d5f; box-shadow: 0 4px 12px rgba(11,61,95,0.08); }
.ks-app-icon { font-size: 2rem; margin-bottom: 0.5rem; color: #0b3d5f; }

/* ===== FEATURES GRID ===== */
.ks-features, .ks-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ks-feature, .ks-feature-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.ks-feature:hover, .ks-feature-card:hover {
  border-color: #0b3d5f;
  transform: translateY(-2px);
}
.ks-feature-icon {
  font-size: 1.75rem;
  color: #0b3d5f;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.ks-feature-title { font-weight: 700; color: #0b3d5f; margin: 0 0 0.5rem; font-size: 1.05rem; }
.ks-feature-desc { color: #4b5563; margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* ===== STEPS (delivery / activation) ===== */
.ks-delivery-steps, .ks-activation { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; counter-reset: step; }
.ks-delivery-steps ol, .ks-activation ol { counter-reset: step; padding-left: 0; list-style: none; }
.ks-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.ks-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #0b3d5f 0%, #1e5a8a 100%);
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.ks-step-text { flex: 1; line-height: 1.6; }

/* ===== USE CASES ===== */
.ks-usecases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ks-usecase {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ks-usecase-icon { font-size: 1.5rem; margin-bottom: 0.5rem; color: #0b3d5f; }

/* ===== TRUST / WHY ===== */
.ks-trust, .ks-trust-strip, .ks-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}
.ks-trust-item, .ks-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
}
.ks-trust-icon { font-size: 1.5rem; color: #0ea5e9; flex-shrink: 0; }
.ks-trust-text { font-size: 0.9rem; color: #0c4a6e; line-height: 1.45; }
.ks-why { background: #fefce8; border: 1px solid #fef08a; padding: 1.25rem; border-radius: 12px; margin: 1.5rem 0; }
.ks-why h3 { margin-top: 0; }

/* ===== FAQ ACCORDION ===== */
.ks-faq, .ks-faq-section, .ks-product-faq { margin: 2rem 0; }
.ks-faq-item, .ks-faq-card {
  margin: 0.75rem 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.ks-faq-item:hover, .ks-faq-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.ks-faq-item h3, .ks-faq-card h3,
.ks-faq dt, .ks-product-faq dt {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b3d5f;
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
}
.ks-faq-item h3::after, .ks-faq-card h3::after,
.ks-faq dt::after, .ks-product-faq dt::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: 300;
  transition: transform 0.2s;
}
.ks-faq-item.open h3::after, .ks-faq-card.open h3::after { content: "−"; }
.ks-faq-item p, .ks-faq-card p, .ks-faq-item div,
.ks-faq dd, .ks-product-faq dd {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== TABLES (comparison / specs) ===== */
.ks-product table, .ks-product-description table,
.ks-compare, .ks-specs, .ks-comparison-table, .ks-requirements {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.ks-product table thead, .ks-product-description table thead,
.ks-compare thead, .ks-specs thead, .ks-comparison-table thead, .ks-requirements thead {
  background: linear-gradient(135deg, #0b3d5f 0%, #1e5a8a 100%);
  color: #fff;
}
.ks-product table th, .ks-product-description table th,
.ks-compare th, .ks-specs th, .ks-comparison-table th, .ks-requirements th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}
.ks-product table td, .ks-product-description table td,
.ks-compare td, .ks-specs td, .ks-comparison-table td, .ks-requirements td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.ks-product table tr:last-child td, .ks-product-description table tr:last-child td,
.ks-compare tr:last-child td, .ks-specs tr:last-child td, .ks-comparison-table tr:last-child td, .ks-requirements tr:last-child td {
  border-bottom: none;
}
.ks-product table tr:nth-child(even) td, .ks-product-description table tr:nth-child(even) td,
.ks-compare tr:nth-child(even) td, .ks-specs tr:nth-child(even) td, .ks-comparison-table tr:nth-child(even) td, .ks-requirements tr:nth-child(even) td {
  background: #f9fafb;
}
.ks-product table tr:hover td, .ks-product-description table tr:hover td,
.ks-compare tr:hover td, .ks-specs tr:hover td, .ks-comparison-table tr:hover td, .ks-requirements tr:hover td {
  background: #eff6ff;
}

/* ===== RELATED PRODUCTS / CATEGORIES ===== */
.ks-related-products, .ks-related-articles, .ks-related-links, .ks-reverse-links {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fb;
  border-left: 4px solid #0b3d5f;
  border-radius: 12px;
}
.ks-related-products h3, .ks-related-articles h3,
.ks-related-links h3, .ks-reverse-links h3 {
  margin: 0 0 1rem;
  color: #0b3d5f;
  font-size: 1.2rem;
}
.ks-related-products ul, .ks-related-articles ul,
.ks-related-links ul, .ks-reverse-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ks-related-products li, .ks-related-articles li,
.ks-related-links li, .ks-reverse-links li { margin: 0.5rem 0; }
.ks-related-products a, .ks-related-articles a,
.ks-related-links a, .ks-reverse-links a {
  color: #1e5a8a;
  text-decoration: none;
  font-weight: 500;
}
.ks-related-products a:hover, .ks-related-articles a:hover,
.ks-related-links a:hover, .ks-reverse-links a:hover { text-decoration: underline; }
.ks-related-categories { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.ks-related-categories a { color: #1e5a8a; margin-right: 1rem; text-decoration: none; font-weight: 500; }
.ks-related-categories a:hover { text-decoration: underline; }

/* ===== KEYWORD CLUSTER / INTERNAL LINKS ===== */
.ks-keyword-cluster, .ks-internal-links {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.95rem;
}
.ks-internal-link-v2 { color: #1e5a8a; font-weight: 500; }

/* ===== WARNINGS ===== */
.ks-eol-warning, .ks-qav2-eol-warning, .ks-not-included {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: #991b1b;
}
.ks-eol-warning strong, .ks-qav2-eol-warning strong, .ks-not-included strong { color: #7f1d1d; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .ks-hero { flex-direction: column; align-items: flex-start; }
  .ks-apps { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .ks-features, .ks-feature-grid { grid-template-columns: 1fr; }
  .ks-usecases { grid-template-columns: 1fr; }
  .ks-trust, .ks-trust-strip, .ks-trust-badges { grid-template-columns: 1fr; }
  .ks-product table, .ks-product-description table,
  .ks-compare, .ks-specs, .ks-comparison-table, .ks-requirements { font-size: 0.85rem; }
  .ks-product table th, .ks-product table td,
  .ks-product-description table th, .ks-product-description table td,
  .ks-compare th, .ks-compare td,
  .ks-specs th, .ks-specs td { padding: 0.5rem 0.625rem; }
}

/* ===== FAQ TOGGLE SCRIPT FALLBACK (no JS = always-open accordion) ===== */
.ks-faq-item p, .ks-faq-card p,
.ks-faq dd, .ks-product-faq dd { max-height: none; }

/* NATIVE <details> ACCORDION 2026-05-12 */
details.ks-faq-item, details.ks-faq-card {
  margin: 0.75rem 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
details.ks-faq-item summary, details.ks-faq-card summary {
  list-style: none;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b3d5f;
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
  user-select: none;
}
details.ks-faq-item summary::-webkit-details-marker,
details.ks-faq-card summary::-webkit-details-marker { display: none; }
details.ks-faq-item summary::after, details.ks-faq-card summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: 300;
}
details.ks-faq-item[open] summary::after, details.ks-faq-card[open] summary::after {
  content: "−"; color: #0b3d5f;
}
details.ks-faq-item summary:hover, details.ks-faq-card summary:hover { background: #f8fafc; }
details.ks-faq-item[open] summary, details.ks-faq-card[open] summary { background: #f0f9ff; }
.ks-faq-answer { padding: 0 1.25rem 1.25rem; color: #4b5563; line-height: 1.65; font-size: 0.95rem; }
.ks-faq-answer p:last-child { margin-bottom: 0; }
