/* News posts. Paper, a serif for the title and the topic, a leather rail on
   this page, and one ribbon button. Skip and Not now stay underlined links.
   The same card and dialog are used on Today, so this file is also linked
   from the front page. */

body[data-page="thought-leadership"] {
  --ds-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ds-book-paper);
  color: var(--ds-book-ink);
  font-family: var(--ds-font-sans);
}
body[data-page="thought-leadership"] .dashboard-main,
body[data-page="thought-leadership"] .dashboard-content {
  background: var(--ds-book-paper);
}
body[data-page="thought-leadership"] .sidebar {
  background-color: var(--ds-book-leather);
  background-image: radial-gradient(120% 60% at 0 0, var(--ds-book-leather-glow) 0, transparent 60%);
  color: var(--ds-book-nav-ink);
  border-right: 0;
}
body[data-page="thought-leadership"] .rail-brand { color: var(--ds-book-on-leather); }
body[data-page="thought-leadership"] .rail-brand span { color: var(--ds-book-nav-muted); }
body[data-page="thought-leadership"] .nav-item {
  color: var(--ds-book-nav-ink);
  min-height: 44px;
}
body[data-page="thought-leadership"] .nav-item .nav-n { color: var(--ds-book-nav-muted); }
body[data-page="thought-leadership"] .nav-item:hover {
  background: var(--ds-book-leather-2);
  color: var(--ds-book-on-leather);
}
body[data-page="thought-leadership"] .nav-item.is-active {
  background: var(--ds-book-leather-2);
  color: var(--ds-book-on-leather);
  box-shadow: inset 3px 0 0 var(--ds-book-ribbon);
}
body[data-page="thought-leadership"] .rail-sep { background: var(--ds-book-leather-line); }
body[data-page="thought-leadership"] .topbar {
  background: var(--ds-book-paper);
  border-bottom-color: var(--ds-book-line);
  color: var(--ds-book-ink);
}
body[data-page="thought-leadership"] .page-title,
body[data-page="thought-leadership"] .lede,
body[data-page="thought-leadership"] .muted-note { color: var(--ds-book-ink); }
body[data-page="thought-leadership"] .lede,
body[data-page="thought-leadership"] .muted-note { color: var(--ds-book-muted); }
body[data-page="thought-leadership"] .page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
body[data-page="thought-leadership"] .toast {
  background: var(--ds-book-leather);
  color: var(--ds-book-on-leather);
  border-radius: 4px;
}
body[data-page="thought-leadership"] :focus-visible {
  outline: 2px solid var(--ds-book-ribbon);
  outline-offset: 2px;
}

.tl {
  max-width: 54rem;
  margin: 0 auto;
  padding-bottom: var(--ds-space-6);
  color: var(--ds-book-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tl-kicker {
  margin: 0 0 8px;
  font-family: var(--ds-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-book-ribbon);
}

.tl .page-title,
.tl h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ds-book-ink);
  margin: 0 0 8px;
}

.tl .lede {
  color: var(--ds-book-muted);
  max-width: 40rem;
  margin: 0 0 8px;
}

.tl-head {
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ds-book-ink);
}

.tl-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 20px 0 8px;
}

.tl-fields label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ds-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-book-muted);
}

.tl-fields textarea,
.tl textarea {
  width: 100%;
  min-height: 5.5rem;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid var(--ds-book-line);
  border-radius: 4px;
  background: var(--ds-book-draft);
  color: var(--ds-book-ink);
  resize: vertical;
}

.tl-note {
  margin: 0 0 12px;
  color: var(--ds-book-muted);
}

.tl h2,
.tl-group h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 22px 0 10px;
  color: var(--ds-book-ink);
}

.tl-for-you,
.tl-chips,
.tl-freq {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-for-you,
.tl-groups { margin-bottom: 4px; }
.tl-group + .tl-group { margin-top: 4px; }

.tl-chip,
.tl-choice {
  min-height: 44px;
  padding: var(--ds-control-compact-pad);
  border-radius: 980px;
  border: 1px solid var(--ds-book-line-strong);
  background: var(--ds-book-card);
  color: var(--ds-book-ink);
  font: inherit;
  font-size: var(--ds-control-compact-font);
  cursor: pointer;
}

.tl-chip.is-on,
.tl-choice.is-on {
  background: var(--ds-book-ribbon);
  border-color: var(--ds-book-ribbon);
  color: var(--ds-book-on-leather);
}

.tl-chip.is-suggested:not(.is-on) {
  background: var(--ds-book-ribbon-soft);
}

.tl-freq { margin: 4px 0 20px; }

.tl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tl-ribbon,
button.tl-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--ds-control-default-pad);
  border-radius: var(--ds-btn-radius);
  border: 1px solid var(--ds-book-ribbon);
  background: var(--ds-book-ribbon);
  color: var(--ds-book-on-leather);
  font: inherit;
  font-size: var(--ds-control-default-font);
  cursor: pointer;
}

.tl-ribbon:hover,
button.tl-ribbon:hover,
body.is-today-redesign .tl-ribbon,
body.is-customer-ux .tl-ribbon,
body.is-today-redesign button.tl-ribbon,
body.is-customer-ux button.tl-ribbon {
  background: var(--ds-book-ribbon);
  border-color: var(--ds-book-ribbon);
  color: var(--ds-book-on-leather);
}

.tl-ribbon:hover,
button.tl-ribbon:hover {
  background: var(--ds-book-leather);
  border-color: var(--ds-book-leather);
}

.tl-ribbon:disabled,
button.tl-ribbon:disabled {
  background: var(--ds-book-ribbon-soft);
  border-color: var(--ds-book-ribbon-soft);
  color: var(--ds-book-muted);
  cursor: not-allowed;
}

.tl-link { padding: 8px 2px; }
.tl-link,
button.tl-link,
body.is-customer-ux button.tl-link,
body.is-today-redesign button.tl-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ds-book-ink);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.tl-link:hover,
button.tl-link:hover { color: var(--ds-book-ribbon); }

/* Today. The card is a ledger slip: paper, a serif topic, the draft on a
   ribbon rule. Post is the one filled button. Skip is a link. */
.taskrow.tl-card,
.tl-card.td-card {
  position: relative;
  display: block;
  background: var(--ds-book-card);
  border: 1px solid var(--ds-book-line);
  border-radius: 4px;
  padding: 16px;
  margin: 0 0 12px;
  color: var(--ds-book-ink);
  cursor: default;
}

.tl-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 12px;
  width: 10px;
  height: 28px;
  background: var(--ds-book-ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  pointer-events: none;
}

.tl-card .td-card-h { padding-right: 28px; }
.tl-card .td-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ds-book-ink);
}
.tl-card .td-action {
  font-family: var(--ds-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-book-muted);
}
.tl-card .td-why,
.tl-card .td-draftrow { margin-left: 0; }
.tl-card .td-why { color: var(--ds-book-muted); font-size: 0.84rem; }
.tl-card a { color: var(--ds-book-ribbon); }

textarea.tl-draft {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  background: var(--ds-book-draft);
  color: var(--ds-book-ink);
  border: 0;
  border-left: 3px solid var(--ds-book-ribbon);
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  resize: vertical;
}

.tl-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.tl-queue-label {
  margin: 4px 0 8px;
  font-family: var(--ds-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-book-muted);
}

.tl-confirm-overlay {
  background: var(--ds-book-scrim);
}
.tl-confirm {
  background: var(--ds-book-paper);
  color: var(--ds-book-ink);
  border: 1px solid var(--ds-book-line);
  box-shadow: var(--ds-book-panel-shadow);
  width: min(28rem, 100%);
}
.tl-confirm-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ds-book-ink);
}
.tl-confirm-copy {
  margin: 0 0 18px;
  color: var(--ds-book-muted);
  line-height: 1.45;
}
.tl-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .tl-fields { grid-template-columns: 1fr; }
  .tl .page-title,
  .tl h1 { font-size: 1.85rem; }
  .tl-confirm-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .tl-confirm-actions .tl-ribbon { width: 100%; }
  .tl-confirm-actions .tl-link { justify-content: center; }
  .tl-card-actions { align-items: flex-start; }
}

@media (max-width: 768px) {
  body[data-page="thought-leadership"] .dashboard-content {
    padding: 16px 14px calc(28px + env(safe-area-inset-bottom));
  }
}
