/* Henry Stewart Publications landing site. Colours and type follow henrystewartpublications.com
   (Elementor global kit): Montserrat, navy text, deep-blue header and footer, teal accents. */

:root {
  --navy: #020c37;
  --deep-blue: #064878;
  --indigo: #1d244c;
  --slate: #4e5473;
  --teal: #00a89e;
  --sky: #45b6e0;
  --grey-dark: #4d4d4d;
  --grey-line: #e3e3e3;
  --grey-light: #f7f7f7;
  --white: #ffffff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --radius: 6px;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--deep-blue);
}

a:hover {
  color: var(--teal);
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 28px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* --------- Header --------- */

.site-header {
  background: var(--deep-blue);
  color: var(--white);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 25px;
  padding-bottom: 15px;
}

.logo img {
  display: block;
  width: min(601px, 60vw);
  height: auto;
}

.pill-button {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  border: 1px solid var(--slate);
  border-radius: 25px;
  padding: 12px 26px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.pill-button:hover {
  color: var(--white);
  background: var(--navy);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main-nav a {
  display: block;
  padding: 10px 0;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--white);
  text-decoration: underline;
}

/* Visually hidden but focusable, so the mobile menu works from the keyboard. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nav-toggle-label {
  display: none;
}

/* --------- Page --------- */

.page-banner {
  background: var(--grey-light);
  border-bottom: 4px solid var(--teal);
  padding: 40px 0 30px;
}

.page-banner h1 {
  margin: 0;
}

.content {
  padding-top: 40px;
  padding-bottom: 60px;
}

.intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  font-weight: 600;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 2rem;
}

.narrow {
  max-width: 720px;
}

.button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  border: 0;
  border-radius: 25px;
  padding: 15px 34px 13px;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--deep-blue);
  color: var(--white);
}

/* --------- Form --------- */

.submission-form {
  max-width: 720px;
}

fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

legend {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.75rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field.wide {
  grid-column: 1 / -1;
}

.field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #c6c6c6;
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
}

.field input[type="file"] {
  background: var(--grey-light);
}

/* Built by file_picker.js around the files input. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 1px solid #c6c6c6;
  border-radius: var(--radius);
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
}

.file-list li + li {
  border-top: 1px solid var(--grey-line);
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-size {
  font-size: 0.875rem;
  color: var(--grey-dark);
  white-space: nowrap;
}

.file-picker-add,
.file-remove {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.file-picker-add {
  color: var(--deep-blue);
  background: var(--grey-light);
  border: 1px dashed var(--deep-blue);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  width: 100%;
}

.file-picker-add:hover:not(:disabled) {
  background: #eef4f9;
}

.file-picker-add:disabled {
  color: var(--grey-dark);
  border-color: #c6c6c6;
  cursor: not-allowed;
}

.file-remove {
  font-size: 0.875rem;
  color: var(--error);
  background: none;
  border: 0;
  padding: 0.2rem 0.3rem;
}

.file-remove:hover {
  text-decoration: underline;
}

.file-picker-status {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.has-error .file-picker-add {
  border-color: var(--error);
}

.file-picker-add:focus,
.file-remove:focus,
.field input:focus,
.field select:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--deep-blue);
}

.field .check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
}

.field .check input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.help {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  color: var(--grey-dark);
}

.error {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}

.has-error input,
.has-error select {
  border-color: var(--error) !important;
}

.alert {
  background: var(--error-bg);
  border-left: 4px solid var(--error);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--error);
  font-weight: 600;
}

.alert p {
  margin: 0;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--grey-dark);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------- Status --------- */

.status-card .label {
  margin: 0;
  color: var(--grey-dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-word {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--deep-blue);
}

.status-word.status-accepted {
  color: var(--teal);
}

.status-word.status-declined,
.status-word.status-withdrawn {
  color: var(--grey-dark);
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}

.details dt {
  color: var(--grey-dark);
}

.details dd {
  margin: 0;
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.timeline li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1rem 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--grey-line);
  background: var(--white);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.45rem - 1px);
  top: 1.35rem;
  bottom: 0.1rem;
  width: 2px;
  background: var(--grey-line);
}

.timeline li.done::before {
  border-color: var(--teal);
  background: var(--teal);
}

.timeline li.pending {
  color: var(--grey-dark);
}

.timeline .when {
  white-space: nowrap;
}

/* --------- Footer --------- */

.site-footer {
  background: var(--deep-blue);
  color: var(--white);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 50px;
  padding-bottom: 50px;
}

.site-footer h2 {
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.footer-links li {
  padding-bottom: 4px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-strip {
  background: var(--teal);
  text-align: center;
  font-size: 17px;
  padding: 10px 0;
}

/* --------- Small screens --------- */

@media (max-width: 1024px) {
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 12px;
    padding: 6px 14px;
    border: 1px solid var(--white);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
  }

  .burger,
  .burger::before,
  .burger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    position: relative;
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
  }

  .burger::before {
    top: -6px;
  }

  .burger::after {
    top: 6px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
  }

  .nav-toggle:checked ~ ul {
    display: flex;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--sky);
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 28px;
  }

  .header-top {
    padding-top: 15px;
  }

  .logo img {
    width: 180px;
  }

  .pill-button {
    font-size: 10px;
    padding: 10px 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

  .details dd {
    margin-bottom: 0.5rem;
  }
}
