@import url("../fonts/Be_Vietnam_Pro/font.css");

:root {
  --primary-color: #0b4982;
  --primary-darker-color: #093966;
  --secondary-color: #f6bd3c;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
    box-sizing: border-box;
}
em, i {
    font-style: italic;
}
b, strong {
    font-weight: bold;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, div {
    display: block;
}
html body {
    margin: 0;
    padding: 0;
    background: #e5ecf0;
	line-height: 1;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
}
h1, h2, h3, h4, h5, h6, a, p, span { padding-top: 0.3em; }

h1 {
    font-size: 1.4em;
}
h2 {
    font-size: 1.3em;
}
h3 {
    font-size: 1.2em;
}
h4 {
    font-size: 1.1em;
}
h5 {
    font-size: 1em;
}
h6 {
    font-size: 0.85em;
}
.font-size-normal {
    font-size: 14px;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

.huaf_container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .huaf_container {
        width: 100%;
        padding: 0 10px;
    }
}

.huaf_page_header_banner_wrapper {
    background: var(--primary-color);
}

.huaf_page_header_banner {
    align-content: space-between;
    display: grid;
    grid-template-columns: 800px 1fr;
    grid-template-rows: auto 1fr;

    grid-template-areas:
        "journal_logo institution_logo"
        "journal_logo menu_wrapper"
}

.huaf_journal_logo {
    grid-area: journal_logo;
    display: flex;
    align-items: center;
}

.huaf_institution_logo {
    grid-area: institution_logo;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 0;
}

.huaf_institution_logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
}

.huaf_menu_wrapper { 
    grid-area: menu_wrapper;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.huaf_navigation_user {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.huaf_navigation_user li.item {
    position: relative;
}

.huaf_navigation_user li.item a {
    color: #FFF;
    display: block;
    font-weight: 600;
    padding: 0.4em 0.6em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.huaf_navigation_user li.item a:hover,
.huaf_navigation_user li.item a:focus {
    color: var(--secondary-color);
}

.huaf_navigation_user ul {
    display: none;
    background: #FFF;
    list-style-type: none;
    margin: 0;
    padding: 0;
    min-width: 160px;
    border: solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-width: 0 1px 1px;
}

.huaf_navigation_user li:hover ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
}

.huaf_navigation_user ul li.item a {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: none;
    white-space: normal;
}

.huaf_navigation_user ul li.item a:hover,
.huaf_navigation_user ul li.item a:focus {
    color: var(--primary-darker-color);
}

/* Caret for menu items that have a submenu */
.huaf_navigation_user > li.item:has(> ul) > a::after,
.huaf_primary_menu > li:has(> ul) > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    vertical-align: middle;
}

/* Unread tasks badge in the user menu */
.huaf_navigation_user .task_count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: 0.5em;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #333;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.huaf_main_navigation_wrapper {
    background: #FFF;
    border-bottom: 2px solid var(--primary-color);
}

.huaf_main_navigation {
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.huaf_primary_menu {
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.huaf_primary_menu li {
    padding: 0 0px;
    position: relative;
}

.huaf_primary_menu li a,
.huaf_new_submission_link {
    color: var(--primary-color);
    display: block;
    font-weight: 500;
    padding: 0.6em 0.6em 0.45em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}


.huaf_primary_menu ul {
    display: none;
    background: white;

}

.huaf_primary_menu li:hover ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
}

.huaf_content {
    background: #FFF;
    border: solid color-mix(in srgb, var(--primary-color) 20%, transparent);;
    border-width: 0 1px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 10px;
}

@media (max-width: 768px) {
    .huaf_content {
        grid-template-columns: 1fr;
    }
}

.huaf_main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.huaf_page {
    margin-top: 10px;
    margin-bottom: 10px;
}

.huaf_page_title {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Phần tử chỉ hiển thị với screen reader (ẩn khỏi giao diện) */
.huaf_screen_reader {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Sidebar (after tapchidhnlhue.vn panel layout) */
.huaf_sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.huaf_sidebar .huaf_block {
    border: 1px solid var(--primary-color);
    border-radius: 3px;
}

.huaf_sidebar .huaf_block-heading {
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 2px 2px 0 0;
}

.huaf_sidebar .huaf_block-heading h3 {
    margin: 0;
    padding: 0;
    color: #FFF;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.huaf_sidebar .huaf_block-content {
    padding: 5px 0;
}

.huaf_sidebar .huaf_block-footer {
    padding: 10px 15px;
    text-align: center;
}

.huaf_sidebar .huaf_block-footer a {
    padding: 0;
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
}

/* Announcements block */
.huaf_announcements_block .huaf_announcement_item {
    padding: 3px 10px;
}

.huaf_announcements_block .huaf_announcement_item:not(:last-child) {
    border-bottom: 1px solid #efefef;
}

.huaf_announcements_block .huaf_announcement_item a {
    display: block;
    padding: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    text-align: justify;
    text-decoration: none;
}

.huaf_announcements_block .huaf_announcement_item a:hover {
    color: var(--primary-color);
}

.huaf_announcement_date {
    margin: 3px 0;
    padding: 0;
    text-align: right;
    font-style: italic;
    font-size: 13px;
    color: #929292;
}

/* Published issues block */
.huaf_issues_block .huaf_issue_summary {
    margin-top: 5px;
    padding: 0 10px;
}

.huaf_issues_block .huaf_issue_cover {
    display: block;
    padding: 0;
    line-height: 0;
}

.huaf_issues_block .huaf_issue_cover img {
    width: 100%;
    height: auto;
}

.huaf_issues_block .huaf_issue_title {
    margin: 5px 0 10px;
    text-align: center;
}

.huaf_issues_block .huaf_issue_title a {
    padding: 0;
    color: #000;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.huaf_issues_block .huaf_issue_title a:hover {
    color: var(--primary-color);
}

/* Sidebar search block */
.huaf_search_block .huaf_block-content {
    padding: 10px;
}

.huaf_sidebar_search_form {
    display: flex;
    gap: 6px;
}

.huaf_sidebar_search_form input[type="search"] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 3px;
    font: inherit;
    line-height: 1.4;
}

.huaf_sidebar_search_form input[type="search"]:focus {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    border-color: var(--primary-color);
}

.huaf_sidebar_search_form button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background: var(--primary-color);
    color: #FFF;
    cursor: pointer;
}

.huaf_sidebar_search_form button:hover {
    background: var(--primary-darker-color);
}

.huaf_sidebar_search_form button svg {
    display: block;
    fill: currentColor;
}

/* Breadcrumbs */
.huaf_breadcrumbs {
    margin-bottom: 15px;
    line-height: 1.5;
}

.huaf_breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 7px 12px;
    list-style: none;
    background: #f2f6f9;
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    border-left: 3px solid var(--primary-color);
    border-radius: 2px;
}

.huaf_breadcrumbs li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.huaf_breadcrumbs a,
.huaf_breadcrumbs span {
    padding: 0;
}

.huaf_breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.huaf_breadcrumbs a:hover,
.huaf_breadcrumbs a:focus {
    color: var(--primary-darker-color);
    text-decoration: underline;
}

.huaf_breadcrumb_separator {
    margin: 0 8px;
    color: #9db3c4;
}

.huaf_breadcrumb_current > span[aria-current] {
    color: #333;
    font-weight: 600;
}

/* Pagination (shared component: issue archive, catalog category, search) */
.huaf_pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.huaf_pagination a {
    padding: 6px 14px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background: #FFF;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.huaf_pagination a:hover,
.huaf_pagination a:focus {
    background: var(--primary-color);
    color: #FFF;
}

.huaf_pagination_current {
    padding: 0;
    color: #333;
    font-weight: 500;
}

/* Issue item (dùng chung cho trang Issue Archive và phần đầu trang Issue view).
   Scope theo .huaf_issues_archive và .huaf_issue_toc_heading để KHÔNG ảnh
   hưởng .huaf_issue_summary bên trong sidebar (.huaf_issues_block) */
.huaf_issues_archive .huaf_issue_summary,
.huaf_issue_toc_heading {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
        "cover title"
        "cover published"
        "cover description"
        "cover galleys";
    column-gap: 15px;
    row-gap: 4px;
}

/* Đầu trang issue view không có hàng title riêng */
.huaf_issue_toc_heading {
    grid-template-areas:
        "cover published"
        "cover description"
        "cover galleys";
}

.huaf_issues_archive .huaf_issue_cover,
.huaf_issue_toc_heading .huaf_issue_cover {
    grid-area: cover;
    grid-row: 1 / span 19;
    align-self: start;
    width: 100%;
    line-height: 0;
}

.huaf_issues_archive .huaf_issue_cover img,
.huaf_issue_toc_heading .huaf_issue_cover img {
    display: block;
    width: 100%;
    height: auto;
}

.huaf_issues_archive .huaf_issue_title {
    grid-area: title;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    margin: 0;
    padding: 0;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.huaf_issues_archive .huaf_issue_title a {
    padding: 0;
    color: var(--primary-color);
    text-decoration: none;
}

.huaf_issues_archive .huaf_issue_title a:hover {
    color: var(--primary-darker-color);
}

.huaf_issues_archive .huaf_issue_series {
    padding: 0;
    font-style: italic;
    white-space: nowrap;
}

.huaf_issues_archive .huaf_issue_published,
.huaf_issue_toc_heading .huaf_issue_published {
    grid-area: published;
    padding: 0;
    text-align: left;
}

.huaf_issues_archive .huaf_issue_description,
.huaf_issue_toc_heading .huaf_issue_description {
    grid-area: description;
    padding: 0;
    line-height: 1.6;
    text-align: justify;
}

/* Pub id / DOI: số lượng thay đổi theo plugin nên không đặt area cố định,
   xếp theo cột thông tin ngay sau các area đã định nghĩa */
.huaf_issues_archive .huaf_issue_pub_id,
.huaf_issue_toc_heading .huaf_issue_pub_id {
    grid-column: 2;
    padding: 0;
    line-height: 1.5;
}

.huaf_issues_archive .huaf_issue_pub_id_type,
.huaf_issue_toc_heading .huaf_issue_pub_id_type {
    font-weight: 700;
}

.huaf_issues_archive .huaf_issue_pub_id_value a,
.huaf_issue_toc_heading .huaf_issue_pub_id_value a {
    padding: 0;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.huaf_issues_archive .huaf_issue_pub_id_value a:hover,
.huaf_issue_toc_heading .huaf_issue_pub_id_value a:hover {
    color: var(--primary-darker-color);
    text-decoration: underline;
}

.huaf_issues_archive .huaf_issue_galleys,
.huaf_issue_toc_heading .huaf_issue_galleys {
    grid-area: galleys;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.huaf_issue_toc_heading .huaf_issue_galleys_label {
    margin: 0;
    padding: 0;
    font-size: 1em;
    font-weight: 700;
}

.huaf_issue_toc_heading .huaf_galleys_links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.huaf_issues_archive .huaf_galley_link,
.huaf_issues_archive .huaf_galley_link_supplementary,
.huaf_issue_toc_heading .huaf_galley_link,
.huaf_issue_toc_heading .huaf_galley_link_supplementary {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background: var(--primary-color);
    color: #FFF;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}

.huaf_issues_archive .huaf_galley_link:hover,
.huaf_issues_archive .huaf_galley_link_supplementary:hover,
.huaf_issue_toc_heading .huaf_galley_link:hover,
.huaf_issue_toc_heading .huaf_galley_link_supplementary:hover {
    background: var(--primary-darker-color);
}

@media (max-width: 600px) {
    .huaf_issues_archive .huaf_issue_summary,
    .huaf_issue_toc_heading {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "cover"
            "title"
            "published"
            "description"
            "galleys";
    }

    .huaf_issue_toc_heading {
        grid-template-areas:
            "cover"
            "published"
            "description"
            "galleys";
    }

    .huaf_issues_archive .huaf_issue_cover,
    .huaf_issue_toc_heading .huaf_issue_cover {
        grid-row: auto;
        justify-self: center;
        width: 120px;
    }

    .huaf_issues_archive .huaf_issue_pub_id,
    .huaf_issue_toc_heading .huaf_issue_pub_id {
        grid-column: 1;
    }
}

/* Form chung (login, đăng ký, quên mật khẩu, mua subscription...) */
.huaf_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Màu notification theo ngữ nghĩa: mặc định (notice) là primary,
   success/warning/error dùng màu chuẩn riêng */
.huaf_notification {
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
    background: #f2f6f9;
    line-height: 1.5;
}

.huaf_notification_success {
    border-color: color-mix(in srgb, #2e7d32 25%, transparent);
    border-left-color: #2e7d32;
    background: #f1f8f1;
}

.huaf_notification_warning {
    border-color: color-mix(in srgb, #9a6700 25%, transparent);
    border-left-color: #9a6700;
    background: #fdf6e3;
}

.huaf_notification_error {
    border-color: color-mix(in srgb, #c62828 25%, transparent);
    border-left-color: #c62828;
    background: #fdf2f2;
}

.huaf_form_error {
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, #c62828 25%, transparent);
    border-left: 3px solid #c62828;
    border-radius: 3px;
    background: #fdf2f2;
    line-height: 1.5;
}

.huaf_form_fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.huaf_form_field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.huaf_form_label {
    font-weight: 700;
    line-height: 1.4;
}

/* Link trong label (như "Quên mật khẩu?") không nhận padding-top của reset
   chung để thẳng hàng với chữ label */
.huaf_form_label a,
.huaf_form_label span,
.huaf_form_optin label a,
.huaf_form_optin label span,
.huaf_register_context_optin label a,
.huaf_register_context_optin label span,
.huaf_register_context_privacy label a,
.huaf_register_context_privacy label span {
    padding: 0;
}

/* Link "Quên mật khẩu?" nằm ngay dưới input mật khẩu */
.huaf_form_password a {
    display: inline-block;
    margin-top: 8px;
}

.huaf_form_required {
    color: var(--primary-color);
}

/* Style control dùng chung cho mọi form (login, đăng ký, purchase...) —
   cùng một rule để chiều rộng/khoảng cách luôn đồng nhất.
   box-sizing khai báo tường minh vì reset chung không bao gồm form controls */
.huaf_form input[type="text"],
.huaf_form input[type="email"],
.huaf_form input[type="password"],
.huaf_form input[type="search"],
.huaf_form input[type="url"],
.huaf_form select,
.huaf_form textarea,
.huaf_register_field input[type="text"],
.huaf_register_field input[type="email"],
.huaf_register_field input[type="password"],
.huaf_register_field select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 3px;
    font: inherit;
    line-height: 1.4;
}

.huaf_form input:focus,
.huaf_form select:focus,
.huaf_form textarea:focus,
.huaf_register_field input:focus,
.huaf_register_field select:focus {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    border-color: var(--primary-color);
}

.huaf_form_checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.huaf_form_checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.huaf_form_buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

/* Button dùng chung (submit form, link dạng button, action) */
.huaf_button,
.huaf_form_submit_button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background: var(--primary-color);
    color: #FFF;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.huaf_button:hover,
.huaf_form_submit_button:hover {
    background: var(--primary-darker-color);
    color: #FFF;
}

.huaf_action,
.huaf_form_register_link,
.huaf_form_login_link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.huaf_action:hover,
.huaf_form_register_link:hover,
.huaf_form_login_link:hover {
    color: var(--primary-darker-color);
    text-decoration: underline;
}

/* Trang message / error */
.huaf_page_description {
    line-height: 1.6;
}

/* OpenID plugin: nút đăng nhập/đăng ký bằng provider (dùng chung cho cả
   trang login và register do plugin render) */
.huaf_openid_section_title {
    margin: 20px 0 10px;
    padding: 0;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.huaf_openid_legacy_hint {
    margin-top: 10px;
    line-height: 1.6;
}

.huaf_openid_providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.huaf_openid_provider a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius: 3px;
    background: #FFF;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.huaf_openid_provider a:hover {
    border-color: var(--primary-color);
    color: var(--primary-darker-color);
}

.huaf_openid_provider img {
    display: block;
    width: auto;
    height: 28px;
}

/* OpenID plugin: step 2 (hoàn tất đăng ký / liên kết tài khoản) */
.huaf_openid_choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 15px;
    padding: 0;
    list-style: none;
}

.huaf_openid_choice_link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.huaf_openid_choice_link:hover {
    background: var(--primary-color);
    color: #FFF;
}

.huaf_openid_step2_panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.huaf_back_link {
    margin-top: 15px;
}

.huaf_back_link a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.huaf_back_link a:hover {
    color: var(--primary-darker-color);
    text-decoration: underline;
}

/* Nội dung rich text dùng chung cho các trang tĩnh (about, submissions,
   editorial history, navigation menu item, about publishing system).
   LƯU Ý: phải có tiền tố div. vì OJS tự thêm class huaf_page_<page> vào
   thẻ BODY (vd body.huaf_page_about), selector không có div. sẽ match cả
   header/menu/footer. */
div.huaf_page_about,
div.huaf_page_submissions,
div.huaf_page_editorial_history,
div.huaf_page_nav_menu_item,
div.huaf_page_about_publishing_system {
    line-height: 1.6;
}

div.huaf_page_about p:not(:last-child),
div.huaf_page_submissions p:not(:last-child),
div.huaf_page_editorial_history p:not(:last-child),
div.huaf_page_nav_menu_item p:not(:last-child),
div.huaf_page_about_publishing_system p:not(:last-child) {
    margin-bottom: 10px;
}

div.huaf_page_editorial_history h2,
div.huaf_page_nav_menu_item h2,
div.huaf_page_about_publishing_system h2 {
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

div.huaf_page_editorial_history h3,
div.huaf_page_nav_menu_item h3,
div.huaf_page_about_publishing_system h3 {
    margin: 12px 0 6px;
    font-weight: 700;
    line-height: 1.3;
}

div.huaf_page_about ul:not([class]),
div.huaf_page_submissions ul:not([class]),
div.huaf_page_editorial_history ul:not([class]),
div.huaf_page_nav_menu_item ul:not([class]),
div.huaf_page_about_publishing_system ul:not([class]) {
    margin: 8px 0 12px;
    padding-left: 24px;
    list-style: disc;
}

div.huaf_page_about ol,
div.huaf_page_submissions ol,
div.huaf_page_editorial_history ol,
div.huaf_page_nav_menu_item ol,
div.huaf_page_about_publishing_system ol {
    margin: 8px 0 12px;
    padding-left: 24px;
    list-style: decimal;
}

div.huaf_page_about img,
div.huaf_page_submissions img,
div.huaf_page_editorial_history img,
div.huaf_page_nav_menu_item img,
div.huaf_page_about_publishing_system img {
    max-width: 100%;
    height: auto;
}

div.huaf_page_about a,
div.huaf_page_submissions a,
div.huaf_page_editorial_history a,
div.huaf_page_nav_menu_item a,
div.huaf_page_about_publishing_system a {
    color: var(--primary-color);
    text-decoration: none;
}

div.huaf_page_about a:hover,
div.huaf_page_submissions a:hover,
div.huaf_page_editorial_history a:hover,
div.huaf_page_nav_menu_item a:hover,
div.huaf_page_about_publishing_system a:hover {
    color: var(--primary-darker-color);
    text-decoration: underline;
}

/* Table dùng chung (subscriptions, user subscriptions...) */
.huaf_table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    line-height: 1.5;
}

.huaf_table th,
.huaf_table td {
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    vertical-align: top;
    text-align: left;
}

.huaf_table th {
    background: #f2f6f9;
    font-weight: 700;
}

/* Footer (after tapchidhnlhue.vn) */
.huaf_page_footer {
    background: var(--primary-color);
    color: #FFF;
    font-weight: 400;
}

.huaf_footer_header {
    background: var(--secondary-color);
    padding: 2px;
    margin-bottom: 20px;
}

.huaf_footer_info {
    padding-bottom: 10px;
}

.huaf_footer_info p {
    text-align: justify;
    line-height: 1.6;
}

.huaf_footer_info p:not(:last-child) {
    margin-bottom: 8px;
}

.huaf_footer_copyright p {
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--primary-darker-color);
    font-style: italic;
    line-height: 26px;
}
