/* article page (html/com_content/article/default.php) */
.st-article { position: relative; }
.st-article__head { margin: -1.25rem -1.25rem 1.5rem; padding: 1.75rem 1.5rem 1.25rem; border-radius: 10px 10px 0 0; background: linear-gradient(135deg, #eef4fb 0%, #ffffff 70%); border-bottom: 1px solid var(--st-line); position: relative; }
.st-article__head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--st-accent), var(--st-primary)); border-radius: 10px 0 0 0; }
:root.st-contrast .st-article__head { background: #000; border-bottom: 2px solid #fff; }
.st-article__title { margin: 0 0 .9rem; font-size: clamp(1.55rem, 1.1rem + 2vw, 2.45rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: var(--st-primary); overflow-wrap: anywhere; }
.st-article__title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: .7rem; border-radius: 3px; background: var(--st-accent); }
:root.st-contrast .st-article__title { color: #fff; }
.st-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.st-meta__chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .15rem .8rem; border: 1px solid var(--st-line); border-radius: 999px; background: #fff; color: var(--st-text); font-size: .85rem; font-weight: 600; text-decoration: none; }
.st-meta__chip svg { flex: none; color: var(--st-primary); }
.st .st-meta a.st-meta__chip { color: var(--st-primary); }
.st .st-meta a.st-meta__chip:hover { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st .st-meta a.st-meta__chip:hover svg { color: #fff; }
:root.st-contrast .st-meta__chip { background: #000; border-color: #fff; color: #fff; }
:root.st-contrast .st-meta__chip svg { color: #ffd400; }

/* text */
.st-article__body { font-size: 1.08rem; line-height: 1.75; }
.st-article__body > p:first-of-type { font-size: 1.15rem; }
.st-article__body h2 { margin: 2rem 0 .7rem; padding-bottom: .35rem; font-size: 1.5rem; border-bottom: 3px solid var(--st-accent); display: inline-block; }
.st-article__body h3 { margin: 1.6rem 0 .5rem; font-size: 1.25rem; color: var(--st-primary); }
.st-article__body ul { padding-left: 1.3rem; }
.st-article__body li { margin: .3rem 0; }
.st-article__body li::marker { color: var(--st-accent); }
.st-article__body blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 5px solid var(--st-accent); border-radius: 0 10px 10px 0; background: #f4f8fd; color: var(--st-text); }
.st-article__body img { border-radius: 10px; }
.st-article__body figure { margin: 1.2rem 0; }
.st-article__body figcaption { margin-top: .35rem; color: var(--st-muted); font-size: .88rem; }
.st-article__body table { margin: 1.2rem 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--st-line); }
.st-article__body th { background: var(--st-primary); color: #fff; border-color: var(--st-primary); }
.st-article__body tbody tr:nth-child(even) { background: #f6f9fc; }
:root.st-contrast .st-article__body th { background: #000; border-color: #fff; }
:root.st-contrast .st-article__body blockquote, :root.st-contrast .st-article__body tbody tr:nth-child(even) { background: #111; }

/* a paragraph that only holds a link to a document becomes a file card (class added by template.js) */
.st-file { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: .7rem 0; padding: .85rem 1rem; border: 1px solid var(--st-line); border-left: 5px solid var(--st-accent); border-radius: 12px; background: #fbfcfe; transition: box-shadow .15s, border-color .15s; }
.st-file:hover { border-color: var(--st-primary); box-shadow: 0 8px 22px rgba(18, 53, 91, .12); }
.st-file__type { flex: none; display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 .4rem; border-radius: 10px; background: var(--st-primary); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.st-file__type[data-t="doc"], .st-file__type[data-t="docx"] { background: #1f5fa8; }
.st-file__type[data-t="xls"], .st-file__type[data-t="xlsx"] { background: #1e7a45; }
.st-file__type[data-t="pdf"] { background: #b3261e; }
.st-file > a { flex: 1 1 14rem; min-width: 0; font-weight: 700; font-size: 1.02rem; text-decoration: none; overflow-wrap: anywhere; }
.st-file > a:hover { text-decoration: underline; }
.st-file .st-pdf-btn { margin-left: 0; }
:root.st-contrast .st-file { background: #000; border-color: #fff; }
:root.st-contrast .st-file__type { background: #ffd400; color: #000; }

/* footer: tags and the way back */
.st-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--st-line); }
.st-article__foot .tags { margin: 0; }
.st-article__back { margin: 0; }
.st .st-article__back a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 2px solid var(--st-primary); border-radius: 999px; color: var(--st-primary); font-weight: 700; text-decoration: none; }
.st .st-article__back a:hover { background: var(--st-primary); color: #fff; }
:root.st-contrast .st .st-article__back a { border-color: #ffd400; color: #ffd400; }
@media (max-width: 575px) { .st-article__head { margin: -1rem -1rem 1.25rem; padding: 1.25rem 1rem 1rem; } }
@media (prefers-reduced-motion: reduce) { .st-file { transition: none; } }
@media print { .st-article__head { background: none; border: 0; margin: 0; padding: 0; } .st-article__head::before { display: none; } .st-meta__chip { border: 0; padding: 0 .6rem 0 0; } .st-article__back, .st-pdf-btn { display: none; } }
/* event dossier: documents in chronological order ({st:timeline}) or the newest ones ({st:latest}) of plg_system_liceu */
.st-tl { list-style: none; margin: 1rem 0 1.5rem; padding: 0 0 0 1.4rem; border-left: 3px solid var(--st-line); }
.st-tl__month { position: relative; margin: 1.6rem 0 .5rem -1.4rem; padding-left: 1.4rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--st-primary); }
.st-tl__month:first-child { margin-top: .2rem; }
.st-tl__month::before { content: ""; position: absolute; left: -.5rem; top: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--st-accent); border: 3px solid var(--st-card); box-shadow: 0 0 0 2px var(--st-accent); }
.st-tl__item { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; padding: .45rem 0; border-top: 1px solid var(--st-line); }
.st-tl__month + .st-tl__item { border-top: 0; }
.st-tl__item time { flex: none; min-width: 5.6rem; font-size: .85rem; font-weight: 700; color: var(--st-muted); }
.st-tl__item a { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.st-tl--latest { border-left: 0; padding-left: 0; }
:root.st-contrast .st-tl { border-left-color: #fff; }
:root.st-contrast .st-tl__month { color: #ffd400; }
/* type and size appended by plg_system_liceu after links to documents */
.liceu-file { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--st-bg); border: 1px solid var(--st-line); color: var(--st-muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.liceu-archive { margin: 0 0 1rem; padding: .8rem 1rem; border-left: 5px solid var(--st-accent); background: var(--st-card); border-radius: 8px; }
