/*
 * GBP Stablecoins: Learn hub, built from the Pen frames "G2 · Learn hub" (iGDo0)
 * and "G2 · Mobile · Learn hub" (e1NMY). Loaded after d2.css on /learn/ only
 * (d2/learn.php). Comments name the Pen node where it isn't obvious.
 * Line heights are whole pixels: Pen rounds each line (Newsreader 30 × 1.15 → 35).
 */
.d2-lhead__title, .d2-lfeat__title, .d2-lall__title, .d2-lcard__title, .d2-lnews__title { font-variation-settings: "opsz" 18; }
.d2-lhub [hidden] { display: none !important; }
.d2-lhub picture { display: contents; }
.d2-lhub picture source { display: none; }

/* Head (S81Ryd): padding 36/64/20, gap 12 */
.d2-lhead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px var(--shell-pad) 20px; }
.d2-lhead__title { margin-top: 2px; } /* title 14px under the eyebrow, as on every hub */
.d2-lhead__eyebrow { font: 400 11px/14px var(--font-mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.d2-lhead__title { font-family: var(--font-heading); font-size: 46px; line-height: 46px; font-weight: 400; letter-spacing: -0.6px; color: var(--ink); }
.d2-lhead__sub { max-width: 760px; font-size: 16px; line-height: 24px; color: var(--ink-secondary); }

/* Topic filters (UXoQJ): chips 33 tall, padding 8/14, label and count 8 apart */
.d2-ltopics { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px var(--shell-pad) 24px; }
.d2-ltopic { display: inline-flex; align-items: center; gap: 8px; height: 33px; padding: 8px 14px; border: 0; border-radius: 9999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 400 13px/17px var(--font-body); color: var(--ink); white-space: nowrap; cursor: pointer; }
.d2-ltopic__n { font: 400 11px/14px var(--font-mono); color: var(--ink-muted); }
.d2-ltopic:hover { box-shadow: inset 0 0 0 1px var(--ink-muted); }
.d2-ltopic[aria-pressed="true"] { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--on-ink); }
.d2-ltopic[aria-pressed="true"] .d2-ltopic__n { color: var(--footer-link); }
.d2-ltopic:focus-visible, .d2-lnews :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Start here (e0VPq): featured guide (GtOEg) and the reading path (mnjxs) */
.d2-lstart { display: flex; align-items: flex-start; gap: 24px; padding: 0 var(--shell-pad) 32px; }
.d2-lfeat { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 24px; padding: 20px; border-radius: 12px; background: var(--surface-alt); }
.d2-lfeat__img { display: block; flex: 0 1 420px; width: 420px; min-width: 0; height: 260px; border-radius: 8px; object-fit: cover; }
.d2-lfeat__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.d2-lfeat__eyebrow { font: 400 10px/13px var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); }
.d2-lfeat__title { font-family: var(--font-heading); font-size: 34px; line-height: 34px; color: var(--ink); }
.d2-lfeat__dek { align-self: stretch; font-size: 15px; line-height: 23px; color: var(--ink-secondary); }
.d2-lfeat__by { display: flex; align-items: center; gap: 8px; height: 24px; }
.d2-lfeat__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 9999px; background: var(--ink); font: 600 10px/13px var(--font-body); color: var(--on-ink); }
.d2-lfeat__rev { font: 400 11px/14px var(--font-mono); color: var(--ink-muted); }

.d2-lpath { flex: none; width: 380px; padding: 20px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.d2-lpath__k { font: 400 10px/13px var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted); }
.d2-lstep { display: flex; align-items: center; gap: 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
.d2-lpath li:last-child .d2-lstep { box-shadow: none; }
.d2-lstep__n { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 9999px; background: var(--surface-alt); font: 400 11px/14px var(--font-mono); color: var(--ink-secondary); }
.d2-lpath li:first-child .d2-lstep__n { background: var(--accent); color: #fff; }
.d2-lstep__t { min-width: 0; font-size: 14px; line-height: 18px; color: var(--ink); }

/* All guides (J54tk0): three columns, 24 apart */
.d2-lall { display: flex; flex-direction: column; gap: 24px; padding: 0 var(--shell-pad) 48px; }
.d2-lall__head { display: flex; justify-content: space-between; align-items: flex-end; }
.d2-lall__title { font-family: var(--font-heading); font-size: 28px; line-height: 28px; font-weight: 400; color: var(--ink); }
.d2-lall__sort { font: 400 11px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.d2-lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.d2-lcard a { display: flex; flex-direction: column; gap: 10px; }
.d2-lcard__img { display: block; width: 100%; height: 200px; border-radius: 8px; object-fit: cover; }
.d2-lcard__meta { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 13px; font: 400 10px/13px var(--font-mono); text-transform: uppercase; white-space: nowrap; }
.d2-lcard__topic { letter-spacing: 1.3px; color: var(--accent); }
.d2-lcard__time { color: var(--ink-muted); }
.d2-lcard__title { font-family: var(--font-heading); font-size: 22px; line-height: 26px; color: var(--ink); }
.d2-lcard__dek { font-size: 14px; line-height: 18px; color: var(--ink-secondary); }
.d2-lempty { font-size: 14px; line-height: 20px; color: var(--ink-secondary); }

/* Newsletter band (Bevrg). No provider yet: the stub answers and keeps nothing. */
.d2-lnews { padding: 0 var(--shell-pad) 48px; }
.d2-lnews__panel { display: flex; align-items: center; gap: 24px; padding: 24px 28px; border-radius: 12px; background: var(--surface-inverse); }
.d2-lnews__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.d2-lnews__title { font-family: var(--font-heading); font-size: 24px; line-height: 24px; font-weight: 400; color: var(--ink-inverse); }
.d2-lnews__sub { font-size: 14px; line-height: 18px; color: var(--footer-link); }
.d2-lnews__form { display: contents; }
.d2-lnews__input { flex: none; width: 280px; height: 40px; margin: 0; padding: 11px 14px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); font: 400 14px/18px var(--font-body); color: var(--ink-inverse); }
.d2-lnews__input::placeholder { color: var(--footer-muted); opacity: 1; }
.d2-lnews__btn { flex: none; height: 40px; padding: 11px 20px; border: 0; border-radius: 6px; background: var(--accent-bright); font: 500 14px/18px var(--font-body); color: var(--on-accent); cursor: pointer; }
.d2-lnews__btn:hover { background: #95dcab; }
.d2-lnews__msg { display: none; flex: 0 1 410px; font-size: 14px; line-height: 20px; color: var(--ink-inverse); }
.d2-lnews__msg:target, .d2-lnews__panel.is-sent .d2-lnews__msg { display: block; }
.d2-lnews__panel:has(.d2-lnews__msg:target) .d2-lnews__form, .d2-lnews__panel.is-sent .d2-lnews__form { display: none; }

/* Narrower desktops: the reading path goes under the featured guide. */
@media (min-width: 761px) and (max-width: 1300px) {
  .d2-lstart { flex-direction: column; align-items: stretch; }
  .d2-lpath { width: auto; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .d2-lhead, .d2-ltopics, .d2-lstart, .d2-lall, .d2-lnews { padding-left: 24px; padding-right: 24px; }
  .d2-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d2-lnews__panel { flex-wrap: wrap; }
  .d2-lnews__text { flex-basis: 100%; }
  .d2-lnews__input { flex: 1 1 200px; }
}

/* Phones (e1NMY) */
@media (max-width: 760px) {
  .d2-lwide { display: none; }

  /* Head (zGG7v): padding 20/16/12, gap 8 */
  .d2-lhead { gap: 8px; padding: 20px 16px 12px; }
  .d2-lhead__title { margin-top: 2.5px; } /* its line box sits half a pixel high */
  .d2-lhead__eyebrow { font-size: 10px; line-height: 13px; letter-spacing: 1.4px; }
  /* Pen sets this two-line title 1.5px lower in its 35px lines than Chrome does; the nudge keeps the glyphs on the frame. */
  .d2-lhead__title { font-size: 30px; line-height: 35px; letter-spacing: -0.4px; transform: translateY(1.5px); }
  .d2-lhead__sub { font-size: 14px; line-height: 20px; }

  /* Topic filters (qqf1I): one scrolling row; the count reads as part of the label */
  .d2-ltopics { flex-wrap: nowrap; padding: 4px 16px 16px; overflow-x: auto; scrollbar-width: none; }
  .d2-ltopics::-webkit-scrollbar { display: none; }
  .d2-ltopic { flex: none; gap: 0.27em; height: 31px; padding: 7px 12px; }
  .d2-ltopic__n, .d2-ltopic[aria-pressed="true"] .d2-ltopic__n { font: inherit; color: inherit; }

  /* Start here (CQw1b) */
  .d2-lstart { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 16px 20px; }
  .d2-lfeat { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; border-radius: 10px; }
  .d2-lfeat__img { flex: none; width: 100%; height: 190px; border-radius: 6px; }
  .d2-lfeat__text { flex: none; align-items: stretch; gap: 6px; padding: 0 4px 4px; }
  .d2-lfeat__by { align-self: flex-start; }
  .d2-lfeat__title { font-size: 24px; line-height: 28px; }
  .d2-lfeat__dek { font-size: 13px; line-height: 19px; }
  .d2-lfeat__by { height: auto; }
  .d2-lfeat__avatar { display: none; }
  .d2-lfeat__rev { font-size: 10px; line-height: 13px; text-transform: uppercase; }
  .d2-lpath { width: auto; padding: 14px 16px 6px; border-radius: 10px; }
  .d2-lstep { gap: 10px; padding: 10px 0; }
  .d2-lstep__n { width: 22px; height: 22px; font-size: 10px; line-height: 13px; font-weight: 500; }
  .d2-lstep__t { line-height: 18px; }

  /* All guides (ESgMm): one column, 20 apart */
  .d2-lall { gap: 20px; padding: 4px 16px 24px; }
  .d2-lall__title { font-size: 22px; line-height: 22px; }
  .d2-lall__sort { font-size: 9px; line-height: 12px; }
  .d2-lgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .d2-lcard a { gap: 8px; }
  .d2-lcard__img { border-radius: 6px; }
  .d2-lcard__meta { display: block; letter-spacing: 1.3px; color: var(--ink-muted); }
  .d2-lcard__topic { color: inherit; }
  .d2-lcard__title { font-size: 21px; line-height: 25px; }
  .d2-lcard__dek { font-size: 13px; line-height: 19px; }

  /* Newsletter (qAd9h): stacked, full-width field and button */
  .d2-lnews { padding: 0 16px 24px; }
  .d2-lnews__panel { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; }
  .d2-lnews__text { flex: none; align-items: stretch; gap: 12px; }
  .d2-lnews__title { font-size: 20px; line-height: 23px; }
  .d2-lnews__sub { font-size: 13px; line-height: 19px; color: #B9C4BB; }
  .d2-lnews__form { display: flex; flex-direction: column; gap: 12px; }
  .d2-lnews__input { width: 100%; height: 44px; padding: 0 14px; border-radius: 8px; background: var(--inverse-field); box-shadow: inset 0 0 0 1px var(--inverse-field-line); line-height: 20px; }
  .d2-lnews__input::placeholder { color: var(--ink-muted); }
  .d2-lnews__btn { width: 100%; height: 44px; padding: 0 20px; border-radius: 8px; }
  .d2-lnews__msg { flex: none; }
}
