/* STORY SUBMISSION — [tgv_story_submit] (includes/blog/story-submission.php) */
.tgv-story-open {
  margin-top: auto;
}

.tgv-story-lock {
  overflow: hidden;
}

/* tgv-modal-overlay (style.css) adds the navbar clearance. */
.tgv-story-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 40px;
  background: rgba(0, 0, 0, 0.75);
}
.tgv-story-modal[hidden] {
  display: none;
}

.tgv-story-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  color: #1d1d1f;
  text-align: left;
}

.tgv-story-heading {
  margin: 0 0 4px;
  font-size: 22px;
}

.tgv-story-byline {
  margin: 0 0 16px;
  font-size: 14px;
  color: #5f6368;
}

.tgv-story-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tgv-story-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.tgv-story-field small {
  font-weight: 400;
  color: #5f6368;
}
.tgv-story-field input[type="text"],
.tgv-story-field input[type="url"],
.tgv-story-field select,
.tgv-story-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  font-weight: 400;
}
.tgv-story-field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.5;
}
.tgv-story-field input[type="file"] {
  font-size: 14px;
  font-weight: 400;
}

.tgv-story-count {
  align-self: flex-end;
}

.tgv-story-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tgv-story-note {
  margin: 0;
  font-size: 13px;
  color: #5f6368;
}

.tgv-story-msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}
.tgv-story-msg.is-ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.tgv-story-submit {
  align-self: flex-start;
}
/* STORY SUBMISSION END */
