/* ============================================
   ERROR CODE HUB – HERO SECTION (ECH)
   ============================================ */

.ech-hero {
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 0 auto 2rem;
  max-width: 800px;
}

.ech-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ech-hero-text {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.6;
}

/* Sections */
.ech-section {
  margin: 2.5rem auto;
  max-width: 1100px;
  padding: 0 1.25rem;
}

.ech-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Grid */
.ech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* Cards */
.ech-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Button */
.ech-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--button-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ech-button:hover {
  background: var(--hover);
  transform: translateY(-2px);
}


/* ============================================
   BRAND GRID (ECHB)
   ============================================ */

.echb-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin: 2rem auto;
  max-width: 1000px;
  width: 100%;
}

.echb-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;
  min-height: 140px;

  background-color: #fafafa;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;

  box-shadow: 0 1px 3px rgba(0,0,0,0.08);

  max-width: 180px;
  margin: 0 auto;

  text-align: center;
  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.echb-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.dark .echb-brand-card {
  background-color: #ffffff;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.echb-brand-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}


/* ============================================
   APPLIANCE GRID (ECHA)
   ============================================ */

.echa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin: 2rem auto;
  max-width: 1000px;
  width: 100%;
  padding: 1rem;
}

.echa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;
  min-height: 160px;

  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;

  box-shadow: 0 1px 3px rgba(0,0,0,0.08);

  text-align: center;
  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.echa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.dark .echa-card {
  background-color: #1f1f1f;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.echa-icon img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.echa-label {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  margin-top: 8px;
  color: var(--huskyText-light);
  text-align: center;
}

.dark .echa-label {
  color: var(--huskyText-dark);
}

.echa-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
  color: var(--huskyText-light);
  text-align: center;
}

.echa-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 2.2rem;
  color: var(--huskyText-light);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.dark .echa-title,
.dark .echa-subtitle {
  color: var(--huskyText-dark);
}


/* ============================================
   ERROR CODE HUB – INDIVIDUAL PAGES (ECHP)
   ============================================ */

.echp-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  color: var(--huskyText-light);
}

.dark .echp-title {
  color: var(--huskyText-dark);
}

.echp-subtitle {
  font-size: 2rem;
  opacity: 0.85;
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.echp-article {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.dark .echp-article {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.echp-header {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.dark .echp-header {
  background: #1f1f1f;
}

/* Meaning icon */
.echp-meaning-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Section titles */
.echp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Section + grid wrapper */
.echp-section,
.echp-grid {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.dark .echp-section,
.dark .echp-grid {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Grid layout */
.echp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.echp-column {
  display: flex;
  flex-direction: column;
}

/* Lists */
.echp-list {
  list-style: none;
  padding-left: 0;
}

.echp-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

/* Icon lists */
.echp-icon-list.blue li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

.echp-icon-list.orange li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: bold;
}

/* Disclaimer */
.echp-disclaimer {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 700px;
  line-height: 1.5;
}

/* Card wrapper */
.echp-card {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.dark .echp-card {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Card header */
.echp-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.echp-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.echp-icon.blue {
  color: #2563eb;
}

.echp-icon.orange {
  color: #f97316;
}


/* ============================================
   ERROR CODE HUB TABLE (ECHT)
   ============================================ */

.echt-title {
  font-size: 2.4rem;
  color: var(--huskyText-light, #1a1a1a);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.dark .echt-title {
  color: var(--huskyText-dark, #f5f5f5);
}

.echt-description {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.echt-card {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.dark .echt-card {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.echt-card-header {
  margin-bottom: 1rem;
}

.echt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
}

.echt-table thead th {
  text-align: left;
  padding: 16px 18px;
  background: var(--huskyGray-light, #f3f4f6);
  color: var(--huskyText-light, #1a1a1a);
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
}

.dark .echt-table thead th {
  background: var(--huskyGray-dark, #2a2a2a);
  color: var(--huskyText-dark, #f5f5f5);
}

.echt-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.45;
}

.echt-table tbody tr:hover td {
  background: rgba(0,0,0,0.04);
}

.dark .echt-table tbody tr:hover td {
  background: rgba(255,255,255,0.05);
}

.echt-table td a {
  color: var(--huskyAccent, #2563eb) !important;
  font-weight: 700;
  text-decoration: underline;
}

.echt-table td a:hover {
  color: #1d4ed8 !important;
}

.dark .echt-table td a {
  color: #f97316 !important;
}

.dark .echt-table td a:hover {
  color: #fb923c !important;
}