/* linkedin — the app's own styles, after the kit (DESIGN.md). Tokens only: no colour, size or font that isn't
   one (test/style.test.js). The one literal is the 600 px phone/wide split, as in the kit's frame. */

/* linkedin's own tokens (DESIGN.md › Tokens): LinkedIn's blue, dark first like the kit — its dark-mode blue with
   dark text (8.9:1), its light-mode blue with white text (5.7:1); 4.5:1 or more as text on paper and bone. For the
   one primary action and the hashtags, never in the frame. */
:root {
  --li-accent: #71b7fb;
  --li-on-accent: #111111;
}

:root[data-theme='light'] {
  --li-accent: #0a66c2;
  --li-on-accent: #ffffff;
}

.li {
  padding-block: var(--space-8) 0;
  padding-inline: var(--space-6);
}

.li-form,
.li-result {
  max-width: calc(var(--space-24) * 7);
}

.li-label {
  display: block;
  margin-block-end: var(--space-2);
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
}

.li-label:lang(ar) {
  font-size: var(--ar-title-size);
  line-height: var(--ar-title-line);
  font-weight: var(--ar-title-weight);
}

/* The text box: the kit's input — radius-sm, an outline, the focus ring from base.css. */
.li-input {
  display: block;
  width: 100%;
  min-height: calc(var(--space-24) + var(--space-12));
  margin: 0;
  padding: var(--space-3);
  border: var(--hairline) solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.li-input:hover {
  border-color: var(--graphite);
}

/* The examples: quiet controls that fill the box. */
.li-examples {
  list-style: none;
  margin: 0;
  margin-block-start: var(--space-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.li-examples[hidden] {
  display: none;
}

.li-example {
  margin: 0;
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border: var(--hairline) solid var(--sand);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--graphite);
  font: inherit;
  font-size: var(--small-size);
  line-height: var(--small-line);
  cursor: pointer;
}

.li-example:hover {
  border-color: var(--stone);
  color: var(--ink);
}

/* The one primary button, in the accent. */
.li-go {
  display: inline-block;
  min-height: var(--space-12);
  margin-block-start: var(--space-4);
  padding-block: var(--space-3);
  padding-inline: var(--space-6);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--li-accent);
  color: var(--li-on-accent);
  font: inherit;
  font-weight: var(--title-weight);
  cursor: pointer;
}

.li-go:disabled {
  background: var(--bone);
  color: var(--stone);
  cursor: progress;
}

/* The post, in the shape of a LinkedIn post: a card with a profile line over the text and the reaction bar under
   it. The studio's tokens and the app's own; no LinkedIn mark. */
.li-result {
  margin-block-start: var(--space-12);
}

.li-result[hidden],
.li-status[hidden],
.li-card[hidden],
.li-copy[hidden] {
  display: none;
}

.li-status {
  margin: 0;
  color: var(--graphite);
}

.li-card {
  border: var(--hairline) solid var(--sand);
  background: var(--bone);
}

.li-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4) 0;
  padding-inline: var(--space-4);
}

.li-avatar {
  flex: none;
  display: block;
  width: var(--space-12);
  height: var(--space-12);
  overflow: hidden;
  border-radius: 50%;
  background: var(--sand);
  color: var(--stone);
}

.li-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.li-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.li-author {
  font-weight: var(--title-weight);
}

.li-meta {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--stone);
}

.li-meta:lang(en) {
  font-family: var(--font-sans);
}

.li-card .li-post {
  padding-block: var(--space-4);
  padding-inline: var(--space-4);
}

.li-actions {
  display: flex;
  justify-content: space-around;
  gap: var(--space-2);
  margin-inline: var(--space-4);
  padding-block: var(--space-3);
  border-block-start: var(--hairline) solid var(--sand);
  font-size: var(--small-size);
  line-height: var(--small-line);
  font-weight: var(--title-weight);
  color: var(--stone);
}

/* Each action: its icon over its word on a phone, as LinkedIn's app has it; side by side from 600 px. */
.li-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.li-action svg {
  display: block;
  width: var(--space-6);
  height: var(--space-6);
}

.li-tag {
  color: var(--li-accent);
  font-weight: var(--title-weight);
}

.li-post {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Copy: a text control, like the footer's, over the post — in reach without scrolling past a long one. */
.li-copy {
  margin: 0;
  margin-block-end: var(--space-2);
  padding-block: var(--space-3);
  padding-inline: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--small-size);
  line-height: var(--small-line);
  text-decoration: underline;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: var(--space-1);
  cursor: pointer;
}

.li-copy:hover {
  text-decoration-thickness: var(--rule);
}

@media (min-width: 600px) {
  .li-action {
    flex-direction: row;
    gap: var(--space-2);
  }

  .li {
    padding-block-start: var(--space-12);
    padding-inline: var(--space-24);
  }
}
