/* Country storage reference pages — aligned with EnergyRiskIQ's slate-and-gold system. */
.country-storage-page {
  margin: 0;
  --csp-bg: #0f172a;
  --csp-card: #1e293b;
  --csp-card-raised: #243247;
  --csp-border: #334155;
  --csp-text: #e2e8f0;
  --csp-muted: #94a3b8;
  --csp-dim: #64748b;
  --csp-gold: #d4a017;
  --csp-gold-bright: #fbbf24;
  --csp-blue: #60a5fa;
  --csp-green: #4ade80;
  --csp-red: #f87171;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--csp-bg);
  color: var(--csp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.country-storage-page *,
.country-storage-page *::before,
.country-storage-page *::after {
  box-sizing: border-box;
}

.country-storage-page .csp-wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
  padding: 38px 0 64px;
}

.country-storage-page .csp-hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--csp-border);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.055), transparent 88%);
}

.country-storage-page .csp-hero::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: max(20px, calc((100vw - 1160px) / 2));
  width: 64px;
  height: 2px;
  background: var(--csp-gold);
  content: "";
}

.country-storage-page .csp-kicker {
  margin: 0 0 12px;
  color: var(--csp-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.4;
  text-transform: uppercase;
}

.country-storage-page .csp-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #f1f5f9;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.country-storage-page .csp-subtitle {
  max-width: 760px;
  margin: 16px 0 0;
  color: #aab8c9;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
}

.country-storage-page .csp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--csp-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.country-storage-page .csp-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.country-storage-page .csp-meta a,
.country-storage-page .csp-credit a,
.country-storage-page .csp-editorial a,
.country-storage-page .csp-note a {
  color: var(--csp-blue);
  text-decoration-color: rgba(96, 165, 250, 0.42);
  text-underline-offset: 3px;
}

.country-storage-page .csp-methodology-link {
  color: var(--csp-blue);
  text-decoration-color: rgba(96, 165, 250, 0.42);
}

.country-storage-page .csp-methodology-link:hover { color: #bfdbfe; }
.country-storage-page .csp-table tr.csp-own-country {
  background: rgba(212, 160, 23, 0.10);
  box-shadow: inset 3px 0 0 #d4a017;
  font-weight: 700;
}

.country-storage-page .csp-meta a:hover,
.country-storage-page .csp-credit a:hover,
.country-storage-page .csp-editorial a:hover,
.country-storage-page .csp-note a:hover {
  color: #bfdbfe;
  text-decoration-color: currentColor;
}

.country-storage-page .csp-section {
  margin: 0 0 36px;
}

.country-storage-page .csp-section > h2,
.country-storage-page .csp-faq > h2,
.country-storage-page .csp-editorial > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: var(--csp-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.65px;
  line-height: 1.5;
  text-transform: uppercase;
}

.country-storage-page .csp-section > h2::after,
.country-storage-page .csp-faq > h2::after,
.country-storage-page .csp-editorial > h2::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.38), transparent);
  content: "";
}

.country-storage-page .csp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.country-storage-page .csp-tile {
  position: relative;
  min-width: 0;
  min-height: 122px;
  padding: 17px 18px 15px;
  overflow: hidden;
  border: 1px solid var(--csp-border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(36, 50, 71, 0.88), var(--csp-card) 65%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.country-storage-page .csp-tile:hover {
  transform: translateY(-2px);
}

.country-storage-page .csp-tile::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--csp-gold);
  content: "";
}

.country-storage-page .csp-label {
  display: block;
  margin-bottom: 9px;
  color: var(--csp-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
  line-height: 1.4;
  text-transform: uppercase;
}

.country-storage-page .csp-value {
  display: block;
  color: #f1f5f9;
  font-size: clamp(23px, 2.7vw, 31px);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.country-storage-page .csp-note {
  margin: 8px 0 0;
  color: var(--csp-dim);
  font-size: 11px;
  line-height: 1.55;
}

.country-storage-page .csp-stale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.09);
  color: #facc15;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 1.3;
  text-transform: uppercase;
}

.country-storage-page .csp-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--csp-border);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.74);
  scrollbar-color: #475569 var(--csp-card);
  scrollbar-width: thin;
}

.country-storage-page .csp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--csp-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: left;
}

.country-storage-page .csp-table th {
  padding: 11px 14px;
  border-bottom: 1px solid #3a4a60;
  background: rgba(15, 23, 42, 0.55);
  color: #9eacbd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.country-storage-page .csp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  white-space: nowrap;
}

.country-storage-page .csp-table tbody tr:last-child td {
  border-bottom: 0;
}

.country-storage-page .csp-table tbody tr {
  transition: opacity 160ms ease;
}

.country-storage-page .csp-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.045);
}

.country-storage-page .csp-table td a {
  color: var(--csp-blue);
  text-decoration: none;
}

.country-storage-page .csp-table td a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.country-storage-page .csp-chart {
  min-width: 0;
  padding: 18px 18px 14px;
  overflow: hidden;
  border: 1px solid var(--csp-border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(22, 32, 50, 0.98));
}

.country-storage-page .csp-chart svg,
.country-storage-page .csp-chart canvas,
.country-storage-page .csp-chart img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.country-storage-page .csp-chart svg {
  overflow: visible;
}

.country-storage-page .csp-chart figcaption,
.country-storage-page .csp-chart > p {
  margin: 12px 0 0;
  color: var(--csp-muted);
  font-size: 11px;
  line-height: 1.6;
}

.country-storage-page .csp-faq {
  margin: 0 0 36px;
}

.country-storage-page .csp-faq details {
  margin: 0 0 8px;
  overflow: hidden;
  border: 1px solid var(--csp-border);
  border-radius: 11px;
  background: var(--csp-card);
}

.country-storage-page .csp-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 14px 17px;
  color: #dbe4ee;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

.country-storage-page .csp-faq summary::-webkit-details-marker {
  display: none;
}

.country-storage-page .csp-faq summary::after {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--csp-gold);
  border-bottom: 1.5px solid var(--csp-gold);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease, opacity 160ms ease;
}

.country-storage-page .csp-faq details[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.country-storage-page .csp-faq summary:hover {
  color: #f8fafc;
}

.country-storage-page .csp-faq details[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.country-storage-page .csp-faq details > :not(summary) {
  margin: 0;
  padding: 13px 17px 16px;
  color: var(--csp-muted);
  font-size: 12px;
  line-height: 1.75;
}

.country-storage-page .csp-faq details > :not(summary) + :not(summary) {
  padding-top: 0;
}

.country-storage-page .csp-faq details a {
  color: var(--csp-blue);
  text-underline-offset: 3px;
}

.country-storage-page .csp-editorial {
  margin: 0 0 34px;
  padding: 21px 23px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(212, 160, 23, 0.055), rgba(30, 41, 59, 0.72) 55%);
}

.country-storage-page .csp-editorial > h2 {
  margin-bottom: 12px;
}

.country-storage-page .csp-editorial p,
.country-storage-page .csp-editorial li {
  color: #b8c4d2;
  font-size: 13px;
  line-height: 1.75;
}

.country-storage-page .csp-editorial p + p {
  margin-top: 10px;
}

.country-storage-page .csp-editorial strong {
  color: #e2e8f0;
  font-weight: 650;
}

.country-storage-page .csp-editorial ul,
.country-storage-page .csp-editorial ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.country-storage-page .csp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.country-storage-page .csp-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--csp-border);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.78);
  color: #bdc9d7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.country-storage-page .csp-links a:hover {
  color: #f1f5f9;
  transform: translateY(-1px);
}

.country-storage-page .csp-credit {
  padding-top: 15px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--csp-dim);
  font-size: 10px;
  line-height: 1.7;
}

.country-storage-page .csp-credit a {
  white-space: normal;
}

.country-storage-page :focus-visible {
  outline: 2px solid var(--csp-gold-bright);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .country-storage-page .csp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-storage-page .csp-wrap {
    padding-top: 30px;
  }
}

@media (max-width: 560px) {
  .country-storage-page .csp-wrap {
    width: min(100% - 30px, 1160px);
    padding: 22px 0 42px;
  }

  .country-storage-page .csp-hero {
    padding: 34px 0 25px;
  }

  .country-storage-page .csp-hero::after {
    left: 15px;
  }

  .country-storage-page .csp-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .country-storage-page .csp-subtitle {
    margin-top: 12px;
    font-size: 14px;
  }

  .country-storage-page .csp-meta {
    gap: 7px 13px;
    margin-top: 15px;
    font-size: 10px;
  }

  .country-storage-page .csp-section,
  .country-storage-page .csp-faq {
    margin-bottom: 29px;
  }

  .country-storage-page .csp-grid {
    gap: 9px;
  }

  .country-storage-page .csp-tile {
    min-height: 108px;
    padding: 14px 12px 12px;
  }

  .country-storage-page .csp-label {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .country-storage-page .csp-value {
    font-size: clamp(21px, 6.5vw, 27px);
  }

  .country-storage-page .csp-note {
    font-size: 10px;
  }

  .country-storage-page .csp-chart {
    padding: 13px 11px 11px;
  }

  .country-storage-page .csp-editorial {
    padding: 17px 15px;
  }

  .country-storage-page .csp-faq summary {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 12px;
  }

  .country-storage-page .csp-faq details > :not(summary) {
    padding: 12px 14px 14px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .country-storage-page .csp-grid {
    grid-template-columns: 1fr;
  }

  .country-storage-page .csp-tile {
    min-height: 98px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .country-storage-page *,
  .country-storage-page *::before,
  .country-storage-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
