body {
    font-family: "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";
    font-size: 16px;
    line-height: 20px;
    color: #53565A;
	text-align:justify;
	margin:2em auto;
	max-width:960px;
	padding:0 2em;
	box-sizing:border-box;
	}
p {
margin: 15px;
}
 h1 {
	 font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
      color: #3C89B2;
	 line-height: 100%;
	}
h2 {font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
	}
 h3 {
    font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
font-size: 24px;
    color: #003057;
border-bottom: 3px solid #3C89B2;
margin: 15px;
	}
 h4 {
    font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
font-size: 20px;
    color: #3C89B2;
margin: 15px;
	}
h5 {
    font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
font-size: 16px;
font-style: italic;
    color: #3C89B2;
margin: 15px;
	}
 h6 {
    font-family: 'Montserrat', Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
	font-size: 16px;
    color: #003057;
	margin: 15px;
	}
	a {text-decoration: underline;}
					a:link {color: #3C89B2;}
					a:active {color: #3C89B2;}
					a:visited {color: #A7A8AA;}
					a:hover {color: #fff;background: #003057;}
hr {
color: #6298ae;
height: 1px
}
table.custom-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #000; /* bottom rule */
}
table.custom-table thead th {
  border-top: 2px solid #000; /* header rule */
  text-align: left;
  padding: 6px;
}
table.custom-table thead th {
  border-bottom: 2px solid #000; /* header rule */
  text-align: left;
  padding: 6px;
}
table.custom-table tbody td {
  padding: 6px;
}
table.custom-table tbody tr td {
  border-bottom: 1px solid #ccc;
}
table.custom-table tbody tr:last-child td {
  border-bottom: 2px solid #000; /* header rule */
  text-align: left;
  padding: 6px;
}
.box {
  border: 1px solid #333;
  padding: 4px;
  margin: 16px 0;
}
.abstract {
  background-color: #E1EDF4; /* light blue */
  padding: 10px;             /* optional for spacing */
}
img {
width:75%;
height:auto;
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    body {
        margin: 1.5em auto;
        padding: 0 1.5em;
        max-width: 100%;
    }
    img {
        width: 100%;
    }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
    body {
        margin: 1em auto;
        padding: 0 1rem;
        max-width: 100%;
        text-align: left;
        overflow-wrap: break-word;
    }
    h1 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        line-height: 1.25;
    }
    h2 {
        font-size: 1.05rem;
        line-height: 1.3;
    }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem;  }
    h5 { font-size: 0.95rem; }
    h6 {
        font-size: 0.95rem;
    }
    img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    ol {
        padding-left: 1.35rem;
        margin-left: 0;
    }
    .box,
    .abstract {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    /* Masthead: stack journal line and DOI link */
    body > table:first-of-type tr {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
    body > table:first-of-type td {
        width: 100% !important;
        text-align: left !important;
    }
    /* Figure tables: drop empty side cells so the image column can use full width */
    table[width="100%"][border="0"] tr:first-child td:empty {
        display: none;
    }
    /* Wide data tables: scroll inside the paragraph (no HTML wrapper required) */
    p:has(> table.custom-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    table.custom-table {
        min-width: 34rem;
    }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    /* References and long URLs */
    p.justify {
        overflow-wrap: anywhere;
    }
}