/* The Rest — Academic Articles Automator: styles only for managed articles */
/* THE REST — REUSABLE ACADEMIC ARTICLE STYLE | v1.0 (2026)
   Append ONCE to Appearance > Customize > Additional CSS.
   Only matches single WordPress posts containing .rest-article-modern.
   Existing Post 2020 styling need not be removed.
   Compatible with modern Chromium, Safari, and Firefox (:has).
*/
body.trja-scholarly-post {background:#f3f6f9;}
body.trja-scholarly-post .content-container {max-width:1240px !important;}
body.trja-scholarly-post #primary {width:100%;max-width:100%;}
body.trja-scholarly-post #main > article,
body.trja-scholarly-post article.entry {background:#fff;border-radius:16px;box-shadow:0 14px 45px rgba(24,36,57,.065);}
body.trja-scholarly-post .entry-content-wrap {padding:clamp(22px,4vw,58px) !important;}
body.trja-scholarly-post h1.entry-title,
body.trja-scholarly-post .entry-header h1 {color:#182439;font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.5vw,50px);line-height:1.17;letter-spacing:-.025em;margin-bottom:18px;max-width:940px;}
body.trja-scholarly-post .entry-header .entry-meta,
body.trja-scholarly-post .entry-meta,
body.trja-scholarly-post .post-navigation,
body.trja-scholarly-post .entry-related,
body.trja-scholarly-post .related-posts,
body.trja-scholarly-post .entry-footer .entry-taxonomies {display:none !important;}
body.trja-scholarly-post .rest-article-modern {color:#293b4e;max-width:none;font-size:16px;line-height:1.75;}
body.trja-scholarly-post .rest-article-modern * {box-sizing:border-box;}
body.trja-scholarly-post .rest-article-modern .ra-hero {background:linear-gradient(130deg,#f0f5fa 0%,#fff 75%);border:1px solid #e2eaf2;border-left:4px solid #e75d29;border-radius:12px;padding:clamp(22px,3.2vw,34px);margin:14px 0 36px;}
body.trja-scholarly-post .ra-eyebrow {display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:#667990;font-size:12px;font-weight:700;letter-spacing:.015em;margin-bottom:20px;}
body.trja-scholarly-post .ra-pill {background:#182439;color:#fff;text-transform:uppercase;font-size:11px;letter-spacing:.085em;border-radius:5px;padding:5px 11px;}
body.trja-scholarly-post .ra-access {color:#24775b;}
body.trja-scholarly-post .ra-byline {font-size:clamp(18px,2vw,22px);font-weight:700;letter-spacing:-.015em;color:#182439;margin:0 0 4px;line-height:1.5;}
body.trja-scholarly-post .ra-amp {font-weight:400;color:#7a8593;}
body.trja-scholarly-post .ra-affiliations {font-size:14px;color:#62778a;margin:0 0 26px;line-height:1.65;}
body.trja-scholarly-post .ra-actions {display:flex;gap:11px;flex-wrap:wrap;align-items:stretch;}
body.trja-scholarly-post .ra-button {display:inline-flex;gap:10px;align-items:center;justify-content:center;text-align:center;min-height:49px;border-radius:7px;padding:11px 18px;border:1px solid #cbd8e4;font-size:14px;font-weight:750;line-height:1.2;text-decoration:none !important;transition:background .18s ease,color .18s ease;}
body.trja-scholarly-post .ra-button-primary {background:#e75d29;color:#fff !important;border-color:#e75d29;}
body.trja-scholarly-post .ra-button-primary:hover {background:#c8491b;color:#fff !important;}
body.trja-scholarly-post .ra-button-outline {background:#fff;color:#182439 !important;}
body.trja-scholarly-post .ra-button-outline:hover {background:#eaf0f7;}
body.trja-scholarly-post .ra-small-note {font-size:11px;font-weight:500;opacity:.85;padding-left:5px;}
body.trja-scholarly-post .ra-content-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,265px);gap:clamp(22px,4vw,52px);align-items:start;}
body.trja-scholarly-post .ra-article-main {min-width:0;}
body.trja-scholarly-post .ra-panel {border-bottom:1px solid #e2e9f0;padding-bottom:32px;margin-bottom:32px;scroll-margin-top:110px;}
body.trja-scholarly-post .ra-panel:last-child {border-bottom:0;margin-bottom:0;}
body.trja-scholarly-post .ra-section-head {display:flex;align-items:center;gap:13px;margin-bottom:18px;}
body.trja-scholarly-post .ra-section-mark {height:24px;width:4px;display:block;flex:none;border-radius:3px;background:#e75d29;}
body.trja-scholarly-post .ra-section-head h2 {font-family:Georgia,'Times New Roman',serif;font-size:clamp(23px,2.2vw,29px);line-height:1.25;color:#182439;margin:0;letter-spacing:-.02em;}
body.trja-scholarly-post .ra-panel p {font-size:16px;line-height:1.88;color:#34495e;margin:0 0 16px;}
body.trja-scholarly-post .ra-panel p:last-child {margin-bottom:0;}
body.trja-scholarly-post .ra-keywords {display:flex;gap:8px;flex-wrap:wrap;}
body.trja-scholarly-post .ra-keywords span {background:#f0f4f8;border:1px solid #dde6ef;border-radius:6px;padding:7px 12px;font-size:13px;color:#405670;line-height:1.4;}
body.trja-scholarly-post .ra-citation-panel {background:#fafbfd;border:1px solid #e2eaf2;border-radius:10px;padding:23px 25px;}
body.trja-scholarly-post .ra-citation-panel .ra-policy {border-top:1px solid #e2eaf2;margin-top:20px;padding-top:15px;font-size:13px;color:#6a7a8a;}
body.trja-scholarly-post .ra-policy a {color:#1d537c;}
body.trja-scholarly-post .ra-info-card {position:sticky;top:104px;border:1px solid #e1e9f0;border-radius:12px;background:#f7f9fc;padding:23px 22px;}
body.trja-scholarly-post .ra-info-card h2 {font-family:inherit;font-size:17px;font-weight:800;line-height:1.3;color:#182439;margin:0 0 20px;}
body.trja-scholarly-post .ra-info-card dl {margin:0;}
body.trja-scholarly-post .ra-info-card dl div {border-bottom:1px solid #e4eaf0;padding:0 0 12px;margin:0 0 12px;}
body.trja-scholarly-post .ra-info-card dl div:last-child {border-bottom:0;}
body.trja-scholarly-post .ra-info-card dt {font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#718396;font-weight:800;margin-bottom:3px;}
body.trja-scholarly-post .ra-info-card dd {margin:0;font-size:13px;line-height:1.45;font-weight:650;color:#34495e;}
body.trja-scholarly-post .ra-info-links {display:flex;gap:10px;flex-wrap:wrap;padding-top:12px;}
body.trja-scholarly-post .ra-info-links a {font-size:12px;text-decoration:none;color:#1d537c;border-bottom:1px solid #cbd7e4;}
@media(max-width:800px){body.trja-scholarly-post .ra-content-grid {grid-template-columns:minmax(0,1fr)}body.trja-scholarly-post .ra-info-card {position:static;}body.trja-scholarly-post .ra-article-main {order:1;}body.trja-scholarly-post .ra-sidebar {order:2;}}
@media(max-width:520px){body.trja-scholarly-post .entry-content-wrap{padding:22px 17px !important;}body.trja-scholarly-post .ra-actions{flex-direction:column}body.trja-scholarly-post .ra-button{width:100%;}body.trja-scholarly-post .ra-small-note{display:none;}body.trja-scholarly-post .ra-hero{padding:19px;margin-bottom:24px;}body.trja-scholarly-post .ra-eyebrow{gap:9px;}body.trja-scholarly-post .ra-citation-panel{padding:18px 16px;}}


/* Keep original scholarly abstract two-way aligned, as requested. */
body.trja-scholarly-post #rest-article-abstract p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
}

/* Prevent horizontal overflow for long URLs and citations. */
body.trja-scholarly-post .rest-article-modern { overflow-wrap: anywhere; }

/* All imported abstracts are justified without modifying the first, existing article. */
body.trja-scholarly-post #rest-article-abstract p {text-align:justify!important;text-justify:inter-word;hyphens:auto;}
body.trja-scholarly-post .ra-editor-warning{padding:18px;border-radius:8px;background:#fff7e7;color:#8d621b;}

/* Dynamic issue list shortcode */
.trja-issue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0 42px}
.trja-issue-card{background:#fff;border:1px solid #e0e8f1;border-radius:12px;padding:25px;box-shadow:0 9px 24px rgba(24,36,57,.04)}
.trja-issue-card>span{color:#e75d29;font-weight:800;font-size:11px;letter-spacing:.09em}
.trja-issue-card h3{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.35;margin:13px 0 10px}
.trja-issue-card h3 a{color:#182439;text-decoration:none}
.trja-issue-card h3 a:hover{color:#b74419}
.trja-issue-card p{color:#51657b;font-size:14px}
.trja-issue-card>div{border-top:1px solid #edf0f5;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.trja-issue-card>div a{color:#bd4a1a;font-weight:750;text-decoration:none}
@media(max-width:680px){.trja-issue-list{grid-template-columns:1fr}.trja-issue-card{padding:20px}}
