/* ─── BP Intelligence — Shared Stylesheet ─────────────────
   Business Post brand: Velino (serif), Clan OT (sans-serif).
   Color palette derived from businesspost.ie.
   ───────────────────────────────────────────────────────── */

/* ─── @font-face declarations ───────────────────────────── */

@font-face {
  font-family: 'Velino Headline';
  src: url('/fonts/VelinoHeadline-Book.woff2') format('woff2'),
       url('/fonts/VelinoHeadline-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Velino Headline';
  src: url('/fonts/VelinoHeadline-Medium.woff2') format('woff2'),
       url('/fonts/VelinoHeadline-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Velino Headline';
  src: url('/fonts/VelinoHeadline-Bold.woff2') format('woff2'),
       url('/fonts/VelinoHeadline-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Velino Text';
  src: url('/fonts/VelinoText-Book.woff2') format('woff2'),
       url('/fonts/VelinoText-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Velino Text';
  src: url('/fonts/VelinoText-Medium.woff2') format('woff2'),
       url('/fonts/VelinoText-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Velino Text';
  src: url('/fonts/VelinoText-Bold.woff2') format('woff2'),
       url('/fonts/VelinoText-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clan OT';
  src: url('/fonts/ClanOT-Book.woff2') format('woff2'),
       url('/fonts/ClanOT-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clan OT';
  src: url('/fonts/ClanOT-Medium.woff2') format('woff2'),
       url('/fonts/ClanOT-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clan OT';
  src: url('/fonts/ClanOT-Bold.woff2') format('woff2'),
       url('/fonts/ClanOT-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Custom properties ─────────────────────────────────── */

:root {
  --bp-green: #00A754;
  --bp-green-dark: #008a45;
  --bp-dark: #1a1a1a;
  --bp-text: #2d2d2d;
  --bp-text-secondary: #6b6b6b;
  --bp-border: #e0e0e0;
  --bp-border-strong: #1a1a1a;
  --bp-bg: #f5f5f0;
  --bp-surface: #ffffff;
  --bp-surface-warm: #fafaf6;
  --font-headline: 'Velino Headline', Georgia, 'Times New Roman', serif;
  --font-text: 'Velino Text', Georgia, 'Times New Roman', serif;
  --font-ui: 'Clan OT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────── */

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

body {
  font-family: var(--font-text);
  background: var(--bp-bg);
  color: var(--bp-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--bp-green-dark); text-decoration: none; }
a:hover { color: var(--bp-green); }

img, svg { display: block; max-width: 100%; }

/* ─── Ad strip ──────────────────────────────────────────── */

.ad-strip {
  background: var(--bp-surface-warm);
  border-bottom: 1px solid var(--bp-border);
  padding: 10px 24px;
  text-align: center;
}

.ad-strip-inner {
  max-width: 728px;
  margin: 0 auto;
}

.ad-strip img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ─── Header ────────────────────────────────────────────── */

.site-header {
  background: var(--bp-dark);
  padding: 0 24px;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
}

.site-header .logo-link img {
  height: 24px;
  width: auto;
}

.header-nav {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.header-nav a:hover { color: #ffffff; }

/* ─── Accent bar below header ───────────────────────────── */

.accent-bar {
  height: 2px;
  background: var(--bp-green);
}

/* ─── Main Content ──────────────────────────────────────── */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── Hero (Homepage) ───────────────────────────────────── */

.hero {
  position: relative;
  background: url('/hero-library.jpg') center bottom / cover no-repeat;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.78) 0%,
    rgba(26, 26, 26, 0.58) 50%,
    rgba(26, 26, 26, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  max-width: 680px;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: 40px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero .tagline {
  font-family: var(--font-text);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── Stat strip ────────────────────────────────────────── */

.stat-strip {
  background: var(--bp-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
}

.stat-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 500;
  color: var(--bp-green);
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

/* ─── Source Cards (Homepage) ───────────────────────────── */

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .source-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero { min-height: 200px; }
  .hero-content { padding: 32px 20px; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px 8px; }
  .stat:nth-child(2) { border-right: none; }
}

.source-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  padding: 24px 22px 20px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bp-green);
  opacity: 0;
  transition: opacity 0.15s;
}

.source-card:hover {
  border-color: #c0c0bc;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.source-card:hover::before { opacity: 1; }

.source-card .card-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-green);
  margin-bottom: 8px;
  display: block;
}

.source-card h3 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 400;
  color: var(--bp-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.source-card .desc {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--bp-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.source-card .card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #999;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.source-card .card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bp-border);
}

.source-card .card-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: var(--bp-green);
  padding: 7px 16px;
  display: inline-block;
  transition: background 0.15s;
}

.source-card .card-btn:hover {
  background: var(--bp-green-dark);
  text-decoration: none;
}

.source-card .card-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--bp-text-secondary);
}

.source-card .card-cta:hover { color: var(--bp-green); }

/* ─── Cards ─────────────────────────────────────────────── */

.card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  padding: 32px;
  margin-bottom: 20px;
}

/* ─── Typography ────────────────────────────────────────── */

h1 {
  font-family: var(--font-headline);
  font-size: 34px;
  font-weight: 400;
  color: var(--bp-dark);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 400;
  color: var(--bp-dark);
  margin: 32px 0 12px;
}

h3 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 24px 0 8px;
}

.meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--bp-text-secondary);
  margin-top: 4px;
}

.meta a { color: var(--bp-text-secondary); }
.meta a:hover { color: var(--bp-green); }

/* ─── Breadcrumb ────────────────────────────────────────── */

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--bp-text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bp-border);
  letter-spacing: 0.01em;
}

.breadcrumb a { color: var(--bp-text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--bp-green); }
.breadcrumb .sep { margin: 0 6px; color: #c4c4c0; }

/* ─── Archive / Report List ─────────────────────────────── */

.archive-header {
  margin-bottom: 32px;
}

.archive-header h1 {
  margin-bottom: 4px;
}

ul.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.report-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--bp-border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

ul.report-list li:last-child { border-bottom: none; }

ul.report-list a {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 17px;
  color: var(--bp-dark);
}

ul.report-list a:hover { color: var(--bp-green); }

ul.report-list .period-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--bp-text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Article Container (Report pages) ──────────────────── */

.article-container {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  padding: 48px 44px;
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 17px;
}

@media (max-width: 680px) {
  .article-container { padding: 24px 20px; font-size: 16px; }
}

.article-container h1 { font-family: var(--font-headline); }
.article-container h2 {
  font-family: var(--font-headline);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}
.article-container h3 {
  font-family: var(--font-ui);
  margin-top: 28px;
  font-size: 14px;
}
.article-container p { margin-bottom: 16px; }
.article-container ul, .article-container ol { margin: 0 0 16px 24px; }

/* ─── Detail grid (company profile) ─────────────────────── */

.detail-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 15px;
}

.detail-grid dt {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: var(--bp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
}

.detail-grid dd {
  padding: 4px 0;
  color: var(--bp-text);
}

/* ─── Tables (Newspaper research style) ─────────────────── */

.entity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
}

.entity-table th {
  font-family: var(--font-ui);
  text-align: left;
  border-bottom: 2px solid var(--bp-border-strong);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 11px;
  color: var(--bp-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entity-table td {
  font-family: var(--font-text);
  border-bottom: 1px solid var(--bp-border);
  padding: 10px 12px;
  vertical-align: top;
  font-size: 14px;
}

.entity-table tbody tr:hover { background: var(--bp-surface-warm); }

.entity-table a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Footer ────────────────────────────────────────────── */

.footer {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--bp-text-secondary);
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid var(--bp-border);
  background: var(--bp-surface);
  letter-spacing: 0.02em;
}

/* ─── Latest section (Homepage) ─────────────────────────── */

.latest-section {
  margin-top: 40px;
}

.section-heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bp-dark);
}

ul.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.latest-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--bp-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

ul.latest-list li:last-child { border-bottom: none; }

ul.latest-list a {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 16px;
  color: var(--bp-dark);
}

ul.latest-list a:hover { color: var(--bp-green); }

ul.latest-list .latest-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.entity-table a { font-weight: 500; }

/* ─── Detail Grid (Company pages) ───────────────────────── */

.detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 24px;
  margin-top: 16px;
  font-size: 15px;
}

.detail-grid dt {
  color: #5f6368;
  font-weight: 500;
  padding: 6px 0;
}

.detail-grid dd {
  margin: 0;
  color: #111111;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0ec;
}

@media (max-width: 680px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dt { padding-bottom: 0; }
  .detail-grid dd { padding-top: 0; margin-bottom: 8px; }
}

/* ─── Badges ────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-sub { background: #e8f5ee; color: #0a6f3c; }
.badge-micro { background: #fef3c7; color: #92400e; }
.badge-featured { background: #e8f5ee; color: #0a6f3c; }

/* ─── Footer ────────────────────────────────────────────── */

.footer {
  color: #5f6368;
  font-size: 13px;
  text-align: center;
  padding: 40px 24px 24px;
  border-top: 1px solid #e4e4df;
  margin-top: 64px;
}
