/* UAT Journals – public site additions (home, journals, journal, issue, article, browse, pages). Builds on app.css tokens. */

.plain-list { list-style: none; margin: 0; padding: 0; }
.stack-lg > * + * { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: 4px 0 0; }
.link-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.link-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.link-list a[aria-current="page"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--green); padding-left: 10px; }
.btn-col { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.btn-col .btn { width: 100%; }
.cta-box { background: var(--green-tint-2); border-color: #cfe5d7; }
.cta-box h2 { color: var(--green-dark); }
.cta-box .btn-row { margin: 12px 0; }

/* hero */
.hero-stats { margin-bottom: 0; }
.hero-stats dd { margin: 0; }
.hero-search .btn { padding: 14px 22px; }

/* journal cards */
.journal-card { height: 100%; }
.journal-card-text { min-width: 0; }
.journal-card-text h3 a { color: var(--ink); text-decoration: none; }
.journal-card-text h3 a:hover { color: var(--green); text-decoration: underline; }
.journal-card-full p + p { margin-top: 8px; }
.journal-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; }
.journal-card .btn-row { margin-top: 12px; }
.journal-group { margin-top: 36px; }
.journal-group h2 { font-size: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--green-tint); margin-bottom: 18px; }
.jump-links { margin-bottom: 8px; }
.cover-sm .cover-abbr { word-break: break-word; }

/* journal masthead */
.masthead-text { min-width: 0; }
.masthead .eyebrow { color: var(--gold); }
.masthead .meta-line { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 4px; }
.masthead-actions { margin-top: 16px; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.masthead .tabs a:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }

/* issues & archive */
.issue-header { display: flex; gap: 22px; align-items: flex-start; margin: 8px 0 28px; }
.issue-header h1 { font-family: var(--font-read); font-weight: 600; margin-bottom: 4px; }
.issue-header .lead { margin: 0 0 6px; }
.issue-header .eyebrow a { text-decoration: none; }
.issue-head { margin-bottom: 20px; }
.issue-head h2 a { color: var(--ink); text-decoration: none; }
.issue-head h2 a:hover { color: var(--green); }
.toc-section + .toc-section { margin-top: 28px; }
.toc-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-bottom: 8px; border-bottom: 2px solid var(--green-tint); margin-bottom: 4px; }
.toc-section .article-item:first-child { padding-top: 14px; }
.archive-volume + .archive-volume { margin-top: 32px; }
.archive-volume h3 { font-size: 18px; }
.issue-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; height: 100%; }
.issue-card strong { color: var(--green-dark); }

/* editorial board */
.board-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.board-card { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.board-card h3 { font-size: 17px; margin: 0 0 2px; }
.board-card .eyebrow { margin-bottom: 2px; }
.board-card p { margin: 0; }
.board-bio { margin-top: 8px !important; color: var(--ink-2); }

/* page lists, attachments */
.page-list { display: grid; gap: 12px; margin-top: 20px; }
.page-list .card-link { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.attachment { margin-top: 24px; }
.page-updated { margin-top: 28px; }

/* article page */
.article-page > section { margin-top: 32px; }
.article-page h2 { font-size: 18px; }
.article-source { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.article-source a { text-decoration: none; }
.article-source a:hover { text-decoration: underline; }
.article-head h1 { overflow-wrap: anywhere; }
.author-line .author { white-space: normal; }
.orcid { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 9px; font-weight: 800; text-decoration: none; vertical-align: 2px; }
.orcid:hover { color: #fff; background: #7fa32a; }
.affiliations li { margin: 2px 0; }
.affiliations sup { color: var(--green); font-weight: 700; margin-right: 2px; }
.article-facts { margin: 0 0 16px; }
.article-facts a { overflow-wrap: anywhere; }
.article-buttons { margin: 0; }
.abstract { text-align: left; overflow-wrap: break-word; }
.cite-panel { margin-bottom: 4px; }
.cite-panel .cite-box { margin-bottom: 8px; overflow-wrap: anywhere; }
.cite-panel + .cite-panel { margin-top: 12px; }
.export-box { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.export-box summary { cursor: pointer; font-weight: 600; color: var(--green-dark); }
.export-box h3 { margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.code-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0 0 8px; }
.share-row { margin-top: 8px; }
.related .link-list a { font-weight: 600; line-height: 1.35; }

/* browse */
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.result-count { font-size: 17px; margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select { width: auto; padding: 7px 10px; }
.active-filters { margin-bottom: 16px; }
.chip-remove:hover { border-color: var(--red); color: #a3141d; }
.filter-form h2 { margin-bottom: 14px; }
.filter-form .field { margin-bottom: 14px; }
.filter-form .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.browse-layout aside { position: sticky; top: 130px; }
.article-item .article-title { overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .browse-layout aside { position: static; order: -1; }
}
@media (max-width: 640px) {
  .issue-header { flex-direction: column; gap: 12px; }
  .board-card { flex-direction: column; }
  .hero-stats { gap: 22px; }
  .journal-card { padding: 14px; gap: 12px; }
  .masthead-actions .btn { flex: 1 1 auto; }
  .article-actions { flex-wrap: wrap; gap: 8px 14px; }
}
@media print {
  .cite-styles, .export-box, .masthead .tabs { display: none !important; }
  .cite-panel[hidden] { display: block !important; }
}
