@charset "UTF-8";
/*
 * AUT Journal - public website polish, version 1.1 - 5 November 2026
 * Designed for the existing OJS 3.4 Health Sciences Theme.
 * Upload as Journal style sheet. This is CSS, not an image or an OJS plugin.
 * All visible rules are scoped to public-theme elements, not the dashboard.
 * No remote fonts, scripts, hidden content, or changes to manuscript policies.
 * Rollback: remove this custom stylesheet from the same appearance setting.
 */

:root {
  --aut-navy: #0b1e3a;
  --aut-blue: #185a8d;
  --aut-text: #253247;
  --aut-muted: #526176;
  --aut-border: #d8e1eb;
  --aut-pale: #f3f6fa;
  --aut-head: #eaf0f7;
  --aut-body-font: Arial, Helvetica, sans-serif;
  --aut-title-font: Georgia, "Times New Roman", serif;
  --aut-arabic-font: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
}

/* Shared public typography. Keep OJS icons and visibility utilities intact. */
.main-header,
.main-header + .container,
.site-footer,
#loginModal {
  font-family: var(--aut-body-font);
  color: var(--aut-text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.main-header + .container {
  max-width: 1180px;
  margin-top: 36px;
  margin-bottom: 56px;
  background-color: #fff;
}

.main-header + .container p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.main-header + .container :is(ul, ol) {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-inline-start: 1.5rem;
}

.main-header + .container li {
  margin-bottom: 0.45rem;
  font-size: 16px;
  line-height: 1.7;
}

.main-header + .container :is(h1, h2, h3, h4, h5, h6) {
  color: var(--aut-navy);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.main-header + .container h1 {
  font-family: var(--aut-title-font);
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 24px;
}

.main-header + .container h2 {
  font-family: var(--aut-title-font);
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.main-header + .container h3 {
  font-family: var(--aut-body-font);
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 14px;
}

.main-header + .container :is(h4, h5, h6) {
  font-family: var(--aut-body-font);
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 12px;
}

.main-header + .container strong {
  font-weight: 700;
}

.main-header + .container a:not(.btn) {
  color: var(--aut-blue);
  text-underline-offset: 3px;
}

.main-header + .container a:not(.btn):hover {
  color: var(--aut-navy);
  text-decoration: underline;
}

.main-header + .container :is(a, button, input, select, textarea):focus-visible,
.main-header :is(a, button):focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #b97910;
  outline-offset: 3px;
}

/* Masthead and navigation: retain Bootstrap/OJS collapse and dropdown logic. */
.main-header {
  background-color: #fff;
  padding-top: 12px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--aut-border);
}

.main-header > .container {
  max-width: 1180px;
}

.main-header .navbar-logo {
  margin-top: 18px;
  margin-bottom: 24px;
}

.main-header .navbar-logo-text {
  font-family: var(--aut-title-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aut-navy);
  max-width: 980px;
  margin-inline: auto;
  text-decoration: none;
}

.main-header .navbar-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.main-header .navbar {
  background-color: var(--aut-navy);
  border-radius: 6px 6px 0 0;
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.main-header .navbar :is(.nav-link, .navbar-brand) {
  font-family: var(--aut-body-font);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.main-header .navbar .nav-link {
  padding: 12px 18px;
  border-radius: 4px;
}

.main-header .navbar .nav-link:is(:hover, :focus),
.main-header .navbar .nav-item.active > .nav-link {
  color: #fff;
  background-color: #19385d;
}

.main-header .navbar-toggler {
  background-color: #fff;
  border: 1px solid var(--aut-border);
  border-radius: 4px;
}

.main-header .dropdown-menu {
  background-color: #fff;
  color: var(--aut-text);
  border: 1px solid var(--aut-border);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgb(11 30 58 / 12%);
  padding: 6px;
}

.main-header .dropdown-item {
  color: var(--aut-navy);
  font-family: var(--aut-body-font);
  font-size: 14px;
  line-height: 1.6;
  padding: 9px 14px;
  border-radius: 3px;
}

.main-header .dropdown-item:is(:hover, :focus) {
  background-color: var(--aut-head);
  color: var(--aut-navy);
}

.main-header :is(.language-toggle, #userNav) a,
.main-header .language-toggle .btn {
  font-size: 13px;
}

/* Tables on public pages: readable cell padding, headers and row separation. */
.main-header + .container table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 22px 0 28px;
  background-color: #fff;
  font-family: var(--aut-body-font);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--aut-border);
}

.main-header + .container table :is(th, td) {
  border: 1px solid var(--aut-border);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top;
  text-align: start;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.main-header + .container table th {
  background-color: var(--aut-head);
  color: var(--aut-navy);
  font-weight: 700;
}

.main-header + .container table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

.main-header + .container table :is(p, li, a) {
  font-size: inherit;
  line-height: inherit;
}

.main-header + .container table p:last-child {
  margin-bottom: 0;
}

/* Existing author guidelines use bold paragraphs rather than heading tags. */
.main-header + .container .submissions-author-guidelines {
  padding-top: 6px;
  color: var(--aut-text);
}

.main-header + .container .submissions-author-guidelines > p > strong:only-child {
  color: var(--aut-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.main-header + .container .submissions-author-guidelines > p:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.main-header + .container .submissions-author-guidelines > p > br:only-child {
  line-height: 0.4;
}

.main-header + .container .submissions-author-guidelines > h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--aut-border);
}

/* Issue covers and article listings: preserve content, columns and aspect ratio. */
.main-header + .container .homepage-issue-header {
  background-color: var(--aut-pale);
  border: 1px solid var(--aut-border);
  border-radius: 8px;
  padding: 24px 12px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.main-header + .container .homepage-issue-description-wrapper {
  padding: 20px 24px;
}

.main-header + .container .homepage-issue-cover {
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 16px rgb(11 30 58 / 12%);
}

.main-header + .container .homepage-issue-identifier {
  font-family: var(--aut-title-font);
  font-size: 30px;
  line-height: 1.35;
  color: var(--aut-navy);
}

.main-header + .container .homepage-issue-description .h2 {
  font-family: var(--aut-title-font);
  font-size: 24px;
  line-height: 1.4;
  color: var(--aut-navy);
}

.main-header + .container .article-summary {
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--aut-border);
}

.main-header + .container .article-summary-title {
  font-family: var(--aut-title-font);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 12px;
}

.main-header + .container :is(.article-summary-authors, .article-summary-pages,
  .homepage-issue-published, .article-details-published) {
  font-family: var(--aut-body-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--aut-muted);
}

.main-header + .container .article-details-fulltitle {
  font-size: 32px;
  line-height: 1.35;
}

.main-header + .container .article-details-sidebar {
  padding: 20px;
  background-color: var(--aut-pale);
  border: 1px solid var(--aut-border);
  border-radius: 6px;
}

.main-header + .container .article-details-block {
  margin-bottom: 28px;
}

.main-header + .container .article-details-heading {
  font-family: var(--aut-body-font);
  font-size: 18px;
  font-weight: 700;
}

/* Buttons and form fields. Do not override display, disabled state or behavior. */
.main-header + .container .btn {
  font-family: var(--aut-body-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 4px;
  padding: 10px 16px;
}

.main-header + .container .btn-primary {
  background-color: var(--aut-navy);
  border-color: var(--aut-navy);
  color: #fff;
}

.main-header + .container .btn-primary:is(:hover, :focus) {
  background-color: #19385d;
  border-color: #19385d;
  color: #fff;
}

.main-header + .container :is(input, select, textarea),
#loginModal :is(input, select, textarea) {
  font-family: var(--aut-body-font);
  font-size: 16px;
}

/* Footer and its native sidebar blocks. Keep all links and PKP attribution. */
.site-footer {
  background-color: var(--aut-navy);
  color: #e8eef6;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 4px solid #2d567e;
}

.site-footer :is(p, li, .content) {
  font-family: var(--aut-body-font);
  font-size: 14px;
  line-height: 1.75;
  color: #e8eef6;
}

.site-footer a {
  color: #e6f1ff;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer :is(h2, h3, .title) {
  font-family: var(--aut-body-font);
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer .site-footer-sidebar {
  padding-bottom: 24px;
  border-bottom: 1px solid #3c506b;
}

.site-footer > .site-footer-content {
  padding-top: 24px;
}

.site-footer .footer-brand-image {
  background-color: #fff;
  padding: 6px;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

/* Arabic font stack; direction and column behavior remain controlled by OJS. */
html:lang(ar) :is(.main-header, .main-header + .container, .site-footer, #loginModal),
html:lang(ar) .main-header :is(.navbar-logo-text, .nav-link, .dropdown-item),
html:lang(ar) .main-header + .container :is(h1, h2, h3, h4, h5, h6,
  .h1, .h2, .article-summary-title, .homepage-issue-identifier,
  .article-summary-authors, .article-summary-pages, .homepage-issue-published,
  .article-details-published, table, .btn, input, select, textarea),
html:lang(ar) .site-footer :is(p, li, .content, h2, h3, .title),
html:lang(ar) #loginModal :is(input, select, textarea) {
  font-family: var(--aut-arabic-font);
  letter-spacing: normal;
}

html:lang(ar) .main-header + .container :is(p, li) {
  line-height: 1.9;
}

html:lang(ar) .main-header + .container table :is(th, td, p, li) {
  line-height: 1.75;
}

/* Small screens: preserve mobile menu, content and scrollable wide tables. */
@media (max-width: 767px) {
  .main-header .navbar-logo-text {
    font-size: 23px;
    line-height: 1.4;
  }

  .main-header .navbar-logo {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .main-header + .container {
    margin-top: 24px;
    margin-bottom: 36px;
  }

  .main-header + .container :is(h1, .article-details-fulltitle,
    .homepage-issue-identifier) {
    font-size: 26px;
  }

  .main-header + .container :is(h2, .homepage-issue-description .h2) {
    font-size: 22px;
  }

  .main-header + .container .article-summary-title {
    font-size: 20px;
  }

  .main-header + .container .homepage-issue-description-wrapper {
    padding: 18px 12px;
  }

  .main-header + .container table {
    display: block;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .main-header + .container table :is(th, td) {
    padding: 9px;
    font-size: 13px;
  }

  .main-header + .container .article-details-sidebar {
    margin-top: 16px;
    margin-bottom: 24px;
  }
}

@media print {
  .main-header + .container {
    max-width: none;
    margin: 0;
  }

  .main-header + .container table {
    display: table;
    overflow: visible;
    font-size: 11px;
  }

  .main-header + .container table :is(th, td) {
    font-size: 11px;
    padding: 6px;
  }

  .main-header + .container :is(h1, h2, h3, h4) {
    break-after: avoid;
  }

  .main-header + .container tr {
    break-inside: avoid;
  }
}


/* Version 1.1: contrast on navy notices, plus LTR numeric ranges in Arabic. */
.main-header + .container .alert-primary {
  background-color: var(--aut-navy);
  border-color: var(--aut-navy);
  color: #fff;
}

.main-header + .container .alert-primary a:not(.btn),
.main-header + .container .alert-primary a:not(.btn):is(:hover, :focus) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The first direct guidelines table is the approved article-limit table.
   Only its three numeric columns change direction; Arabic labels stay RTL. */
html:lang(ar) .main-header + .container .submissions-author-guidelines
  > table:first-of-type > :is(thead, tbody, tfoot) > tr
  > :is(th, td):nth-child(n+2):nth-child(-n+4) {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

