/* Reg & Elle — Learner Hub
   Complements the compiled site stylesheet. Brand tokens match the live site. */
:root {
  --re-tarmac: #111315;
  --re-plate: #ffd400;
  --re-mist: #f7f7f5;
  --re-slate: #52525b;
  --re-line: #e4e4e7;
}

#mobile-menu {
  display: none;
}
#mobile-menu.is-open {
  display: block;
}
@media (min-width: 768px) {
  #mobile-menu.is-open {
    display: none !important;
  }
}

.re-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.re-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.re-prose {
  max-width: 48rem;
}
.re-prose > * + * {
  margin-top: 1.15rem;
}
.re-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111315;
  text-wrap: balance;
}
.re-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #111315;
}
.re-prose p,
.re-prose li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #52525b;
}
.re-prose ul,
.re-prose ol {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.25rem;
}
.re-prose ul {
  list-style: disc;
}
.re-prose ol {
  list-style: decimal;
}
.re-prose li + li {
  margin-top: 0.4rem;
}
.re-prose li::marker {
  color: #111315;
}
.re-prose a {
  color: #111315;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ffd400;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.re-prose a:hover {
  background: #ffd400;
}
.re-prose strong {
  color: #111315;
  font-weight: 700;
}

.re-callout {
  margin: 1.75rem 0;
  padding: 1.1rem 1.2rem 1.15rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid #e4e4e7;
  border-left: 4px solid #ffd400;
  background: #f7f7f5;
}
.re-callout p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #111315;
}
.re-callout p + p {
  margin-top: 0.65rem;
}
.re-callout p.re-callout-label,
.re-callout-label {
  display: inline-flex;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #111315 !important;
  background-color: #111315 !important;
  color: #ffd400 !important;
  -webkit-text-fill-color: #ffd400 !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.re-faq {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e4e4e7;
}
.re-faq h2 {
  margin-top: 1.5rem;
}
.re-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #52525b;
}
.re-breadcrumb a {
  color: #52525b;
  text-decoration: none;
}
.re-breadcrumb a:hover {
  color: #111315;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.re-breadcrumb .sep {
  color: #a1a1aa;
}

.re-cta {
  margin-top: 2.75rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1.5rem;
  background: #111315;
  color: #fff;
}
.re-cta h2,
.re-cta p,
.re-cta a {
  color: inherit;
}
.re-cta h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.re-cta p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}
.re-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.re-btn-plate,
.re-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.8rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.re-btn-plate,
.re-cta a.re-btn-plate,
a.re-btn-plate {
  background: #ffd400 !important;
  background-color: #ffd400 !important;
  color: #111315 !important;
  -webkit-text-fill-color: #111315 !important;
}
.re-btn-plate:hover,
.re-cta a.re-btn-plate:hover,
a.re-btn-plate:hover {
  background: #fff !important;
  background-color: #fff !important;
  color: #111315 !important;
  -webkit-text-fill-color: #111315 !important;
}
.re-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.re-btn-ghost:hover {
  border-color: #ffd400;
  color: #ffd400;
}

.re-related {
  margin-top: 2.75rem;
}
.re-related h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.re-related-list {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .re-related-list {
    grid-template-columns: 1fr 1fr;
  }
}
.re-related-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid #e4e4e7;
  border-radius: 1.25rem;
  background: #f7f7f5;
  text-decoration: none;
  color: inherit;
}
.re-related-list a:hover {
  border-color: #111315;
}
.re-related-list strong {
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111315;
}
.re-related-list span {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #52525b;
}

.re-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: #52525b;
}
.re-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #a1a1aa;
}

.re-hub-hero {
  background: #111315;
  color: #fff;
}
.re-hub-hero p.lead {
  color: rgba(255, 255, 255, 0.78);
}
.re-card-link {
  color: #111315;
  text-decoration: none;
}
.re-card-link:hover h2,
.re-card-link:hover h3 {
  text-decoration: underline;
  text-decoration-color: #ffd400;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.re-updated {
  color: #52525b;
}

/* Callout pill: .re-callout p { color:#111315 } is more specific than
   .re-callout-label, so the yellow text was painted tarmac-on-tarmac. */
.re-callout p.re-callout-label,
.re-callout .re-callout-label,
.re-prose .re-callout-label,
p.re-callout-label {
  color: #ffd400 !important;
  background-color: #111315 !important;
  -webkit-text-fill-color: #ffd400 !important;
}

/* Breadcrumb links sit in the dark article hero (bg-tarmac). The default
   slate colour is unreadable on #111315. */
.re-hub-hero .re-breadcrumb,
.re-hub-hero .re-breadcrumb a,
.re-hub-hero .re-breadcrumb span,
.bg-tarmac .re-breadcrumb,
header.bg-tarmac .re-breadcrumb {
  color: rgba(255, 255, 255, 0.86);
}
.re-hub-hero .re-breadcrumb a,
.bg-tarmac .re-breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
}
.re-hub-hero .re-breadcrumb a:hover,
.bg-tarmac .re-breadcrumb a:hover {
  color: #ffd400;
}
.re-hub-hero .re-breadcrumb .sep,
.bg-tarmac .re-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.45);
}

.re-affiliate {
  margin-top: 1.5rem;
  border: 1px solid var(--re-line);
  border-left: 4px solid var(--re-plate);
  border-radius: 1rem;
  background: var(--re-mist);
  padding: 0.9rem 1.05rem;
}
.re-affiliate p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--re-slate);
}
.re-affiliate strong {
  color: var(--re-tarmac);
  font-weight: 800;
}
.re-kit {
  margin-top: 1.15rem;
  border: 1px solid var(--re-line);
  border-radius: 1.25rem;
  background: var(--re-mist);
  padding: 1.15rem 1.2rem 1.2rem;
}
.re-kit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--re-tarmac);
}
.re-kit > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--re-slate);
}
.re-kit-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.re-kit-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--re-line);
  background: #fff;
  text-decoration: none;
  color: var(--re-tarmac);
}
.re-kit-list a:hover {
  border-color: var(--re-tarmac);
}
.re-kit-list strong {
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.re-kit-list span {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--re-tarmac);
  background: var(--re-plate);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}
.re-prose a[rel~="sponsored"] {
  color: var(--re-tarmac);
  font-weight: 700;
  text-decoration-color: var(--re-plate);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
