/* ===================================================================
   TIPS — Styles for the language-learning tips article
   =================================================================== */

/* Four key rules — numbered cards */
.tips-rules {
  list-style: none;
  counter-reset: tip-counter;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.tips-rules li {
  counter-increment: tip-counter;
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 2.6rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.tips-rules li::before {
  content: counter(tip-counter);
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.tips-rules li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* --- Tips teaser on the landing --------------------------------- */

.section-tips {
  background: var(--bg-alt);
}

.tips-teaser {
  list-style: none;
  counter-reset: tip-counter;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.tips-teaser li {
  counter-increment: tip-counter;
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 2.4rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tips-teaser li::before {
  content: counter(tip-counter);
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.tips-teaser li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.tips-teaser li span {
  color: var(--text-mid);
}

.tips-full-link .tips-en-link {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tips-full-link .tips-en-link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .tips-teaser {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* --- Tips callout inside the guide pages ----------------------- */

.section-tips-callout {
  padding-block: var(--space-lg);
}

.tips-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-pale);
  border: 1px solid var(--accent-pale2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}

.tips-callout-body {
  flex: 1;
  min-width: 0;
}

.tips-callout-body strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tips-callout-body p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.55;
}

.tips-callout-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tips-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }
}

/* Q&A sections — slightly tighter than guide */
.guide-content h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 640px) {
  .tips-rules li {
    padding: var(--space-md);
    padding-top: calc(var(--space-md) + 2.2rem);
  }

  .tips-rules li::before {
    top: var(--space-sm);
    left: var(--space-md);
  }
}
