/* ============================================================
   AGTU — Journal article reading view (.art-)
   Editorial / academic layout built on the shared design system
   (css/agtu.css). Used by the generated /revista/<slug>/ pages.
   ============================================================ */

/* Skip link (accessibility) */
.art-skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600; }
.art-skip:focus { left: 0; }

/* ---------- Article header ---------- */
.art-header { position: relative; padding: 132px 0 36px; background: radial-gradient(90% 120% at 80% -10%, var(--accent-glow), transparent 55%), var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.art-header-inner { max-width: 820px; }
.art-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted-2); margin-bottom: 22px; }
.art-breadcrumb a { color: var(--muted); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--accent-text); }
.art-breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.art-breadcrumb [aria-current] { color: var(--text); }

.art-section-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.art-title { font-family: var(--font-display); font-weight: 600; font-style: normal; letter-spacing: -.015em; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; color: var(--text); margin-bottom: 18px; }
.art-deck { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 64ch; margin-bottom: 28px; }

.art-byline { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; margin-bottom: 22px; }
.art-author { display: flex; flex-direction: column; }
.art-author .name { font-weight: 600; color: var(--text); }
.art-author .aff { font-size: .84rem; color: var(--muted); }

.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.art-meta b { color: var(--text); font-weight: 600; }
.art-meta a { color: var(--accent-text); }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Cover ---------- */
.art-cover { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); display: grid; place-items: center; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover .mark { font-family: var(--font-display); font-style: italic; font-size: 4rem; color: rgba(255,255,255,.9); }

/* ---------- Layout: body + aside ---------- */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 56px 0 24px; }
@media (max-width: 940px) { .art-layout { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Body typography ---------- */
.art-body { max-width: 72ch; font-size: 1.12rem; line-height: 1.8; color: var(--text); }
.art-body > p { margin: 0 0 1.4em; color: color-mix(in srgb, var(--text) 92%, var(--muted)); }
.art-body > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; line-height: .82; float: left; padding: 6px 12px 0 0; color: var(--accent-text); }
.art-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; line-height: 1.2; letter-spacing: -.01em; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.art-body h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; scroll-margin-top: 100px; }
.art-body h2 .art-anchor, .art-body h3 .art-anchor { opacity: 0; margin-left: 10px; color: var(--accent-text); font-family: var(--font-sans); font-weight: 600; font-size: .7em; text-decoration: none; transition: opacity .2s; }
.art-body h2:hover .art-anchor, .art-body h3:hover .art-anchor { opacity: 1; }
.art-body ul, .art-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.art-body li { margin-bottom: .5em; color: color-mix(in srgb, var(--text) 92%, var(--muted)); }
.art-body ul li { list-style: none; position: relative; }
.art-body ul li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.art-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent-line); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--muted); }
.art-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.art-body em { font-style: italic; }

/* ---------- Keywords ---------- */
.art-keywords { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.art-keywords h4, .art-refs h4, .art-cite h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.art-tag { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); transition: transform .2s var(--ease); }
.art-tag:hover { transform: translateY(-2px); }

/* ---------- References ---------- */
.art-refs { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.art-refs ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.art-refs li { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.art-refs li::marker { color: var(--accent-text); font-weight: 600; }

/* ---------- Aside ---------- */
.art-aside { position: sticky; top: 100px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (max-width: 940px) { .art-aside { position: static; margin-top: 48px; } }
.art-card { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.art-toc h4, .art-share h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.art-toc ul { display: grid; gap: 4px; }
.art-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.art-toc a:hover { color: var(--text); background: var(--bg-2); }
.art-toc a.is-active { color: var(--accent-text); border-left-color: var(--accent); background: var(--accent-soft); }

/* Cite box */
.art-cite .art-cite-text { font-size: .9rem; line-height: 1.6; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.art-cite .art-cite-text b { color: var(--text); }
.art-copy { width: 100%; }
.art-meta-list { display: grid; gap: 10px; }
.art-meta-list .row { display: flex; justify-content: space-between; gap: 14px; font-size: .88rem; }
.art-meta-list .row .k { color: var(--muted-2); }
.art-meta-list .row .v { color: var(--text); font-weight: 500; text-align: right; }
.art-meta-list .row .v a { color: var(--accent-text); }

/* Share */
.art-share-row { display: flex; gap: 10px; }
.art-share-row a, .art-share-row button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.art-share-row a:hover, .art-share-row button:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.art-share-row svg { width: 17px; height: 17px; }

/* ---------- More from section ---------- */
.art-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .art-more { grid-template-columns: 1fr; } }
.art-more-card { display: block; padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s; }
.art-more-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.art-more-card .src { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.art-more-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 10px 0 0; color: var(--text); }

/* Toast for copy actions */
.art-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.art-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
