/* remove most of the class in the HTML index.php, maximize universal tags */
* {
    box-sizing: border-box;
}

body{
    margin:0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header{
    height:72px;
    display: flex; 
    align-items: center;
    background: deepskyblue;
    color: #fff;
    justify-content: space-between;
    padding: 0 40px;
    gap: 16px
}
header div{
    width: auto;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px;
}
main{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

main > h2,
main > p {
    grid-column: 1 / -1;
}

h1 {
    font-weight: 300;
    margin: 0;
    font-size:48px;
}
h2{
    margin: 0 0 18px;
    font-size: 34px;
    color: deepskyblue;
}
h2 p{
    font-size: medium;
}
h3{
    color: #567eb5;
}

p{
    /* margin: 0 0 18px; */
    max-width: 780px;
    line-height: 1.5;
    color: #555;
}
form {
    width: 100%;
    max-width: none;
}
form a{
    color:#1b233d;
}
nav {
    display: flex;
    gap:18px;
}
label{
    font-size: 14px;
    color: #444;
    text-align: right;
    white-space: nowrap;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

textarea {
    resize: both;
    min-height: 180px;
}

input, select{
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
}
button{
    grid-column: 2;
    padding: 8px 18px;
    border: 1px solid #cfcfcf;
    border-radius: 18px;
    background:linear-gradient(#f9f9f9,#dcdcdc);
    cursor: pointer;
    box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,0.2);
    color:#333;
}
a{
    color: deepskyblue;
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
footer{
    display: flex;
    background: #999898;
    padding: 200px;
    color: #f9f7f7;
    justify-content: space-between;
}
footer p{
    margin-top:10px;
    font-size: 22px;
    color: #bdbdbd;
}

th:hover{
    text-decoration: underline;
    cursor: pointer;
}
header a {
    color: white;
    font-size: large;
}

details {
    width: 360px;
    flex: 0 0 360px;
    background-color: #d0cccc;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: deepskyblue;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details form{
    max-width: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap:12px;
}

details form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 12px;
    color: #567eb5;
    text-align: left;
    white-space: normal;
}

input, textarea {
    padding: 12px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
}
textarea{
    min-height: 120px;
    resize: vertical;
}

input:focus, textarea:focus{
    border-color: deepskyblue;
    box-shadow: 0 0 0 4px rgba(18, 48, 58, 0.18);
    outline: none;
}

details button{
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: 12px;
    color: #1b233d;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(18, 48, 58, 0.18);
}

section{
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

section div{
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 16px;
    box-shadow: none;

    position: relative;
}

section img{
    display: flex;
    align-items: center;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-top: 10px;
}

table {
    width: 100%;
}

thead th{
    font-weight: 800;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
#journalTable {
    width: 100%;
}
.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.newsletter-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.newsletter-popup-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

#journals-page {
    display: block;
    max-width: 1200px;
}

@media (max-width: 900px) {
    main > div {
        grid-template-columns: 1fr;
    }
}