/* Academic Forum 1.1 — restrained spacing, clear hierarchy and consistent controls. */
:root {
  --aft-control-height: 3rem;
  --aft-section-gap: clamp(2.5rem, 4vw, 3.5rem);
  --aft-radius: 6px;
  --aft-hero-image: url('../img/academic-library-header.webp');
}
#afj-captcha { width:100%; margin-block:1rem; min-height:65px; }
#afj-captcha-status { margin-bottom:1rem; }
.form-panel button:disabled { opacity:.65; cursor:wait; }

#sadrzaj > .section { padding-block: var(--aft-section-gap); }
#sadrzaj > .section.section-flush { padding-top: 0; }
.btn { min-height: var(--aft-control-height); line-height: 1.25; text-align: center; }
.btn-row { align-items: stretch; gap: .75rem; }
#sadrzaj .btn-row > .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--aft-control-height);
  padding: .85rem 1.25rem;
  border: 1px solid #bcc9d9;
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  font: 600 var(--fs-sm)/1.25 var(--sans);
  text-decoration: none;
  text-align: center;
}
#sadrzaj .btn-row > .text-link:hover { border-color: var(--navy); background: #f1f5fa; }
.section-head { align-items: center; gap: .75rem 1.5rem; }
.section-head > .text-link { flex-shrink: 0; }

/* Keep the original homepage banner and make the introduction more concise. */
.aft-forum-home .lede { padding-block: clamp(1.75rem, 3vw, 2.75rem) 1.5rem; }
.aft-forum-home .lede .wrap { gap: clamp(1.75rem, 4vw, 3.5rem); }
.aft-forum-home .lede-text { gap: 1rem; }
.aft-forum-home .lede h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.018em;
}
.aft-forum-home .lede-text p { font-size: clamp(1.03rem, 1.35vw, 1.18rem); line-height: 1.6; }
.aft-forum-home .lede-text .btn-row { margin-top: .25rem; }
.aft-forum-home .topics li { padding-block: .75rem; }
.aft-forum-home .topics li b { font-size: 1.1rem; }
.aft-forum-home .topics li span { font-size: .86rem; }
.aft-forum-home #sadrzaj > .lede + .section { padding-top: 1.5rem; }
.aft-forum-home .post { padding-block: 1.3rem; }

/* Academic photographic headers, with an opaque text zone and no fixed heights. */
.page-head,
.article-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 3px solid var(--gold);
  background-color: #071d35;
  background-image: linear-gradient(90deg, rgba(3,20,40,.97) 0%, rgba(3,20,40,.91) 48%, rgba(3,20,40,.73) 75%, rgba(3,20,40,.65) 100%), var(--aft-hero-image);
  background-position: center, center 58%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #f2f6fb;
}
.page-head .wrap,
.article-head .wrap { gap: .85rem; }
.page-head h1,
.article-head h1 {
  max-width: 24ch;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.page-head .lead { max-width: 46rem; color: #eff4fa; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.6; }
.page-head .eyebrow,
.article-head .eyebrow { color: #e8d6ae; letter-spacing: .12em; }
.page-head .crumbs,
.page-head .crumbs a,
.article-head .meta { color: #d9e4f0; }
.page-head .text-link,
.page-head .wrap > p > a,
.article-head .text-link { color: #fff; text-decoration-color: #dbc28e; }
.page-head .topic,
.article-head .topic { color: #efd8a9; }
.page-head .btn { background: #fff; border-color: #fff; color: var(--navy); }
.page-head .btn:hover { background: #eaf0f8; }
.page-head .status-badge { background: #edf3fb; color: var(--navy); }
.article-head .meta { max-width: 46rem; }
.single-aft_media .page-head h1 { max-width: 36ch; font-size: clamp(1.85rem,3.2vw,2.7rem); }

/* Equal-size author actions, arranged as one clear toolbar. */
.aft-view-dashboard .page-head { padding-bottom: clamp(3rem, 5vw, 4rem); }
.aft-view-dashboard #sadrzaj > .page-head + .section { padding-top: 0; }
.aft-view-dashboard .page-head + .section > .wrap > .btn-row {
  position: relative;
  margin-top: -1.1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #d5deea;
  border-radius: var(--aft-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8,31,58,.055);
  align-items: stretch;
}
.aft-view-dashboard #sadrzaj .btn-row > a { flex: 0 1 12rem; min-width: 0; min-height: var(--aft-control-height); }
.aft-view-dashboard .page-head + .section > .wrap > .btn-row > a:first-child { border-color: var(--navy); }

/* Consistent form surfaces and reading widths. */
.account-panel { background: #fff; border-top: 4px solid var(--navy); border-radius: var(--aft-radius); box-shadow: 0 10px 30px rgba(7,29,53,.04); }
.account-panel > h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.form-panel { border-radius: var(--aft-radius); background: #f7f9fc; }
form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
form select { min-height: var(--aft-control-height); }
form input[type=file] { min-height: var(--aft-control-height); }
form textarea { line-height: 1.6; }
.archive-filters { margin-top: 1.5rem; gap: .85rem; }
.archive-filters label { min-width: 0; }
.archive-filters button { min-height: var(--aft-control-height); height: auto; }
.journal-filters .filter-selects { align-items: stretch; }
.journal-filters select { min-height: 2.65rem; }
.journal-filters .btn-small { min-height: 2.65rem !important; }
.journal-masthead { background-image: linear-gradient(90deg,#fff 30%,rgba(255,255,255,.96) 57%,rgba(255,255,255,.8)),var(--aft-hero-image); background-position: center,right center; }
.aside-card { min-width: 0; }
.reading-wrap { width: 100%; }
.journal-table a,
.detail-list dd,
.conversation-message,
.rich-editable { overflow-wrap: anywhere; }
.journal-table { font-variant-numeric: tabular-nums; }

/* Public media archive and concise homepage coverage cards. */
.aft-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.aft-media-grid-preview { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.aft-media-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--aft-radius); background: #fff; }
.aft-media-copy { display: flex; flex-direction: column; gap: .85rem; flex: 1; padding: 1.4rem; }
.aft-media-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font: 600 .76rem/1.5 var(--sans); color: #7a5e26; }
.aft-media-meta time { font-weight: 400; color: var(--muted); }
.page-head .aft-media-meta { color: #ead6ab; }
.page-head .aft-media-meta time { color: #d9e4f0; }
.aft-media-card h2 { font-size: clamp(1.35rem,2.3vw,1.8rem); line-height: 1.24; overflow-wrap: anywhere; }
.aft-media-card h3 { font-size: 1.3rem; line-height: 1.27; overflow-wrap: anywhere; }
.aft-media-grid-preview h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.aft-media-card h2 a,
.aft-media-card h3 a { color: var(--navy); text-decoration: none; }
.aft-media-card h2 a:hover,
.aft-media-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.aft-media-card p { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.aft-media-more { align-self: flex-start; margin-top: auto; padding-top: .25rem; font-size: .84rem; }
.aft-media-image { display: block; aspect-ratio: 16/8; overflow: hidden; }
.aft-media-image img { width: 100%; height: 100%; object-fit: cover; }
.aft-source-panel { display: grid; justify-items: start; gap: 1rem; padding: 1.5rem; background: var(--paper); border-left: 3px solid var(--gold); border-radius: var(--aft-radius); }
.aft-source-panel h2 { font-size: 1.6rem; }
.aft-source-panel .btn { max-width: 100%; }

.admin-bar .site-header { top: 32px; }
@media (min-width:1100px) and (max-width:1199px) {
  .nav-toggle { display:inline-flex; }
  .site-nav { display:none;position:absolute;left:0;right:0;top:100%;margin:0;background:white;border-bottom:1px solid var(--rule);padding:.75rem 40px;box-shadow:0 8px 15px #012a5d0a; }
  .site-nav.is-open { display:block; }
  .site-nav ul { flex-direction:column;gap:0; }
  .site-nav a { padding:.8rem 0;border-bottom:1px solid var(--rule); }
}
@media (max-width:959px) {
  .aft-forum-home .lede h1 { max-width: 28ch; }
  .aft-forum-home .lede .wrap { gap: 2rem; }
  .aft-media-grid-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .aft-media-grid-preview .aft-media-card:last-child { grid-column: 1/-1; }
}
@media (max-width:782px) { .admin-bar .site-header { top:46px; } }
@media (max-width:640px) {
  .page-head,
  .article-head { padding-block: 2.1rem; background-position:center,68% center; }
  .page-head h1,
  .article-head h1 { max-width: 100%; font-size: 2.1rem; }
  .page-head .lead { font-size: 1.05rem; }
  .aft-view-dashboard .page-head { padding-bottom: 3.1rem; }
  .aft-view-dashboard .page-head + .section > .wrap > .btn-row { padding:.8rem;gap:.65rem; }
  .aft-view-dashboard #sadrzaj .btn-row > a { flex:1 1 calc(50% - .65rem);padding:.75rem .55rem;font-size:.83rem; }
  .aft-forum-home .lede { padding-block:1.75rem 1rem; }
  .aft-forum-home #sadrzaj > .lede + .section { padding-top:1.25rem; }
  .aft-forum-home .lede h1 { font-size:2rem;line-height:1.18; }
  .aft-forum-home .lede-text p { font-size:1.05rem; }
  .aft-media-grid,
  .aft-media-grid-preview { grid-template-columns:minmax(0,1fr);gap:1rem; }
  .aft-media-grid-preview .aft-media-card:last-child { grid-column:auto; }
  .aft-media-copy { padding:1.2rem; }
  .archive-filters { grid-template-columns:minmax(0,1fr); }
  .archive-filters button { justify-self:stretch; }
}
@media (max-width:600px) { .admin-bar .site-header { top:0; } }
@media (max-width:520px) {
  .site-header .wrap { gap:.5rem; }
  .site-header .brand { gap:.35rem; }
  .site-header .brand img { width:2.3rem; }
  .site-header .brand-name b { font-size:.9rem; }
  .site-header .brand-name span { font-size:.78rem; }
  .header-tools { gap:.35rem; }
  .header-tools .account-link { max-width:3rem;padding-left:.4rem; }
  .nav-toggle { padding:.5rem; }
}
@media (max-width:380px) {
  .site-header .brand img { width:2rem; }
  .site-header .brand-name b { font-size:.82rem; }
  .site-header .brand-name span { font-size:.74rem; }
}

/* Homepage journal shortcut: existing typeface, no extra image or script. */
.site-header.has-journal-shortcut > .wrap { column-gap:.875rem; }
.journal-home-link {
  display:inline-flex;
  flex:0 0 auto;
  flex-direction:column;
  justify-content:center;
  gap:.2rem;
  min-height:44px;
  padding-left:1rem;
  border-left:1px solid var(--rule);
  color:#00143d;
  text-decoration:none;
}
.journal-home-wordmark {
  font:750 1.6rem/1.08 var(--serif);
  letter-spacing:-.055em;
  white-space:nowrap;
}
.journal-home-wordmark > span { color:#b30e21; }
.journal-home-caption {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font:600 .68rem/1.3 var(--sans);
  color:var(--gold-ink);
}
.journal-home-link:hover { color:#00143d; }
.journal-home-link:hover .journal-home-wordmark {
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:1px;
  text-underline-offset:.18em;
}
@media (min-width:1200px) {
  .has-journal-shortcut .site-nav a { padding-inline:.4rem; font-size:.875rem; }
}
@media (max-width:1199px) {
  .aft-forum-home { --header-h:7.75rem; }
  .site-header.has-journal-shortcut > .wrap {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:.5rem;
    row-gap:0;
  }
  .has-journal-shortcut .brand { grid-column:1; grid-row:1; min-height:4.5rem; }
  .has-journal-shortcut .header-tools { grid-column:2; grid-row:1; }
  .journal-home-link {
    grid-column:1/-1;
    grid-row:2;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    min-height:3.25rem;
    padding:.4rem 0;
    border-left:0;
    border-top:1px solid var(--rule);
  }
  .journal-home-caption { font-size:.75rem; }
}
@media (max-width:600px) {
  .has-journal-shortcut .header-tools {
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:7rem;
    row-gap:.25rem;
    padding-block:.4rem;
  }
  .has-journal-shortcut .header-tools .account-link {
    order:1;
    flex-basis:100%;
    max-width:none;
    border-left:0;
    padding-left:0;
    text-align:right;
    font-size:.68rem;
    line-height:1.25;
  }
}
