/*
 * Opinion: the column (Pen OkVZz, TH2Io) and the hub (M81Hua). The column sits
 * on the article layout (d2.css, m-article.css); this adds its own pieces.
 * The kicker and the homepage strip are in d2.css: they also show on the homepage.
 */
.d2-ohead__title, .d2-olead__title, .d2-onum__n, .d2-oall__title, .d2-orow__title, .d2-onews__title, .d2-oauthor__name, .d2-acontent .wp-block-pullquote p { font-variation-settings: "opsz" 18; }

/* ---------- the column ---------- */

/* Left rail: what the column is, where the rest are (the guides' contents list sits here). */
.d2-ocol { gap: 10px; }
.d2-ocol__dek { font-size: 13px; line-height: 20px; color: var(--ink-secondary); }
.d2 .d2-ocol__link { font: 600 13px/17px var(--font-body); color: var(--accent); }
.d2-byline a.d2-byline__author { color: inherit; }
.d2 a.d2-byline__author:hover { text-decoration: none; }
.d2 a.d2-byline__author:hover .d2-byline__name { color: var(--accent); }

/* Featured image, 16:9, under the byline */
.d2-ofig { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.d2-ofig__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-alt); }
.d2-ofig__cap { font-size: 12px; line-height: 18px; color: var(--ink-muted); }

/* Pull quote: the core block, in the column's voice */
.d2-acontent .wp-block-pullquote { margin: 0; padding: 8px 0 8px 28px; border: 0; box-shadow: inset 3px 0 0 var(--accent); text-align: left; }
.d2-acontent .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.d2-acontent .wp-block-pullquote p { font-family: var(--font-heading); font-size: 30px; line-height: 36px; letter-spacing: -0.3px; color: var(--ink); }
.d2-acontent .wp-block-pullquote cite { display: block; margin-top: 10px; font: 400 11px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; font-style: normal; color: var(--ink-muted); }
.d2-acontent > figure.wp-block-image { margin: 0; }
.d2-acontent > figure.wp-block-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.d2-acontent > figure.wp-block-image figcaption { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.d2-acontent > h3 { font-family: var(--font-heading); font-size: 24px; line-height: 30px; font-weight: 400; color: var(--ink); }

/* About the author */
.d2-oauthor { display: flex; gap: 18px; padding: 24px; border-radius: 8px; background: var(--surface-alt); }
.d2-oauthor__avatar, .d2-ohead__avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--logo-chip); font: 600 18px/22px var(--font-body); color: #fff; }
.d2-oauthor__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.d2-oauthor__label { font: 400 10px/13px var(--font-mono); letter-spacing: 1.3px; color: var(--ink-muted); }
.d2-oauthor__name { font-family: var(--font-heading); font-size: 24px; line-height: 28px; color: var(--ink); }
.d2-oauthor__bio { font-size: 14px; line-height: 22px; color: var(--ink-secondary); }
.d2-oauthor__disc { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.d2-oauthor__links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 4px; }
.d2 .d2-oauthor__links a { font: 600 13px/17px var(--font-body); color: var(--accent); }

/* ---------- the hub ---------- */
.d2-ohub { display: flex; flex-direction: column; }
.d2-ohead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 64px 20px; }
.d2-ohead__eyebrow { font: 400 11px/14px var(--font-mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.d2-ohead__title { margin-top: 2px; font-family: var(--font-heading); font-size: 46px; line-height: 50px; font-weight: 400; letter-spacing: -0.6px; color: var(--ink); }
.d2-ohead__sub { max-width: 760px; font-size: 16px; line-height: 24px; color: var(--ink-secondary); }
.d2-ohead__author { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.d2-ohead__avatar { width: 44px; height: 44px; font-size: 14px; line-height: 18px; }
.d2-ohead__names { display: flex; flex-direction: column; gap: 2px; }
.d2-ohead__name { font: 600 14px/18px var(--font-body); color: var(--ink); }
.d2-ohead__role { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.d2 .d2-ohead__role a { color: var(--accent); }
.d2-oempty { padding: 24px 64px 40px; font-size: 16px; line-height: 24px; color: var(--ink-secondary); }

/* Latest column, with this week's number beside it */
.d2-olatest { display: flex; gap: 24px; padding: 24px 64px 40px; }
.d2-olead { flex: 1; min-width: 0; display: flex; overflow: hidden; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit; }
.d2 .d2-olead:hover { text-decoration: none; }
.d2 .d2-olead:hover .d2-olead__title { color: var(--accent); }
.d2-olead__img { flex: none; width: 540px; height: auto; min-height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.d2-olead__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.d2-olead__title { font-family: var(--font-heading); font-size: 34px; line-height: 38px; letter-spacing: -0.5px; color: var(--ink); }
.d2-olead__dek { font-size: 16px; line-height: 25px; color: var(--ink-secondary); }
.d2-olead__link { margin-top: auto; font: 600 14px/18px var(--font-body); color: var(--accent); }
.d2-onum { flex: none; width: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 32px; border-radius: 8px; background: var(--surface-inverse); }
.d2-onum__label { font: 400 11px/14px var(--font-mono); letter-spacing: 1.3px; color: var(--accent-bright); }
.d2-onum__n { font-family: var(--font-heading); font-size: 88px; line-height: 88px; letter-spacing: -2px; color: var(--ink-inverse); }
.d2-onum__cap { font-size: 14px; line-height: 21px; color: var(--footer-link); }

/* Every column */
.d2-oall { padding: 0 64px 48px; }
.d2-oall__head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--ink); }
.d2-oall__title { font-family: var(--font-heading); font-size: 28px; line-height: 32px; font-weight: 400; color: var(--ink); }
.d2-oall__meta { font: 400 11px/14px var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted); }
.d2 .d2-oall__meta a { color: var(--accent); }
.d2-olist { margin: 0; padding: 0; list-style: none; }
.d2-orow { display: flex; align-items: flex-start; gap: 32px; padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line); color: inherit; }
.d2 .d2-orow:hover { text-decoration: none; }
.d2 .d2-orow:hover .d2-orow__title { color: var(--accent); }
.d2-orow__date { flex: none; width: 180px; display: flex; flex-direction: column; gap: 4px; font: 400 11px/14px var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted); }
.d2-orow__no { color: var(--accent); }
.d2-orow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.d2-orow__title { font-family: var(--font-heading); font-size: 26px; line-height: 31px; letter-spacing: -0.3px; color: var(--ink); }
.d2-orow__dek { font-size: 15px; line-height: 22px; color: var(--ink-secondary); }
.d2-orow__min { flex: none; font: 400 11px/14px var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted); }
.d2-orow__img { flex: none; width: 192px; height: 108px; object-fit: cover; border-radius: 6px; }

/* Newsletter band (as on Learn) */
.d2-onews { padding: 0 64px 48px; }
.d2-onews__panel { display: flex; align-items: center; gap: 24px; padding: 24px 28px; border-radius: 12px; background: var(--surface-inverse); }
.d2-onews__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.d2-onews__title { font-family: var(--font-heading); font-size: 24px; line-height: 28px; font-weight: 400; color: var(--ink-inverse); }
.d2-onews__sub { font-size: 14px; line-height: 18px; color: var(--footer-link); }
.d2-onews__form { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.d2-onews__input { 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-onews__input::placeholder { color: var(--footer-muted); opacity: 1; }
.d2-onews__btn { 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-onews__btn:disabled { opacity: .6; cursor: default; }
.d2-onews .d2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.d2-onews__msg { flex-basis: 100%; font-size: 13px; line-height: 18px; color: var(--ink-inverse); }
.d2-onews__msg:empty { display: none; }
.d2-onews :focus-visible, .d2-olead:focus-visible, .d2-orow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 1340px) {
  .d2-ohead, .d2-oempty, .d2-olatest, .d2-oall, .d2-onews { padding-left: 24px; padding-right: 24px; }
  .d2-olead__img { width: 46%; }
  .d2-onum { width: 280px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .d2-olatest { flex-direction: column; }
  .d2-onum { width: auto; }
  .d2-onum__n { font-size: 64px; line-height: 64px; }
  .d2-orow { gap: 20px; }
  .d2-orow__date { width: 120px; }
  .d2-orow__img { width: 144px; height: 81px; }
  .d2-onews__panel { flex-wrap: wrap; }
  .d2-onews__text { flex-basis: 100%; }
}

@media (max-width: 760px) {
  /* The column */
  .d2-ofig { gap: 6px; }
  .d2-acontent .wp-block-pullquote { padding: 4px 0 4px 18px; }
  .d2-acontent .wp-block-pullquote p { font-size: 24px; line-height: 29px; }
  .d2-oauthor { flex-direction: column; gap: 14px; padding: 20px; }
  .d2-ohead__avatar, .d2-oauthor__avatar { width: 56px; height: 56px; }
  .d2-ohead__avatar { width: 40px; height: 40px; }

  /* The hub */
  .d2-ohead { gap: 8px; padding: 20px 16px 12px; }
  .d2-ohead__eyebrow { font-size: 10px; line-height: 13px; letter-spacing: 1.4px; }
  .d2-ohead__title { font-size: 32px; line-height: 36px; letter-spacing: -0.4px; }
  .d2-ohead__sub { font-size: 14px; line-height: 21px; }
  .d2-oempty { padding: 16px; }
  .d2-olatest { flex-direction: column; gap: 16px; padding: 12px 16px 28px; }
  .d2-olead { flex-direction: column; }
  .d2-olead__img { width: 100%; min-height: 0; }
  .d2-olead__text { gap: 10px; padding: 20px; }
  .d2-olead__title { font-size: 26px; line-height: 30px; }
  .d2-olead__dek { font-size: 15px; line-height: 23px; }
  .d2-onum { width: auto; padding: 22px; }
  .d2-onum__n { font-size: 56px; line-height: 56px; }
  .d2-oall { padding: 0 16px 28px; }
  .d2-oall__title { font-size: 24px; line-height: 28px; }
  .d2-orow { display: grid; grid-template-columns: 1fr 112px; gap: 6px 14px; padding: 18px 0; }
  .d2-orow__date { width: auto; flex-direction: row; gap: 8px; grid-column: 1; grid-row: 1; font-size: 10px; }
  .d2-orow__text { grid-column: 1; grid-row: 2; }
  .d2-orow__title { font-size: 20px; line-height: 24px; }
  .d2-orow__dek { display: none; }
  .d2-orow__min { display: none; }
  .d2-orow__img { grid-column: 2; grid-row: 1 / span 2; width: 112px; height: 63px; }
  .d2-onews { padding: 0 16px 24px; }
  .d2-onews__panel { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; }
  .d2-onews__title { font-size: 20px; line-height: 23px; }
  .d2-onews__form { flex-direction: column; align-items: stretch; }
  .d2-onews__input { width: 100%; height: 44px; }
  .d2-onews__btn { height: 44px; }
}
