/* Charging network guides: region switcher, network cards, compare table. Loaded only on /ev-charging-networks-* pages. */
.net-regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.net-regions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-hairline); background: var(--surface-card); color: var(--text-strong); font-size: 15px; font-weight: 600; text-decoration: none; }
.net-regions a[aria-current="page"] { background: var(--text-full); border-color: var(--text-full); color: var(--surface-canvas); }
.net-regions a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.net-compare { margin-top: 8px; }
.net-compare .comparison-table tbody tr:first-child { background: none; }
.net-compare .comparison-table th:first-child { width: 22%; }

.net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.net-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 16px; overflow: hidden; }
.net-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--net-accent, var(--color-primary)); transform-origin: left; }
.net-card h2 { margin: 0; font-size: 26px; letter-spacing: -0.5px; line-height: 1.15; }
.net-head { display: flex; align-items: center; gap: 14px; }
.net-icon { flex: 0 0 auto; display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px; background: var(--net-tint, var(--color-primary-tint)); color: var(--net-ink, var(--color-primary)); box-shadow: inset 0 0 0 1.5px var(--net-ring, transparent); }
.net-icon::before { content: attr(data-mono); font-size: 17px; font-weight: 800; letter-spacing: -0.3px; line-height: 1; }
.net-where { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }
.net-card p { margin: 0; color: var(--text-warm); font-size: 16px; line-height: 1.6; }
.net-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.net-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--surface-canvas); border: 1px solid var(--border-hairline); font-size: 13px; font-weight: 600; color: var(--text-strong); }
.net-tags.plugs li { background: var(--net-tint, var(--color-primary-tint)); border-color: transparent; }
.net-tags svg { width: 14px; height: 14px; flex: 0 0 auto; }
.net-card:nth-child(6n+1) { --net-accent: #0A84FF; --net-tint: rgba(10, 132, 255, 0.13); --net-ring: rgba(10, 132, 255, 0.28); --net-ink: #0058C7; }
.net-card:nth-child(6n+2) { --net-accent: #30A14E; --net-tint: rgba(52, 199, 89, 0.13); --net-ring: rgba(52, 199, 89, 0.28); --net-ink: #1B7232; }
.net-card:nth-child(6n+3) { --net-accent: #5E5CE6; --net-tint: rgba(94, 92, 230, 0.13); --net-ring: rgba(94, 92, 230, 0.28); --net-ink: #4442C4; }
.net-card:nth-child(6n+4) { --net-accent: #E08600; --net-tint: rgba(255, 159, 10, 0.13); --net-ring: rgba(255, 159, 10, 0.28); --net-ink: #975200; }
.net-card:nth-child(6n+5) { --net-accent: #0FA3B1; --net-tint: rgba(15, 163, 177, 0.13); --net-ring: rgba(15, 163, 177, 0.28); --net-ink: #00727D; }
.net-card:nth-child(6n+6) { --net-accent: #E0457B; --net-tint: rgba(224, 69, 123, 0.13); --net-ring: rgba(224, 69, 123, 0.28); --net-ink: #B01E55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .net-card:nth-child(6n+1) { --net-ink: #6CB0FF; --net-tint: rgba(10, 132, 255, 0.2); }
  :root:not([data-theme="light"]) .net-card:nth-child(6n+2) { --net-ink: #62D684; --net-tint: rgba(52, 199, 89, 0.2); }
  :root:not([data-theme="light"]) .net-card:nth-child(6n+3) { --net-ink: #A3A1FF; --net-tint: rgba(94, 92, 230, 0.2); }
  :root:not([data-theme="light"]) .net-card:nth-child(6n+4) { --net-ink: #FFB846; --net-tint: rgba(255, 159, 10, 0.2); }
  :root:not([data-theme="light"]) .net-card:nth-child(6n+5) { --net-ink: #5ED5E0; --net-tint: rgba(15, 163, 177, 0.2); }
  :root:not([data-theme="light"]) .net-card:nth-child(6n+6) { --net-ink: #FF86B0; --net-tint: rgba(224, 69, 123, 0.2); }
}
:root[data-theme="dark"] .net-card:nth-child(6n+1) { --net-ink: #6CB0FF; --net-tint: rgba(10, 132, 255, 0.2); }
:root[data-theme="dark"] .net-card:nth-child(6n+2) { --net-ink: #62D684; --net-tint: rgba(52, 199, 89, 0.2); }
:root[data-theme="dark"] .net-card:nth-child(6n+3) { --net-ink: #A3A1FF; --net-tint: rgba(94, 92, 230, 0.2); }
:root[data-theme="dark"] .net-card:nth-child(6n+4) { --net-ink: #FFB846; --net-tint: rgba(255, 159, 10, 0.2); }
:root[data-theme="dark"] .net-card:nth-child(6n+5) { --net-ink: #5ED5E0; --net-tint: rgba(15, 163, 177, 0.2); }
:root[data-theme="dark"] .net-card:nth-child(6n+6) { --net-ink: #FF86B0; --net-tint: rgba(224, 69, 123, 0.2); }

@media (max-width: 760px) {
  .net-grid { grid-template-columns: 1fr; }
  .net-card { padding: 22px; }
  .net-card h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .net-card.reveal::before { transition: transform 600ms var(--ease-out, ease-out) 120ms; }
  html.js .net-card.reveal.is-pending::before { transform: scaleX(0); }
  html.js .net-grid .reveal:nth-child(2) { transition-delay: 60ms; }
  html.js .net-grid .reveal:nth-child(3) { transition-delay: 120ms; }
  html.js .net-grid .reveal:nth-child(n+4) { transition-delay: 180ms; }
  .net-regions a { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
}
@media (hover: hover) and (pointer: fine) {
  .net-regions a:not([aria-current="page"]):hover { border-color: var(--text-muted); }
}
