/* LX5 Security — Academic Research Journal */
:root {
  --ink: #202a35;
  --navy: #192838;
  --muted: #66717c;
  --paper: #faf9f6;
  --rule: #d9dfe3;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.8;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 28px 90px;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-bottom: 24px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}

nav a {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav a:hover {
  color: #496d91;
  text-decoration: underline;
}

nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

h1 {
  color: var(--navy);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: normal;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}

h1 + p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 70px;
}

h2 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 22px;
}

h3 {
  color: var(--ink);
  font-size: 19px;
}

p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
}

section {
  margin: 0 0 64px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

section h2 {
  color: var(--navy);
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 20px;
}

section h3 {
  color: var(--navy);
  font-size: 18px;
}

section p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.journal-label {
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Research Philosophy: remove the extra space above the footer. */
#philosophy {
  margin-bottom: 0;
  padding-bottom: 0;
}

#philosophy p:last-child {
  margin-bottom: 0;
}

footer.site-footer {
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--rule);
  padding: 28px 20px 36px;
  margin: 48px auto 0;
  text-align: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

footer.site-footer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

footer.site-footer p + p {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .container {
    padding: 28px 22px 24px;
  }

  nav {
    gap: 12px 18px;
    margin-bottom: 38px;
  }

  nav a {
    font-size: 13px;
    white-space: nowrap;
  }

  .journal-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.2;
  }

  h1 + p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  h1 + p + section,
  .container > section:first-of-type {
    margin-top: 24px;
  }

  section {
    margin-top: 36px;
    margin-bottom: 36px;
  }

  section h2 {
    font-size: 23px;
    line-height: 1.3;
  }

  section h3 {
    font-size: 17px;
  }

  section p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  footer.site-footer {
    margin-top: 16px;
    padding: 24px 20px 32px;
  }

  footer.site-footer p {
    font-size: 12px;
  }
}

/* LX5 Security - Journal Footer */

footer.site-footer {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #d9dfe3;
    padding: 28px 20px 36px;
    margin: 48px auto 0;
    text-align: center;
    color: #66717c;
    font-family: Georgia, "Times New Roman", serif;
}

footer.site-footer p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

footer.site-footer p + p {
    margin-top: 6px;
}

@media (max-width: 600px) {
    footer.site-footer {
        margin-top: 48px;
        padding: 24px 20px 32px;
    }

    footer.site-footer p {
        font-size: 12px;
    }
}




/* LX5 Security — Philosophy Footer Spacing */
#philosophy {
    margin-bottom: 0;
    padding-bottom: 0;
}

#philosophy p:last-child {
    margin-bottom: 0;
}


/* LX5 Security — Mobile Footer Gap Fix */
@media (max-width: 600px) {
    .container {
        padding-bottom: 24px;
    }

    footer.site-footer {
        margin-top: 16px;
    }
}


/* LX5 Security - Mobile Navigation Fix */
@media (max-width: 600px) {
  nav {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
  }

  nav a {
    font-size: 11px;
    white-space: nowrap;
    letter-spacing: 0;
  }
}

/* LX5 Security - Mobile Navigation Polish */
@media (max-width: 600px) {
  nav {
    gap: 4px;
    margin-bottom: 38px;
  }

  nav a {
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
    padding: 12px 3px;
    display: inline-block;
  }
}

/* LX5 Security — Official Logo */
.site-logo {
    display: block;
    width: 110px;
    max-width: 100%;
    height: auto;
    margin: 0 0 18px;
}

@media (max-width: 600px) {
    .site-logo {
        width: 85px;
        margin-bottom: 14px;
    }
}

/* LX5 Security — Final Mobile Refinements */
@media (max-width: 600px) {

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 6px;
    margin-bottom: 28px;
  }

  nav a {
    display: inline-block;
    padding: 10px 5px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .site-logo {
    width: 85px;
    max-width: 100%;
    height: auto;
    margin: 0 0 8px;
  }

  .journal-label {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.07em;
  }
}



/* LX5 Security — Compact Balanced Mobile Navigation */
@media (max-width: 600px) {
  nav[aria-label="Main navigation"] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    margin-bottom: 14px;
    align-items: center;
  }

  nav[aria-label="Main navigation"] a {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 2px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  nav[aria-label="Main navigation"] a:nth-child(4) {
    grid-column: 2 / span 2;
  }

  nav[aria-label="Main navigation"] a:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* LX5 Security — Compact Mobile Navigation */
@media (max-width: 600px) {
  nav[aria-label="Main navigation"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    margin-bottom: 14px;
  }

  nav[aria-label="Main navigation"] a,
  nav[aria-label="Main navigation"] a:nth-child(4),
  nav[aria-label="Main navigation"] a:nth-child(5) {
    grid-column: auto;
    flex: 0 0 auto;
    padding: 6px 2px;
    min-height: 0;
    font-size: 11px;
    white-space: nowrap;
  }
}
