/* =====================================================================
   Innovation Matters — shared site stylesheet
   Consolidated 2026-08-15 from what were previously per-page inline
   <style> blocks. Every Innopedia article and the Activities &
   Exercises hub link to this one file instead of duplicating CSS.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #F8F9FA; color: #202122; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.6; }
a { color: #3366CC; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #fff; border-bottom: 1px solid #A2A9B1; }
.header-top { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-logo { font-size: 22px; font-weight: 700; color: #B8893A; text-decoration: none; font-family: Georgia, serif; }
.site-tagline { font-size: 11px; color: #54595D; font-family: 'Source Sans 3', sans-serif; border-left: 1px solid #A2A9B1; padding-left: 12px; margin-left: 12px; }
.header-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.header-nav a { font-size: 12px; font-family: 'Source Sans 3', sans-serif; color: #54595D; }
.tab-bar { background: #F8F9FA; border-bottom: 1px solid #A2A9B1; padding: 0 20px; }
.tab-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; font-family: 'Source Sans 3', sans-serif; font-size: 13px; }
.tab { padding: 6px 14px; color: #54595D; border-right: 1px solid #A2A9B1; }
.tab.active { background: #fff; color: #202122; font-weight: 600; border-bottom: 2px solid #fff; margin-bottom: -1px; }
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
article h1 { font-size: 28px; font-weight: 400; color: #202122; border-bottom: 1px solid #A2A9B1; padding-bottom: 4px; margin-bottom: 14px; line-height: 1.2; }
article h4 { font-size: 16px; font-weight: 700; color: #202122; margin-bottom: 10px; }
article p { font-size: 15px; color: #202122; line-height: 1.7; margin-bottom: 14px; }
.section-head { font-size: 19px; font-weight: 400; color: #202122; border-bottom: 1px solid #A2A9B1; padding-bottom: 3px; margin: 24px 0 10px; font-family: Georgia, serif; }
.toc { background: #F8F9FA; border: 1px solid #A2A9B1; display: inline-block; padding: 10px 16px; margin: 0 0 16px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; min-width: 200px; }
.toc-title { font-weight: 700; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 3px; }
.article-figure { margin: 20px 0 4px; text-align: center; }
.article-figure img { max-width: 100%; border: 1px solid #A2A9B1; padding: 4px; background: #fff; }
.figure-caption { font-family: 'Source Sans 3', sans-serif; font-size: 12px; color: #54595D; margin-top: 6px; font-style: italic; text-align: center; margin-bottom: 20px; }
.infobox { background: #F8F9FA; border: 1px solid #A2A9B1; font-family: 'Source Sans 3', sans-serif; font-size: 13px; }
.infobox-title { background: #CEE0F2; text-align: center; font-weight: 700; padding: 6px 10px; border-bottom: 1px solid #A2A9B1; }
.infobox-img { text-align: center; padding: 10px; border-bottom: 1px solid #A2A9B1; }
.infobox-img img { max-width: 100%; }
.infobox-caption { font-size: 11px; color: #54595D; text-align: center; padding: 4px 8px 8px; border-bottom: 1px solid #A2A9B1; font-style: italic; }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox tr { border-bottom: 1px solid #EAECF0; }
.infobox tr:last-child { border-bottom: none; }
.infobox td { padding: 5px 10px; vertical-align: top; line-height: 1.4; }
.infobox td:first-child { font-weight: 600; color: #54595D; width: 45%; }
.references-list { font-family: 'Source Sans 3', sans-serif; font-size: 13px; padding-left: 20px; }
.references-list li { margin-bottom: 6px; line-height: 1.5; }
footer { border-top: 1px solid #A2A9B1; background: #F8F9FA; padding: 16px 20px; margin-top: 40px; font-family: 'Source Sans 3', sans-serif; font-size: 12px; color: #54595D; text-align: center; }
.svg-figure { margin: 20px 0 4px; text-align: center; background: #fff; border: 1px solid #A2A9B1; padding: 12px; }
.svg-figure svg { max-width: 100%; height: auto; }
.activity-box { background: #FEF6E7; border: 1px solid #E0C787; border-left: 4px solid #B8893A; padding: 12px 16px; margin: 18px 0; font-size: 14px; }
.activity-box strong { color: #8A6416; }
.video-figure { margin: 20px 0 4px; }
.video-figure .video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border: 1px solid #A2A9B1; background: #fff; }
.video-figure .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.quadrant-box { border: 1px solid #A2A9B1; background: #F8F9FA; padding: 12px 16px; margin: 14px 0; }
.quadrant-box h4 { font-size: 14px; font-weight: 700; color: #202122; margin-bottom: 6px; }
.quadrant-box p { margin-bottom: 6px; font-size: 14px; }
.quadrant-box p:last-child { margin-bottom: 0; }
.quadrant-box .label { font-weight: 600; color: #54595D; }
#scope-to-workpackages ~ p[id^="ref-"] { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #54595D; margin-bottom: 6px; }
article sup a { color: #3366CC; text-decoration: none; font-size: 11px; }
p[id^="ref-"] { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #54595D; margin-bottom: 6px; }
.main-wrap.wide-article { grid-template-columns: 1fr 220px; }
.ecosystem-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13px; }
.ecosystem-table caption { text-align: left; font-weight: 700; font-size: 15px; padding-bottom: 8px; font-family: Georgia, serif; }
.ecosystem-table th { background: #CEE0F2; border: 1px solid #A2A9B1; padding: 8px 10px; text-align: left; font-weight: 700; }
.ecosystem-table td { border: 1px solid #A2A9B1; padding: 8px 10px; vertical-align: top; line-height: 1.5; }
.ecosystem-table td.source { color: #54595D; font-size: 11px; display: block; margin-top: 4px; }
.ecosystem-table .row-label { background: #F8F9FA; font-weight: 700; text-align: center; }
.roi-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13px; }
.roi-table caption { text-align: left; font-weight: 700; font-size: 15px; padding-bottom: 8px; font-family: Georgia, serif; }
.roi-table th { background: #CEE0F2; border: 1px solid #A2A9B1; padding: 8px 10px; text-align: left; font-weight: 700; }
.roi-table th:hover { background: #B9D3EC; }
.roi-table th .sort-arrow { font-size: 10px; color: #54595D; margin-left: 4px; }
.roi-table td { border: 1px solid #A2A9B1; padding: 8px 10px; vertical-align: top; line-height: 1.5; }
.roi-table tr:nth-child(even) td { background: #F8F9FA; }
.native-video-wrap { border: 1px solid #A2A9B1; background: #000; margin: 20px 0 4px; }
.native-video-wrap video { width: 100%; display: block; }
.stepper { margin: 18px 0; }
.stepper-step { display: flex; gap: 14px; padding: 12px 14px; border: 1px solid #A2A9B1; border-left: 4px solid #A2A9B1; background: #F8F9FA; margin-bottom: 8px; cursor: pointer; transition: border-left-color 0.2s, background 0.2s; }
.stepper-step:hover { background: #EAF0F9; }
.stepper-step.active { border-left-color: #3366CC; background: #EAF0F9; }
.stepper-timestamp { flex-shrink: 0; font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 700; color: #3366CC; background: #fff; border: 1px solid #A2A9B1; border-radius: 3px; padding: 3px 8px; align-self: flex-start; white-space: nowrap; }
.stepper-step.active .stepper-timestamp { background: #3366CC; color: #fff; border-color: #3366CC; }
.stepper-content h4 { font-size: 14px; font-weight: 700; color: #202122; margin-bottom: 4px; }
.stepper-content p { font-family: 'Source Sans 3', sans-serif; font-size: 13.5px; color: #202122; line-height: 1.55; margin-bottom: 0; }
.abstract-box { background: #F8F9FA; border: 1px solid #A2A9B1; border-left: 4px solid #3366CC; padding: 16px 20px; margin: 18px 0; font-size: 14px; font-style: italic; line-height: 1.7; }
.abstract-label { font-style: normal; font-weight: 700; color: #3366CC; display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.tool-embed { margin: 20px 0; border: 1px solid #A2A9B1; background: #fff; padding: 4px; }
.tool-embed iframe { width: 100%; border: 0; display: block; }
.innopedia-intro { font-size: 15px; color: #202122; line-height: 1.7; margin-bottom: 22px; max-width: 720px; }
.category-block { margin-bottom: 28px; }
.category-title { font-size: 17px; font-weight: 700; color: #202122; font-family: Georgia, serif; border-bottom: 1px solid #A2A9B1; padding-bottom: 4px; margin-bottom: 10px; }
.entry-list { list-style: none; }
.entry-list li { padding: 10px 0; border-bottom: 1px solid #EAECF0; }
.entry-list li:last-child { border-bottom: none; }
.entry-list a { font-size: 15px; font-weight: 600; color: #3366CC; }
.entry-blurb { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #54595D; margin-top: 3px; line-height: 1.5; }
/* --- Workbook hub layout (distinct from the Innopedia article template) --- */
  .hub-wrap { max-width: 1000px; margin: 0 auto; padding: 28px 20px 48px; }
.hub-header { margin-bottom: 28px; }
.hub-header h1 { font-size: 30px; font-weight: 400; color: #202122; margin-bottom: 8px; line-height: 1.2; }
.status-badge { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #8A6416; background: #FEF6E7; border: 1px solid #E0C787; border-radius: 3px; padding: 3px 10px; }
.hub-intro { font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: #54595D; margin-top: 10px; max-width: 640px; }
.hub-section-head { font-size: 20px; font-weight: 400; color: #202122; border-bottom: 1px solid #A2A9B1; padding-bottom: 4px; margin: 36px 0 6px; font-family: Georgia, serif; }
.hub-section-sub { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #54595D; margin-bottom: 16px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 8px; }
.featured-card { display: block; background: #fff; border: 1px solid #A2A9B1; border-top: 3px solid #3366CC; padding: 16px 18px; font-family: 'Source Sans 3', sans-serif; }
.featured-card:hover { border-top-color: #244e93; text-decoration: none; background: #FAFBFC; }
.featured-card .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #3366CC; margin-bottom: 6px; display: block; }
.featured-card .title { font-size: 15px; font-weight: 600; color: #202122; line-height: 1.4; }
.featured-card .arrow { color: #3366CC; font-size: 13px; margin-top: 8px; display: block; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.flip-card { background: transparent; height: 230px; perspective: 1200px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.5s; transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: #fff; border: 1px solid #A2A9B1;
    padding: 16px 18px; overflow-y: auto; }
.flip-card-front { display: flex; flex-direction: column; }
.flip-card-back { transform: rotateY(180deg); }
.flip-card:hover .flip-card-front, .flip-card:hover .flip-card-back { border-color: #3366CC; }
.activity-num { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; color: #fff; background: #54595D; border-radius: 3px; padding: 2px 8px; margin-bottom: 8px; align-self: flex-start; }
.flip-card.case .activity-num { background: #8A6416; }
.flip-card-front h3 { font-size: 15px; font-weight: 700; color: #202122; margin-bottom: 8px; line-height: 1.35; }
.flip-card-front .short-desc { font-size: 13.5px; color: #54595D; line-height: 1.55; font-family: 'Source Sans 3', sans-serif; flex-grow: 1; }
.flip-card-front .flip-hint { font-family: 'Source Sans 3', sans-serif; font-size: 11px; color: #3366CC; margin-top: auto; padding-top: 8px; }
.flip-card-back .activity-num { margin-bottom: 6px; }
.flip-card-back h3 { font-size: 13.5px; font-weight: 700; color: #202122; margin-bottom: 8px; line-height: 1.3; }
.flip-card-back p { font-size: 12.5px; color: #202122; line-height: 1.55; margin-bottom: 7px; font-family: 'Source Sans 3', sans-serif; }
.flip-card-back p:last-child { margin-bottom: 0; }
.flip-card-back .bg-reading { font-size: 11.5px; }
.flip-card-back ol { font-family: 'Source Sans 3', sans-serif; font-size: 12.5px; padding-left: 16px; margin-bottom: 7px; }
.flip-card-back ol ol { margin-top: 3px; margin-bottom: 3px; }
.flip-card-back li { margin-bottom: 3px; }
.flip-card-back table { font-size: 11px !important; }
.flip-card-back .close-hint { font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; color: #A2A9B1; text-align: right; margin-top: 6px; }
.activity-figure { margin: 8px 0; text-align: center; }
.activity-figure img { max-width: 100%; border: 1px solid #A2A9B1; padding: 3px; background: #fff; }
.activity-figure-caption { font-family: 'Source Sans 3', sans-serif; font-size: 10px; color: #54595D; margin-top: 3px; font-style: italic; }

@media (max-width: 780px) {
  .main-wrap { grid-template-columns: 1fr; }
  .infobox { order: -1; }
  article h1 { font-size: 22px; }
  .hub-header h1 { font-size: 24px; }
}
/* Sortable-table variant (only the Estimating Value & ROI page uses this,
   since it has the click-to-sort JS) */
.roi-table.sortable th { cursor: pointer; user-select: none; }
.roi-table.sortable th:hover { background: #B9D3EC; }
.roi-table .sort-arrow { font-size: 10px; color: #54595D; margin-left: 4px; }

/* Site logo badge — small circular mark next to the wordmark, added to the
   shared header for brand distinction from Wikipedia's own visual style */
.site-badge { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 1px #A2A9B1; }

/* Homepage — hero and section cards */
.hero-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 20px 40px; text-align: center; }
.hero-logo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #A2A9B1, 0 8px 24px rgba(0,0,0,0.15); margin-bottom: 24px; }
.hero-title { font-family: Georgia, serif; font-size: 42px; font-weight: 400; color: #202122; margin-bottom: 10px; }
.hero-tagline { font-family: 'Source Sans 3', sans-serif; font-size: 18px; color: #54595D; max-width: 560px; margin: 0 auto 28px; line-height: 1.5; }
.hero-cta { display: inline-block; background: #3366CC; color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: 4px; text-decoration: none; }
.hero-cta:hover { background: #244e93; text-decoration: none; }

.section-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px 60px; }
.section-grid-title { text-align: center; font-family: Georgia, serif; font-size: 24px; font-weight: 400; color: #202122; margin-bottom: 28px; }
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.section-card { display: block; background: #fff; border: 1px solid #A2A9B1; border-top: 3px solid #B8893A; padding: 22px 22px 18px; text-decoration: none; }
.section-card:hover { border-top-color: #8A6416; text-decoration: none; background: #FAFBFC; }
.section-card .title { display: block; font-family: Georgia, serif; font-size: 19px; font-weight: 700; color: #202122; margin-bottom: 8px; }
.section-card .desc { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 13.5px; color: #54595D; line-height: 1.55; }
.section-card .arrow { display: block; margin-top: 12px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #3366CC; }

@media (max-width: 780px) {
  .hero-title { font-size: 30px; }
  .hero-logo { width: 100px; height: 100px; }
}

/* Homepage — spotlight (update every ~4 weeks) */
.spotlight-wrap { max-width: 800px; margin: 0 auto 50px; padding: 0 20px; }
.spotlight-card { display: flex; gap: 20px; background: #FEF6E7; border: 1px solid #E0C787; border-left: 4px solid #B8893A; padding: 18px 22px; align-items: center; }
.spotlight-label { font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8A6416; position: absolute; margin-top: -34px; }
.spotlight-thumb { width: 120px; height: 90px; object-fit: cover; border: 1px solid #A2A9B1; flex-shrink: 0; background: #fff; }
.spotlight-text { font-family: 'Source Sans 3', sans-serif; }
.spotlight-type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #3366CC; margin-bottom: 4px; }
.spotlight-title { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: #202122; margin-bottom: 6px; line-height: 1.3; }
.spotlight-desc { font-size: 13.5px; color: #54595D; line-height: 1.5; margin-bottom: 8px; }
.spotlight-link { font-size: 13px; font-weight: 600; color: #3366CC; text-decoration: none; }
.spotlight-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .spotlight-card { flex-direction: column; text-align: center; }
  .spotlight-thumb { width: 100%; height: 160px; }
  .spotlight-label { position: static; display: block; margin-bottom: 8px; }
}
