/* Ascensio Insights: article list and article pages (loads after styles.css) */
.ins-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.ins-filter:empty { display: none; }
.ins-filter button {
  font: 600 0.9rem var(--f-sans); padding: 0.5rem 1rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--white); color: var(--ink);
}
.ins-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ins-list { display: grid; border-top: 1px solid var(--ink); }
.ins-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem 2rem; align-items: center; padding-block: 2rem;
  border-bottom: 1px solid var(--rule); color: var(--ink); transition: background 0.2s; position: relative;
}
.ins-item.has-img { grid-template-columns: 220px minmax(0, 1fr) auto; }
.ins-item:hover { background: color-mix(in srgb, var(--paper-deep) 70%, transparent); }
.ins-text { display: grid; gap: 0.5rem; }
.ins-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--rule); background: var(--paper-deep); }
.ins-item.ins-legal .label, .ins-item.ins-legal .go { color: var(--oxblood); }
.ins-item.ins-business .label, .ins-item.ins-business .go { color: var(--navy); }
.ins-item.ins-personal .label, .ins-item.ins-personal .go { color: var(--forest); }
.ins-item h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--s2); line-height: 1.15; }
.ins-item h3 a { color: inherit; text-decoration: none; }
.ins-item h3 a::after { content: ""; position: absolute; inset: 0; }
.ins-item p { color: var(--ink-soft); max-width: 44em; }
.ins-item .go { font-weight: 600; font-size: 0.9rem; white-space: nowrap; text-decoration: none; }
.ins-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; position: relative; z-index: 1; }
.ins-tags a { font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.65rem; border-radius: 99px; background: var(--paper-deep); color: var(--ink-soft); text-decoration: none; border: 1px solid var(--rule); }
.ins-tags a:hover { border-color: var(--ink); color: var(--ink); }
.ins-hero .ins-tags { margin-top: 0.9rem; }
#insights-tag { margin-top: 1rem; color: var(--ink-soft); }
#insights-tag:empty { display: none; }
@media (max-width: 760px) {
  .ins-item, .ins-item.has-img { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .ins-item .go { display: none; }
}
.ins-list-compact .ins-item h3 { font-size: var(--s1); }
.ins-meta { font-size: 0.9rem; color: var(--muted); }
.ins-empty, .ins-loading { padding: 3rem 0; color: var(--muted); font-family: var(--f-serif); font-size: 1.2rem; }

.ins-hero h1 { max-width: 20em; }
.ins-hero .lede { max-width: 38em; }
.ins-hero .ins-meta { margin-top: 1.2rem; }
.ins-crumbs { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; color: var(--muted); }
.ins-crumbs a { color: var(--accent); text-decoration: none; }

.ins-body { max-width: 42em; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.ins-body > * + * { margin-top: 1.1em; }
.ins-body h2 { font-size: var(--s2); color: var(--ink); margin-top: 2em; line-height: 1.2; }
.ins-body h3 { font-size: var(--s1); color: var(--ink); margin-top: 1.6em; font-weight: 600; }
.ins-body h4 { font-family: var(--f-sans); font-size: 1rem; color: var(--ink); margin-top: 1.4em; }
.ins-body strong { color: var(--ink); }
.ins-body ul, .ins-body ol { padding-left: 1.4em; }
.ins-body li + li { margin-top: 0.4em; }
.ins-body blockquote { margin-left: 0; padding: 0.4em 0 0.4em 1.2em; border-left: 3px solid var(--accent); font-family: var(--f-serif); font-size: 1.2rem; color: var(--ink); }
.ins-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ins-body th, .ins-body td { border-bottom: 1px solid var(--rule); padding: 0.6em 0.8em 0.6em 0; text-align: left; vertical-align: top; }
.ins-body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.ins-body img { max-width: 100%; height: auto; }

.ins-related {
  max-width: 42em; margin-top: 3rem; padding: 1.8rem 2rem; background: var(--white);
  border: 1px solid var(--rule); border-top: 3px solid var(--accent); display: grid; gap: 0.8rem; justify-items: start;
}
.ins-related h2 { font-size: var(--s2); }
.ins-disclaimer { max-width: 42em; margin-top: 2.5rem; font-size: 0.9rem; color: var(--muted); }
.ins-preview { background: #F6E7B4; color: var(--ink); text-align: center; padding: 0.7rem 1rem; font-weight: 600; font-size: 0.92rem; }

.ins-figure { margin: 2em 0; }
.ins-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.ins-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.ins-feature { max-width: 56rem; margin: 0 0 2.5rem; }
.ins-video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--ink); }
.ins-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ins-author {
  max-width: 42em; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start;
}
.ins-author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.ins-author h2 { font-size: var(--s1); margin-top: 0.3rem; }
.ins-author p { color: var(--ink-soft); margin-top: 0.4rem; }
.ins-author .ins-role { color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }
