/* Header: put the journal name right next to the logo */
.main-content .header.row > .col-md-4 { flex: 0 0 auto; width: auto; padding-right: 0; }
.main-content .header.row > .name-container { flex: 1 1 0; width: auto; max-width: none; }
.main-content .header.row .journal-name { margin-left: 0; }

/* Quick Links: grouped menu moved from the header */
.ql-group { margin-top: 10px; }
.ql-group > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-weight: 600; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; background: #f8f9fa; }
.ql-group > summary::-webkit-details-marker { display: none; }
.ql-group > summary::after { content: "\f078"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; transition: transform .2s; }
.ql-group[open] > summary::after { transform: rotate(180deg); }
.ql-group .quick-link-item { margin-top: 6px; font-size: 14px; }

/* Issue page: Author diversity side panel */
.ad-js .author-diversity { display: none; }
.ad-btn { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 16px; border: 1px solid #1e73be; border-radius: 999px; background: #fff; color: #1e73be; font-weight: 600; font-size: 14px; cursor: pointer; }
.ad-btn::before { content: "\25A4"; }
.ad-btn:hover, .ad-btn:focus-visible { background: #1e73be; color: #fff; }
.ad-ov { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1040; }
.ad-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .3s ease; z-index: 1050; display: flex; flex-direction: column; outline: none; }
.ad-open .ad-ov { opacity: 1; visibility: visible; }
.ad-open .ad-panel { transform: none; }
.ad-hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.ad-hd h4 { margin: 0; font-size: 18px; }
.ad-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #555; }
.ad-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 12px 20px 0; }
.ad-steps li { flex: 1; }
.ad-steps button { width: 100%; border: 0; border-top: 3px solid #d1d5db; background: none; padding: 8px 2px 4px; font-size: 12px; color: #6b7280; cursor: pointer; text-align: left; }
.ad-steps .on button { border-color: #1e73be; color: #1e73be; font-weight: 700; }
.ad-steps .done button { border-color: #93c5fd; }
.ad-bd { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ad-lead { color: #4b5563; font-size: 14px; margin: 0 0 14px; }
.ad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ad-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #f9fafb; }
.ad-num { font-size: 28px; font-weight: 700; color: #1e73be; line-height: 1.1; }
.ad-lab { font-size: 12px; color: #6b7280; margin-top: 4px; }
.ad-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 14px 0 8px; }
.ad-bar { margin-bottom: 12px; }
.ad-bar-l { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ad-bar-t { height: 6px; border-radius: 3px; background: #e5e7eb; margin-top: 4px; }
.ad-bar-f { height: 100%; border-radius: 3px; background: #1e73be; }
.ad-note { font-size: 12px; color: #6b7280; }
.ad-ft { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid #e5e7eb; }
.ad-b { border: 1px solid #1e73be; background: #fff; color: #1e73be; border-radius: 8px; padding: 8px 18px; font-weight: 600; cursor: pointer; }
.ad-next { background: #1e73be; color: #fff; }
body.ad-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ad-panel, .ad-ov { transition: none; } }

/* Drawer: topic tags */
.ad-tags, .ia-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-tags span, .ia-tags span { padding: 4px 10px; border-radius: 999px; background: #e8f1fb; color: #14558f; font-size: 12px; line-height: 1.4; }

/* Archive: issue cards */
.article-card:has(.ia-done) { height: 100%; }
.ia { margin: 10px 0 6px; }
.ia-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ia-s { border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; padding: 8px 4px; text-align: center; }
.ia-s b { display: block; font-size: 18px; color: #1e73be; line-height: 1.1; }
.ia-s span { display: block; font-size: 11px; color: #6b7280; margin-top: 2px; }
.ia-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 4px 0 6px; }
.ia-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }
@media (max-width: 480px) { .ia-stats { grid-template-columns: repeat(3, 1fr); } }

/* Issue description text (archive card + drawer) */
.ia-desc { font-size: 13px; line-height: 1.55; color: #374151; margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ad-desc { font-size: 14px; line-height: 1.6; color: #374151; margin: 0; }
.ad-desc.ad-inline { margin: 8px 0 4px; font-size: 15px; line-height: 1.65; }
