/*
Theme Name: KJHSS
Author: Khazar Media
Description: Academic journal theme for Khazar Journal of Humanities and Social Sciences.
Version: 1.0.2
Requires at least: 6.0
Text Domain: jhss
*/

:root {
  --navy: #13243a;
  --navy-2: #1c3554;
  --wine: #7a3140;
  --wine-2: #9a4454;
  --paper: #f4f1eb;
  --card: #fffcf8;
  --ink: #1b232c;
  --muted: #5d6670;
  --line: #e3ddd4;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 80;
  background: var(--wine); color: #fff; padding: 8px 12px;
}
.skip:focus { left: 12px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.util {
  background: var(--navy);
  color: #c9d4e2;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.util .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 8px 0;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  isolation: isolate;
  background: #fbf8f3;
  border-bottom: 1px solid var(--line);
}
.mast {
  display: flex; align-items: center; gap: 18px;
  min-height: 88px; padding: 10px 0;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 14px; min-width: 0; }
.mark {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--navy); color: #f4efe6;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem; font-weight: 600; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600; line-height: 1.2;
}
.brand .short-name { display: none; }
.brand em {
  color: var(--wine); font-style: normal;
  font-size: .82rem; letter-spacing: .04em;
}
.mast-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-mini { display: flex; }
.search-mini input {
  width: 180px; border: 1px solid var(--line); background: #fff;
  padding: 8px 10px; font: inherit; color: var(--ink);
}
.search-mini button {
  border: 0; background: var(--navy); color: #f4efe6;
  padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600;
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; letter-spacing: .08em;
  text-transform: uppercase; font-size: .75rem; cursor: pointer;
  padding: 8px 12px;
}
.nav-main { background: var(--navy); position: relative; z-index: 2; }
.nav-main ul {
  display: flex; flex-wrap: nowrap; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-main li { position: relative; }
.nav-main a {
  display: block; text-decoration: none; color: #d5deea;
  padding: 12px 14px; font-size: .76rem;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.nav-main .menu-item-has-children > a::after { content: " ▾"; font-size: .65em; opacity: .7; }
.nav-main .sub-menu a::after { content: none; }
.nav-main .sub-menu {
  display: none; position: absolute; left: 0; top: 100%;
  flex-direction: column; min-width: 220px;
  background: var(--navy-2); padding: 8px 0; z-index: 30;
}
.nav-main li:hover > .sub-menu, .nav-main li:focus-within > .sub-menu { display: flex; }
.nav-main .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .9rem; }

.intro {
  background:
    linear-gradient(180deg, #ece6dc 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 42px;
}
.intro-grid {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start;
}
.kicker {
  margin: 0 0 10px; color: var(--wine);
  letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; font-weight: 600;
}
.intro h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600; line-height: 1.15; margin: 0 0 14px;
}
.intro p { max-width: 58ch; color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 10px 16px; font-size: .92rem; font-weight: 600;
  border: 1px solid transparent;
}
.btn-solid { background: var(--navy); color: #f4efe6; }
.btn-ghost { border-color: #c9c0b4; color: var(--navy); background: #fff; }
.facts {
  list-style: none; margin: 0; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--line);
}
.facts li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }

.section { padding: 52px 0; }
.section.alt { background: #ebe6de; border-top: 1px solid var(--line); }
.section h2, .page-main h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; line-height: 1.15;
}
.section h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 4px;
}
.section-head a { color: var(--wine); text-decoration: none; font-weight: 600; font-size: .92rem; }

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start;
}
.toc { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: block; text-decoration: none; padding: 18px 20px 16px; }
.toc a:hover { background: #f7f1e8; }
.toc h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35;
}
.by { margin: 0; color: var(--muted); font-size: .92rem; }
.doi { margin: 6px 0 0; font-size: .78rem; letter-spacing: .03em; color: var(--wine); }
.doi a { color: var(--wine); }

.rail { display: grid; gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line); padding: 18px 18px 16px;
}
.panel h2 { font-size: 1.15rem; margin: 0 0 8px; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.panel .btn { margin-top: 4px; }
.ku { max-width: 210px; margin-bottom: 12px; }
.chips { font-size: .88rem; line-height: 1.55; }

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.issue-card {
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; padding: 16px 16px 18px; min-height: 118px;
}
.issue-card:hover { border-color: var(--navy); }
.issue-card span {
  color: var(--wine); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.issue-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem; margin: 8px 0 0; font-weight: 600;
}

.page-main {
  padding: 40px 0 72px;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}
.page-main.wide { width: min(var(--max), calc(100% - 40px)); }
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { text-decoration: none; }
.page-main h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  margin: 0 0 18px;
}
.article-meta { margin: 0 0 22px; }
.article-meta .btn { margin-top: 8px; }
.entry { font-size: 1.05rem; }
.entry [style] { color: inherit !important; background: transparent !important; font-family: inherit !important; }
.entry a { color: var(--wine); }
.entry p, .entry li { margin: 0 0 1em; }
.entry h2, .entry h3 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 1.35em 0 .4em;
}
.entry img { margin: 1em 0; }
.entry table { width: 100% !important; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.4em; background: var(--card); }
.entry td, .entry th { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; width: auto !important; }
.entry iframe { max-width: 100%; }
.entry::after { content: ""; display: block; clear: both; }
.entry a[href$=".pdf"], .entry a[href*=".pdf"] {
  display: inline-flex; align-items: center;
  background: var(--navy); color: #f4efe6 !important;
  padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .92rem;
}

.is-issue-index .entry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  background: var(--card); border: 1px solid var(--line); padding: 6px 22px 10px;
}
.is-issue-index .entry a {
  display: block; text-decoration: none; color: var(--ink);
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.is-issue-index .entry a:hover { color: var(--wine); }
.is-editorial .entry table { background: var(--card); }

.result { padding: 16px 0; border-bottom: 1px solid var(--line); }
.result h3 { font-family: "Source Serif 4", Georgia, serif; margin: 0 0 6px; font-size: 1.2rem; }
.result h3 a { text-decoration: none; }
.result p { margin: 0; color: var(--muted); }
.pager { display: flex; gap: 16px; margin-top: 28px; }
.pager a { color: var(--wine); }

.cntctfrm_contact_form input[type="text"],
.cntctfrm_contact_form input[type="email"],
.cntctfrm_contact_form textarea,
.entry input, .entry textarea, .entry select {
  width: 100%; max-width: 520px; border: 1px solid var(--line);
  background: #fff; padding: 10px 12px; font: inherit; margin: 0 0 12px;
}
.cntctfrm_contact_form .cntctfrm_contact_submit,
.entry input[type="submit"] {
  background: var(--navy); color: #fff; border: 0;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
}

.site-footer {
  background: var(--navy); color: #c5d0de;
  padding: 40px 0 24px; font-size: .92rem;
}
.foot {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: start;
  border-bottom: 1px solid #2a415e; padding-bottom: 22px; margin-bottom: 16px;
}
.foot strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem; color: #f4efe6; display: block; margin-bottom: 8px;
}
.foot a { color: #e8c4c9; text-decoration: none; }
.foot-logo {
  justify-self: end;
  background: #fff;
  padding: 10px 12px;
}
.foot-logo img { width: 210px; height: auto; }
.copy { color: #8ea0b5; font-size: .8rem; }

@media (max-width: 980px) {
  .intro-grid, .layout { grid-template-columns: 1fr; }
  .issue-grid { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; justify-self: start; }
  .nav-toggle { display: block; }
  .search-mini { display: none; }
  .nav-main { display: none; }
  body.nav-open .nav-main { display: block; }
  .nav-main ul { flex-direction: column; flex-wrap: wrap; }
  .nav-main .sub-menu { position: static; display: flex; background: transparent; padding-left: 12px; }
}
@media (max-width: 760px) {
  .brand .mark { width: 44px; height: 44px; }
  .brand .full-name { display: none; }
  .brand .short-name { display: block; font-size: 1.2rem; }
  .issue-grid { grid-template-columns: 1fr; }
  .is-issue-index .entry { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .section { padding: 36px 0; }
  .util { display: none; }
}
