.insights-main { max-width: 960px; }
.insights-main h1 { overflow-wrap: anywhere; }
.insights-main .legal-section { margin-block: 1.5rem; }
.insights-main p, .insights-main li { line-height: 1.8; }
.insights-main a { overflow-wrap: anywhere; }
.insights-list { display: grid; gap: 1rem; }
.verification-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid #31845b; border-radius: 99px; background: #103426; color: #a5f0c3; font-size: .875rem; font-weight: 600; text-decoration: none; }
.verification-badge span { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; background: #a5f0c3; color: #103426; border-radius: 50%; }
.article-engagement { margin-block: 2rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--border, #40536b); border-radius: 1rem; background: var(--surface-soft, #101d2e); }
.article-engagement h2 { margin-top: 0; }
.article-action-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.article-action { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1rem; border: 1px solid #61738b; border-radius: .65rem; color: #e7eef8; background: #18283e; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.article-action:hover { background: #263e5e; }
.article-action-primary, .article-action[aria-pressed="true"] { background: #193e38; border-color: #69c9a1; color: #c2f9df; }
.article-action:focus-visible, .verification-badge:focus-visible { outline: 3px solid #90c9ff; outline-offset: 3px; }
.article-action-status { min-height: 1.8em; font-size: .875rem; }
.article-engagement input { display: block; box-sizing: border-box; width: 100%; padding: .75rem; color: #e7eef8; background: #101d2e; border: 1px solid #61738b; border-radius: .5rem; }
.article-engagement [hidden] { display: none; }
.article-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.icon-heart.is-liked { fill: currentColor; }
.article-byline { display: flex; align-items: flex-start; gap: .85rem; margin-top: 1.6rem; padding-block: 1.25rem; border-block: 1px solid var(--border, #40536b); }
.article-avatar { display:block; flex:0 0 44px; width:44px; height:44px; border-radius:22%; }
.insights-main .article-author { margin: 0 0 .4rem; font-size: .92rem; font-weight: 650; line-height: 1.5; }
.article-editorial { color: var(--text-secondary, #b6c4d6); font-weight: 400; margin-left: .35rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: var(--text-secondary, #b6c4d6); font-size: .82rem; }
.article-meta .verification-badge { padding: .25rem .55rem; font-size: .78rem; border-color: #285c46; }
.article-meta .verification-badge svg { width: 17px; height: 17px; flex-basis: 17px; }
.insights-main .article-reviewed { font-size: .75rem; margin: .5rem 0 0; color: var(--text-secondary, #b6c4d6); }
.article-action { font-size: .875rem; gap: .55rem; }
.article-like-note { color: var(--text-secondary, #b6c4d6); font-size: .75rem; margin-bottom: 0; }
.article-action-status:empty { display: none; }
.article-action-row { margin-top: 1.25rem; }
@media (max-width: 480px) { .article-action { padding: .6rem .8rem; } .article-meta { gap: .55rem .8rem; } .article-editorial { display: block; margin: 0; } }
.article-figure { margin: 1.75rem 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--border); }
.article-figure figcaption { margin-top: .7rem; color: var(--text-secondary); font-size: .8rem; line-height: 1.6; }
.hub-main { max-width: 1200px; }
.hub-hero { max-width: 850px; margin-bottom: 2rem; }
.hub-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.035em; }
.hub-stats { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.75rem; color: var(--text-secondary, #b6c4d6); font-size: .85rem; }
.hub-stats strong { color: #a5f0c3; font-size: 1.1rem; }
.hub-browser > h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.hub-controls { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 1rem; padding: 1.5rem; background: #101f30; border: 1px solid #30465d; border-radius: 1rem; }
.hub-controls > div { min-width: 0; }
.hub-controls label { display: block; margin-bottom: .5rem; font-size: .82rem; color: #cedbea; font-weight: 600; }
.hub-controls input, .hub-controls select { width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid #4b627b; border-radius: .5rem; background: #091827; color: #f1f6fc; padding: .7rem; font: inherit; font-size: .875rem; color-scheme: dark; }
.hub-search-input { position: relative; }
.hub-search-input svg { position: absolute; left: .8rem; top: 13px; color: #94b8d8; pointer-events: none; }
.hub-controls .hub-search-input input { padding-left: 2.5rem; }
.hub-controls #hub-search-help { grid-column: 1 / 4; color: #b6c4d6; font-size: .78rem; margin: 0; align-self: center; }
.hub-reset { background: transparent; color: #9cd1ff; border: 0; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; min-height: 36px; justify-self: end; }
.hub-topic-links { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 1.8rem; }
.hub-topic-links a { display: inline-flex; gap: .65rem; align-items: center; padding: .55rem .8rem; border: 1px solid #3d5268; border-radius: 99px; background: #102133; color: #dce9f5; text-decoration: none; font-size: .8rem; min-height: 24px; }
.hub-topic-links a[aria-current], .hub-topic-links a:hover { background: #173e36; border-color: #65bc9b; color: #b8f7d7; }
.hub-topic-links a span { color: #a4bacf; }
.hub-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: 1rem; font-size: .82rem; color: #b6c4d6; }
.hub-results-bar p { margin: 0; font-weight: 600; color: #e7eef8; }
.hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.hub-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid #30465d; background: #101f30; border-radius: .9rem; min-width: 0; }
.hub-card-image, .hub-card-fallback { width: 100%; aspect-ratio: 1200/630; object-fit: cover; height: auto; border-bottom: 1px solid #30465d; }
.hub-card-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg,#102e48,#123e3a); color: #8bd8bf; font-size: 2.5rem; font-weight: 600; }
.hub-card-fallback span { margin-top: .8rem; font-size: .85rem; font-weight: 400; }
.hub-card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.hub-topic { color: #8cdec1; font-size: .72rem; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; }
.hub-card h2 { font-size: 1.15rem; line-height: 1.45; margin: .7rem 0; }
.hub-card h2 a { color: #f0f5fc; text-decoration: none; }
.hub-card h2 a:hover { color: #9cd1ff; text-decoration: underline; }
.hub-card-body > p { font-size: .875rem; color: #b6c4d6; margin: 0 0 1rem; }
.hub-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.hub-tags span { font-size: .7rem; color: #bfcee0; padding: .2rem .45rem; border: 1px solid #354b63; border-radius: .3rem; }
.hub-card-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #2e4258; font-size: .7rem; color: #b6c4d6; }
.hub-checked { color: #8cdec1; }
.hub-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed #4b627b; border-radius: 1rem; }
.hub-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hub-pagination button:disabled { opacity: .4; cursor: default; }
.hub-browser [hidden] { display: none; }
.hub-browser :is(input,select,button,a):focus-visible { outline: 3px solid #90c9ff; outline-offset: 3px; }
.article-toc { padding: 1rem 1.4rem; border-left: 3px solid #62b998; background: #101f30; margin-block: 1.5rem; border-radius: 0 .6rem .6rem 0; }
.article-toc h2 { font-size: 1rem; margin-top: 0; }
.article-toc ol { padding-left: 1.2rem; margin-bottom: 0; }
.article-toc li { margin-block: .45rem; font-size: .9rem; }
.insights-main section[id] { scroll-margin-top: 110px; }
@media(max-width:1000px) { .hub-controls { grid-template-columns: repeat(3,minmax(0,1fr)); } .hub-search-field { grid-column: 1 / -1; } .hub-controls #hub-search-help { grid-column: 1 / 3; } .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .hub-controls { grid-template-columns: 1fr 1fr; padding: 1rem; gap: .85rem; } .hub-controls > div:last-of-type { grid-column: 1 / -1; } .hub-controls #hub-search-help { grid-column: 1 / -1; } .hub-reset { grid-column: 1 / -1; } .hub-grid { grid-template-columns: 1fr; } .hub-stats > span:last-child { width: 100%; } .hub-results-bar > span { display: none; } }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 20000; background: transparent; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #60b6ff, #80e1b3); transform: scaleX(0); transform-origin: left; }
.reading-progress[hidden] { display: none; }
.article-back-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .7rem 1rem; border: 1px solid #6cc9a4; border-radius: 99px; color: #d4ffec; background: #143a32; box-shadow: 0 4px 18px #0006; font: inherit; font-size: .8rem; cursor: pointer; z-index: 900; }
.article-back-top[hidden] { display: none; }
.article-back-top:hover { background: #205446; }
.article-back-top:focus-visible { outline: 3px solid #90c9ff; outline-offset: 3px; }
#article-top { scroll-margin-top: 100px; }
#article-top:focus { outline: none; }

/* Manufacturing learning paths retain a full-library route and existing article URLs. */
.hub-manufacturing-context { margin:1.5rem 0; padding:1.25rem 1.5rem; background:#f3f7fc; border:1px solid #dce5ef; border-radius:16px; color:#334155; }
.hub-manufacturing-context p { margin:0 0 .6rem; }
.hub-manufacturing-context a { color:#0066cc; font-size:.9rem; }
.hub-archive-context { background:#f7f7f9; }
.hub-learning-path-grid .hub-path-role { color:#52637a; font-size:.72rem; font-weight:600; letter-spacing:.035em; }
.hub-path-all[aria-current="true"] { color:#0055ad; text-decoration:underline; text-underline-offset:4px; }
.hub-controls .hub-path-field { grid-column:1 / -1; }
.hub-controls select:disabled { opacity:.55; }
@media (max-width:700px) { .hub-controls .hub-path-field { grid-column:auto; } .hub-manufacturing-context {padding:1rem;} }
