/*
Theme Name: Home Power Lab
Theme URI: https://homepowerlab.com
Author: Philip Hughes
Author URI: https://homepowerlab.com
Description: A custom WordPress theme for data-driven home backup power reviews with built-in review layouts, lab cards, and front-page sections.
Version: 1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homepowerlab
*/

:root {
  --hpl-bg: #05070b;
  --hpl-bg-alt: #0c1018;
  --hpl-surface: #101623;
  --hpl-border: #1e293b;
  --hpl-accent: #f5c938;
  --hpl-accent-soft: rgba(245, 201, 56, 0.15);
  --hpl-text: #e5e7eb;
  --hpl-text-muted: #9ca3af;
  --hpl-radius-lg: 18px;
  --hpl-radius-md: 12px;
  --hpl-radius-sm: 8px;
  --hpl-shadow-soft: 0 16px 40px rgba(0,0,0,0.45);
  --hpl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0b1220 0, #020617 55%, #000 100%);
  color: var(--hpl-text);
  font-family: var(--hpl-font-sans);
  line-height: 1.6;
}

a { color: var(--hpl-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hpl-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background:
    radial-gradient(circle at 30% 10%, rgba(250, 250, 250, 0.12) 0, transparent 55%),
    conic-gradient(from 210deg, #fbbf24, #f97316, #eab308, #22c55e, #38bdf8, #fbbf24);
  position: relative;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 1), var(--hpl-shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo-mark span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #fefce8 0, #facc15 40%, #f97316 80%);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.6);
  position: relative;
  overflow: hidden;
}

.site-logo-mark span::after {
  content: "";
  position: absolute;
  inset: 32% 18% 18% 55%;
  background: linear-gradient(to bottom, #0b1120, #020617);
  transform: skewX(-14deg);
}

.site-title-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title a {
  font-weight: 650;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #f9fafb;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--hpl-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--hpl-text);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-toggle span {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  color: var(--hpl-text-muted);
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.primary-navigation a {
  color: var(--hpl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.78rem;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--hpl-accent);
}

@media (max-width: 960px) {
  .primary-navigation {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.8rem 1.25rem 1.1rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
  .primary-navigation.open {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
}

.hpl-main {
  flex: 1;
  padding: 2.25rem 0 3rem;
}

.hpl-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1.15fr);
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .hpl-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hpl-content-card {
  background: radial-gradient(circle at top left, rgba(15, 118, 255, 0.07), transparent 55%) var(--hpl-surface);
  border-radius: 24px;
  padding: 1.75rem 1.8rem;
  box-shadow: var(--hpl-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

.hpl-content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(248, 250, 252, 0.16), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hpl-content-card h1,
.hpl-content-card h2,
.hpl-content-card h3 {
  margin-top: 0;
  letter-spacing: 0.02em;
}

.hpl-content-card h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.hpl-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--hpl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hpl-meta-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
}

.hpl-body-content {
  font-size: 0.99rem;
  color: #e5e7eb;
}

.hpl-body-content p { margin: 0 0 1.1rem; }

.hpl-body-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  padding-bottom: 0.4rem;
}

.hpl-body-content h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.3rem;
}

.hpl-body-content ul,
.hpl-body-content ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.hpl-body-content li { margin-bottom: 0.3rem; }

.hpl-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hpl-aside-card {
  background: radial-gradient(circle at top right, rgba(248, 250, 252, 0.08), transparent 60%) var(--hpl-bg-alt);
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.7);
}

.hpl-aside-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--hpl-text-muted);
  margin: 0 0 0.8rem;
}

.hpl-aside-highlight {
  font-size: 0.98rem;
  font-weight: 500;
}

.hpl-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--hpl-text-muted);
}

.hpl-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hpl-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hpl-accent);
  margin-top: 0.45rem;
}

.hpl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.hpl-chip {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: var(--hpl-text-muted);
}

.hpl-chip--lab {
  border-color: rgba(52, 211, 153, 0.9);
  color: #bbf7d0;
}

.hpl-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, #022c22, #020617);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(52, 211, 153, 0.9);
  font-size: 0.8rem;
  color: #bbf7d0;
}

.hpl-score-badge strong {
  font-size: 0.98rem;
  color: #ecfdf5;
}

.hpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
}

.hpl-btn--accent {
  background: radial-gradient(circle at top, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  color: #111827;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.45);
}

.hpl-btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 0 1.8rem;
  background: radial-gradient(circle at bottom, #020617, #000);
  font-size: 0.8rem;
  color: var(--hpl-text-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer-inner a {
  font-size: 0.78rem;
}

.hpl-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hpl-widget-area .widget {
  margin-bottom: 1rem;
}

.hpl-widget-area .widget-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hpl-text-muted);
  margin: 0 0 0.6rem;
}

.hpl-widget-area ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hpl-widget-area li {
  margin-bottom: 0.35rem;
}

.hpl-archive-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hpl-archive-item {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  border-radius: 18px;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
}

@media (max-width: 720px) {
  .hpl-archive-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hpl-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--hpl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
}

.hpl-archive-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.hpl-archive-excerpt {
  font-size: 0.88rem;
  color: var(--hpl-text-muted);
}

.hpl-badge-lab {
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.9);
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.95));
  color: #dbeafe;
}

/* Front-page hero */
.hpl-front-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2rem;
  margin-bottom: 2.4rem;
  align-items: center;
}

.hpl-front-hero-main {
  padding: 1.8rem 1.9rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.10), transparent 60%) var(--hpl-surface);
  box-shadow: var(--hpl-shadow-soft);
}

.hpl-front-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hpl-text-muted);
  margin-bottom: 0.45rem;
}

.hpl-front-title {
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.03em;
}

.hpl-front-subtitle {
  font-size: 0.98rem;
  color: var(--hpl-text-muted);
  max-width: 32rem;
  margin-bottom: 0.9rem;
}

.hpl-front-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
}

.hpl-front-pill {
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--hpl-text-muted);
}

.hpl-front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.hpl-front-hero-secondary {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.hpl-front-card {
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
}

.hpl-front-card-title {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hpl-text-muted);
  margin: 0 0 0.45rem;
}

.hpl-front-card p {
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  color: var(--hpl-text);
}

.hpl-front-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.3rem 0 0;
}

.hpl-front-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--hpl-text-muted);
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 0.4rem 0.6rem;
  text-align: center;
}

@media (max-width: 960px) {
  .hpl-front-hero {
    grid-template-columns: minmax(0,1fr);
  }
}


/* === v3 structural additions merged in === */

hpl-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hpl-archive-card {
  border-radius: var(--hpl-radius-lg);
  border: 1px solid var(--hpl-border);
  background: var(--hpl-bg-alt);
  padding: 1rem 1.1rem;
  box-shadow: var(--hpl-shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

@media (max-width: 720px) {
  .hpl-archive-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hpl-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--hpl-text-muted);
  margin-bottom: 0.4rem;
}

.hpl-archive-title {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}

.hpl-archive-excerpt {
  font-size: 0.92rem;
  color: var(--hpl-text-muted);
}

.hpl-chip {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hpl-border-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hpl-text-muted);
}

.hpl-chip--blue {
  border-color: var(--hpl-blue);
  color: var(--hpl-blue);
  background: var(--hpl-blue-soft);
}

.hpl-archive-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.hpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.hpl-btn span {
  margin-left: 0.35rem;
  font-size: 0.9rem;
}

.hpl-btn--primary {
  background: var(--hpl-orange);
  color: #111827;
  border-color: var(--hpl-orange-strong);
}

.hpl-btn--primary:hover {
  background: var(--hpl-orange-strong);
}

.hpl-btn--ghost {
  background: #ffffff;
  color: var(--hpl-blue);
  border-color: var(--hpl-blue);
}

.hpl-btn--ghost:hover {
  background: var(--hpl-blue-soft);
}

/* Single post layout */

.hpl-single-wrap {
  max-width: var(--hpl-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hpl-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .hpl-single-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Disclaimer bar */

.hpl-disclaimer-bar {
  margin-bottom: 0.75rem;
  border-radius: var(--hpl-radius-md);
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  font-size: 0.85rem;
  color: #854d0e;
}

/* Trust header */

.hpl-trust-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hpl-trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--hpl-text-muted);
}

.hpl-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hpl-border-strong);
  background: var(--hpl-bg-alt);
}

.hpl-pill--updated {
  border-color: var(--hpl-blue);
  color: var(--hpl-blue);
  background: var(--hpl-blue-soft);
}

.hpl-pill--category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Verdict box */

.hpl-verdict {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  border-radius: var(--hpl-radius-lg);
  border: 1px solid var(--hpl-border);
  background: var(--hpl-bg-alt);
  box-shadow: var(--hpl-shadow-soft);
  margin: 1rem 0 1.5rem;
}

@media (max-width: 800px) {
  .hpl-verdict {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hpl-verdict-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--hpl-radius-md);
  border: 1px solid var(--hpl-border);
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hpl-verdict-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hpl-verdict-main h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.hpl-verdict-main p {
  margin: 0.15rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--hpl-text-muted);
}

.hpl-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--hpl-blue-soft);
  color: #1d4ed8;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.hpl-score-badge strong {
  font-size: 0.98rem;
  color: #1e40af;
}

.hpl-verdict-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

/* Article content */

.hpl-article-content {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.hpl-article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.55rem;
  font-size: 1.32rem;
}

.hpl-article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.hpl-article-content p {
  margin: 0 0 1rem;
}

.hpl-article-content ul,
.hpl-article-content ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

/* Responsive tables */

.hpl-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--hpl-radius-md);
  border: 1px solid var(--hpl-border);
  background: #ffffff;
}

.hpl-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.hpl-table-wrap th,
.hpl-table-wrap td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--hpl-border);
  font-size: 0.92rem;
}

.hpl-table-wrap th {
  background: #f3f4f6;
  text-align: left;
}

/* Sidebar TOC */

.hpl-sidebar {
  position: relative;
}

.hpl-sidebar-inner {
  position: sticky;
  top: calc(var(--hpl-header-height) + 16px);
}

@media (max-width: 960px) {
  .hpl-sidebar-inner {
    position: static;
    margin-top: 1.5rem;
  }
}

.hpl-toc-box {
  border-radius: var(--hpl-radius-lg);
  border: 1px solid var(--hpl-border);
  background: var(--hpl-bg-alt);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.hpl-toc-box h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  color: var(--hpl-text-muted);
}

.hpl-toc-box ol,
.hpl-toc-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

.hpl-toc-box a {
  color: var(--hpl-blue);
}

.hpl-toc-box a:hover {
  text-decoration: underline;
}

/* Page wrapper */

.hpl-page-card {
  max-width: var(--hpl-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hpl-page-inner {
  border-radius: var(--hpl-radius-lg);
  border: 1px solid var(--hpl-border);
  background: var(--hpl-bg-alt);
  padding: 1.5rem 1.6rem 1.8rem;
  box-shadow: var(--hpl-shadow-soft);
}

.hpl-page-inner h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.hpl-page-inner p {
  margin: 0 0 1rem;
}

/* Gutenberg alignment helpers */

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: none;
  width: 100%;
  margin-left: calc(-1 * 1.25rem);
  margin-right: calc(-1 * 1.25rem);
}

@media (min-width: 1180px) {
  .alignfull {
    margin-left: calc(-1 * (50vw - var(--hpl-max-width) / 2));
    margin-right: calc(-1 * (50vw - var(--hpl-max-width) / 2));
  }
}


/* Home hero inspired by v2 visuals */

.hpl-home-hero {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #020617 100%);
  color: #e5e7eb;
  padding: 2.75rem 0 3.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.hpl-home-hero-inner {
  max-width: var(--hpl-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hpl-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .hpl-home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hpl-home-hero-main h1 {
  font-size: clamp(1.9rem, 2.4vw + 1.4rem, 2.6rem);
  margin: 0.4rem 0 0.45rem;
  letter-spacing: 0.01em;
  color: #f9fafb;
}

.hpl-home-hero-main p {
  margin: 0;
}

.hpl-hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #93c5fd;
}

.hpl-hero-subtitle {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  color: #cbd5f5;
  max-width: 40rem;
}

.hpl-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hpl-hero-cta-row .hpl-btn {
  padding-inline: 1.1rem;
}

.hpl-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.hpl-hero-meta-row .hpl-pill {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.hpl-home-hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hpl-hero-card {
  border-radius: var(--hpl-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.95));
  padding: 1.1rem 1.15rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.hpl-hero-card h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #bfdbfe;
}

.hpl-hero-card p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.hpl-hero-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.hpl-hero-linklist li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
}

.hpl-hero-linklist li a span:last-child {
  font-size: 0.9rem;
  opacity: 0.7;
}

.hpl-hero-linklist li a:hover {
  color: #bfdbfe;
}

.hpl-hero-linklist li a:hover span:last-child {
  opacity: 1;
}

.hpl-hero-linklist li a::after {
  content: '↗';
  margin-left: 0.35rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.hpl-home-main {
  max-width: var(--hpl-max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hpl-home-intro {
  margin-bottom: 1.75rem;
}

.hpl-home-intro .hpl-page-inner {
  margin: 0;
}

.hpl-home-latest {
  margin-top: 1.25rem;
}

.hpl-home-latest header {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hpl-home-latest h2 {
  margin: 0;
  font-size: 1.15rem;
}

.hpl-home-latest p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hpl-text-muted);
}






/* =========================
HPL • Front Hero Side Panels
========================= */

.hpl-front-hero-side {
  display: grid;
  gap: 18px;
}

/* Base Card */
.hpl-front-card {
  background: linear-gradient(180deg, #0b1220 0%, #070c17 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 28px rgba(0,0,0,0.35);
}

/* Alt Card (Lab Tools) */
.hpl-front-card--alt {
  background: linear-gradient(180deg, #0a1628 0%, #060b16 100%);
  border-color: rgba(255,255,255,0.12);
}


/* Section Headers */
.hpl-front-card h2 {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb6ff;
  margin-bottom: 6px;
}

/* Section Descriptions */
.hpl-front-card p {
  font-size: 0.88rem;
  color: #c7d2fe;
  opacity: 0.9;
  margin-bottom: 10px;
}


/* Link List Reset */
.hpl-front-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual Links */
.hpl-front-links li {
  margin-bottom: 6px;
}

.hpl-front-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.18s ease;
}

/* Hover State */
.hpl-front-links a:hover {
  background: rgba(79,70,229,0.12);
  border-color: rgba(99,102,241,0.6);
  color: #ffffff;
  transform: translateX(2px);
}



/* Mode Tag */
.hpl-front-card::before {
  content: "MODE";
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #64748b;
  margin-bottom: 6px;
}

.hpl-front-card--alt::before {
  content: "TOOLS";
  color: #38bdf8;
}


@media (max-width: 768px) {
  .hpl-front-card {
    padding: 14px;
  }

  .hpl-front-links a {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}




