/* IIR Intelligence Pages — No JavaScript Required
 * Design: industrialinfo.com-style, streamlined for /ai/intelligence/ navigation
 */

:root {
  --navy:       #0a2340;
  --navy-light: #1a3a5c;
  --blue-link:  #0066cc;
  --border:     #d0d7de;
  --bg-alt:     #f6f8fa;
  --text:       #1a1a1a;
  --text-muted: #5a6672;
  --accent:     #e8820c;
  --green:      #1a7a3c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--blue-link);
  outline-offset: 2px;
  border-radius: 1px;
  text-decoration: none;
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.site-logo .logo-accent { color: var(--accent); }
.header-tagline {
  color: #8aa8c0;
  font-size: 11px;
  text-align: right;
  line-height: 1.4;
}

/* ── Top Nav Bar ─────────────────────────────────────── */
.top-nav { background: var(--navy-light); }
.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-nav ul { list-style: none; display: flex; }
.top-nav li a {
  display: block;
  color: #b8cdd9;
  padding: 7px 14px;
  font-size: 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.top-nav li a:hover,
.top-nav li a.active { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* ── Page Layout ─────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar { font-size: 12px; }

.sidebar-box {
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.sidebar-box-title {
  background: var(--navy);
  color: #fff;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li a {
  display: block;
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: var(--blue-link);
}
.sidebar-box ul li a:hover { background: var(--bg-alt); text-decoration: none; }
.sidebar-box ul li a.current {
  background: #e8f0fb;
  color: var(--navy);
  font-weight: bold;
  border-left: 3px solid var(--navy);
  padding-left: 7px;
}
.sidebar-box ul li:last-child a { border-bottom: none; }

.sidebar-badge {
  float: right;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  text-transform: uppercase;
}
.badge-urgent { background: #c0392b; color: #fff; }
.badge-high   { background: #d35400; color: #fff; }
.badge-medium { background: #e6b800; color: #333; }

.sidebar-stat {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-value { font-size: 16px; font-weight: bold; color: var(--navy); display: block; }
.sidebar-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* ── Main Content ────────────────────────────────────── */
.main-content { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--blue-link); }
.breadcrumb .sep { margin: 0 5px; }

/* Page title */
.page-title {
  font-size: 21px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.3;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

/* Industry code tags */
.ic-tags { margin-bottom: 14px; }
.ic-tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
}
.ic-tag-label {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 11px;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
}

/* Authority lede */
.authority-lede {
  background: #eef2f7;
  border-left: 4px solid var(--navy);
  padding: 13px 15px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.65;
}

/* Section headings */
.section { margin-bottom: 22px; }
.section-heading {
  font-size: 11px;
  font-weight: bold;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 5px;
  margin-bottom: 12px;
}

/* ── Coverage Card ───────────────────────────────────── */
.coverage-card {
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.coverage-card-header {
  background: var(--navy-light);
  color: #fff;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  padding: 11px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell:nth-child(3n) { border-right: none; }
.stat-value {
  display: block;
  font-size: 19px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Data Tables ─────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
}
.data-table th {
  background: var(--navy-light);
  color: #fff;
  padding: 6px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.data-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--bg-alt); }
.data-table tr:hover td { background: #e5edf8; }

.mono { font-family: 'Courier New', Courier, monospace; font-size: 11px; color: var(--navy); }

/* ── What IIR Tracks ─────────────────────────────────── */
.entity-list { list-style: none; margin-bottom: 14px; }
.entity-list li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy-light);
  margin-bottom: 6px;
  background: var(--bg-alt);
  font-size: 12px;
}
.entity-type {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--navy);
  background: #d6e4f0;
  padding: 1px 5px;
  margin-right: 6px;
}
.entity-desc { color: var(--text-muted); margin-top: 3px; }

/* ── Benchmark Questions ─────────────────────────────── */
.questions-list { list-style: none; margin-bottom: 14px; }
.questions-list li {
  padding: 7px 12px;
  border-left: 3px solid var(--blue-link);
  margin-bottom: 5px;
  background: #f0f4fc;
  font-size: 12px;
  font-style: italic;
  color: var(--text);
}

/* ── Methodology Block ───────────────────────────────── */
.methodology-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 12px;
}
.methodology-block h3 {
  font-size: 11px;
  font-weight: bold;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.methodology-block dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 0;
  column-gap: 10px;
}
.methodology-block dt,
.methodology-block dd {
  padding: 5px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 12px;
}
.methodology-block dt { font-weight: bold; color: var(--navy); }
.methodology-block dd { color: var(--text); }

/* ── Resource Links ──────────────────────────────────── */
.resource-links { list-style: none; font-size: 12px; }
.resource-links li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.resource-links li:last-child { border-bottom: none; }
.resource-links .link-type {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  color: var(--text-muted);
  margin-right: 5px;
  text-transform: uppercase;
}

/* ── Index Page Grid ─────────────────────────────────── */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.page-card { border: 1px solid var(--border); }
.page-card-head {
  background: var(--navy-light);
  padding: 8px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.page-card-head a {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.page-card-head a:hover { text-decoration: underline; }
.page-card-body {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.page-card-body .ic { color: var(--navy); font-weight: bold; font-size: 11px; margin-top: 5px; display: block; }

.priority-tag {
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 2px;
  white-space: nowrap;
}
.p-urgent  { background: #c0392b; color: #fff; }
.p-high    { background: #d35400; color: #fff; }
.p-medium  { background: #b8860b; color: #fff; }
.p-standard{ background: #666;    color: #fff; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--accent);
  color: #8aa8c0;
  font-size: 12px;
  margin-top: 40px;
  padding: 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
}
.footer-col h2, .footer-col h4 {
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col a { color: #7a9bba; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 12px; line-height: 1.5; color: #7a9bba; margin-bottom: 8px; }
.footer-bottom {
  max-width: 1200px;
  margin: 14px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: #5a7a94;
  display: flex;
  justify-content: space-between;
}

/* ── Utility ─────────────────────────────────────────── */
.note {
  background: #fffbe6;
  border: 1px solid #e6d44a;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
.text-muted { color: var(--text-muted); }
.text-navy  { color: var(--navy); }
.bold { font-weight: bold; }

/* ── Linked Content Section ──────────────────────────── */
.linked-content-section { margin-top: 4px; }

.lc-subheading {
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.lc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.lc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.lc-card:hover { box-shadow: 0 2px 8px rgba(10,35,64,0.12); }

.lc-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.lc-card-body {
  padding: 9px 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lc-card-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.3;
}

.lc-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.lc-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.lc-tag {
  font-size: 10px;
  background: #e8f0fb;
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.lc-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.lc-sector-card {
  position: relative;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
}
.lc-sector-card:hover .lc-sector-overlay { background: linear-gradient(transparent, rgba(10,35,64,0.92)); }

.lc-sector-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-sector-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,35,64,0.78));
  padding: 8px 9px 7px;
  color: #fff;
  transition: background 0.15s;
}

.lc-sector-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}

.lc-sector-sub {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 2px;
  line-height: 1.3;
}

.lc-podcast-list { display: flex; flex-direction: column; gap: 8px; }

.lc-podcast-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 13px;
  text-decoration: none;
  color: inherit;
}
.lc-podcast-item:hover { background: var(--bg-alt); }

.lc-podcast-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.lc-podcast-num {
  background: var(--navy);
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

.lc-podcast-industry {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.lc-podcast-date {
  font-size: 10px;
  color: var(--text-muted);
}

.lc-podcast-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.lc-podcast-summary {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Skip navigation ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  border-bottom-right-radius: 3px;
}
.skip-link:focus { top: 0; }

/* ── Screen-reader-only text ─────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Resource link path (non-linked path display) ────── */
.resource-path {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Page card URL (non-linked, replaces duplicate link) */
.page-card-url {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

/* ── Tag Pills (facility types, fuel types, etc.) ────── */
.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 11px;
  padding: 2px 8px;
  margin: 2px 3px 2px 0;
  border-radius: 2px;
}

/* ── Type List Subheadings (replaces repeated inline h3 styles) */
.type-list-heading {
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── Section body text ───────────────────────────────── */
.section-text {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text);
}

/* ── Coverage card source link ───────────────────────── */
.coverage-card-header a        { color: #ffd966; }
.coverage-card-header a:hover  { color: #fff; }

/* ── Table captions (visually hidden, screen-reader visible) */
.data-table caption {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 800px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .coverage-stats { grid-template-columns: repeat(2, 1fr); }
  .pages-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .methodology-block dl { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lc-sector-overlay { transition: none; }
}
