/* My stories presents draft and published work in one chronological list. */
.my-stories-hub {
  width: min(100% - 88px, 1320px);
  margin: 0 auto;
  padding: 42px 0 90px;
}

.my-stories-hub__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #a9a198;
  padding-bottom: 30px;
}

.my-stories-hub__header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
}

.my-stories-hub__header p:not(.eyebrow) {
  margin: 0;
  color: #6d6761;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.my-stories-hub__header > strong {
  flex: none;
  color: #99192f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.my-stories-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 18px;
}

.my-stories-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.my-stories-toolbar nav a {
  border-bottom: 2px solid transparent;
  padding: 10px 0 7px;
  color: #706a64;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.my-stories-toolbar nav a:hover,
.my-stories-toolbar nav a:focus-visible,
.my-stories-toolbar nav a[aria-current="page"] {
  border-bottom-color: #99192f;
  color: #99192f;
}

.my-stories-toolbar nav a:focus-visible { outline: 2px solid #99192f; outline-offset: 3px; }

.my-stories-toolbar form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.my-stories-toolbar form label {
  display: grid;
  gap: 5px;
  color: #706a64;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-stories-toolbar form input {
  min-width: 220px;
  height: 39px;
}

.my-stories-toolbar form .button { height: 39px; border-radius: 999px; }

.my-stories-hub__header > a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: #6e6862;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.my-stories-hub__header > a:hover,
.my-stories-hub__header > a:focus-visible {
  color: #99192f;
  outline: 0;
}

.my-stories-section {
  margin-top: 25px;
}

.my-stories-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 14px;
}

.my-stories-section > header h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.my-stories-section > header > strong {
  color: #99192f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.my-stories-section__list {
  border-top: 1px solid #958d84;
}

.my-stories-section__empty {
  margin: 0;
  border-bottom: 1px solid #d8d2ca;
  padding: 24px 4px;
  color: #777068;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.my-story-task {
  display: grid;
  grid-template-columns: 110px minmax(320px, 1fr) 180px auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #d8d2ca;
  padding: 20px 12px;
  transition: background-color .16s ease, padding .16s ease;
}

.my-story-task:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: #fffefa;
}

.my-story-task__issue,
.my-story-task__state {
  display: grid;
  gap: 5px;
}

.my-story-task__issue > span,
.my-story-task__state > strong {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-story-task__issue > span,
.my-story-task__state.is-attention > strong {
  color: #99192f;
}

.my-story-task__state.is-writer-returned > strong {
  color: #286b48;
}

.my-story-task small,
.my-story-task__copy > p:not(.eyebrow) {
  margin: 0;
  color: #777068;
  font-size: 9px;
}

.my-story-task__copy h4 {
  margin: 4px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.08;
}

.my-story-task > .button {
  border-radius: 999px;
}

.my-published-story {
  border-bottom: 1px solid #d8d2ca;
}

.my-published-story > summary {
  display: grid;
  grid-template-columns: 110px minmax(320px, 1fr) 130px 112px;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 16px 12px;
  list-style: none;
  cursor: pointer;
  transition: background-color .16s ease, padding .16s ease;
}

.my-published-story > summary::-webkit-details-marker {
  display: none;
}

.my-published-story > summary::marker {
  content: "";
}

.my-published-story > summary:hover,
.my-published-story > summary:focus-visible,
.my-published-story[open] > summary {
  padding-right: 18px;
  padding-left: 18px;
  background: #fffefa;
  outline: 0;
}

.my-published-story__issue,
.my-published-story__copy > small,
.my-published-story__date,
.my-published-story__prompt {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-published-story__issue,
.my-published-story__copy > small {
  color: #99192f;
}

.my-published-story__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.my-published-story__copy > strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-published-story__copy > span,
.my-published-story__date {
  color: #777068;
  font-size: 9px;
}

.my-published-story__prompt {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: #4d4843;
}

.my-published-story[open] .my-published-story__prompt {
  color: #99192f;
}

.my-published-story__details {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(440px, 1.2fr) auto;
  align-items: end;
  gap: 34px;
  border-top: 1px solid #e0dad2;
  padding: 28px 18px 30px;
  background: #fffefa;
}

.my-published-story__details h4 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.08;
}

.my-published-story__details > div > p:not(.eyebrow) {
  max-width: 460px;
  margin: 0;
  color: #6f6963;
  font-size: 9px;
  line-height: 1.5;
}

.my-published-story__details dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  margin: 0;
}

.my-published-story__details dl > div {
  border-left: 1px solid #d8d2ca;
  padding: 4px 16px;
}

.my-published-story__details dt {
  color: #777068;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-published-story__details dd {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.my-published-story__details > .button {
  border-radius: 999px;
  white-space: nowrap;
}

@media(max-width: 1000px) {
  .my-story-task {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }

  .my-story-task__state {
    grid-column: 2;
  }

  .my-story-task > .button {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .my-published-story > summary {
    grid-template-columns: 90px minmax(0, 1fr) 110px;
  }

  .my-published-story__prompt {
    grid-column: 3;
  }

  .my-published-story__date {
    display: none;
  }

  .my-published-story__details {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .my-published-story__details > .button {
    justify-self: start;
  }
}

@media(max-width: 700px) {
  .my-stories-hub {
    width: min(100% - 32px, 1320px);
    padding-top: 30px;
  }

  .my-stories-hub__header {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .my-stories-toolbar { align-items: stretch; flex-direction: column; }
  .my-stories-toolbar form { align-items: stretch; }
  .my-stories-toolbar form label { flex: 1; }
  .my-stories-toolbar form input { min-width: 0; width: 100%; }

  .my-stories-section {
    margin-top: 36px;
  }

  .my-story-task,
  .my-published-story > summary {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 18px 4px;
  }

  .my-story-task__state,
  .my-story-task > .button,
  .my-published-story__prompt {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .my-published-story__copy > strong {
    white-space: normal;
  }

  .my-published-story__details {
    gap: 26px;
    padding: 24px 4px 28px;
  }

  .my-published-story__details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }
}

@media(prefers-reduced-motion: reduce) {
  .my-story-task,
  .my-published-story > summary {
    transition: none;
  }
}
