/* ATH Theme CSS - Compiled from ath.scss */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap");

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    font-family: "Libre Franklin", sans-serif;
    color: #212529;
}

.rtl {
    direction: rtl;
}

/* Home page styles */
.home .quarto-title-banner {
    margin-bottom: 0;
}

#title-block-header.home {
    margin-block-end: 0.5rem;
}

.home #title-block-header {
    margin-block-end: 0;
}

/* Code blocks */
pre.text, pre.sourceCode, .cell-output pre {
    font-size: 0.775em;
}

/* Inline code */
#quarto-document-content :not(pre) > code {
    background-color: rgba(var(--bs-body-color-rgb), 0.12);
    border-radius: 0.25rem;
    color: var(--bs-body-color);
    padding: 0.15em 0.3em;
}

[data-bs-theme="dark"] #quarto-document-content :not(pre) > code {
    background-color: rgba(255, 255, 255, 0.16);
}

/* Links */
a {
    color: #EE6A24;
    text-decoration: none;
}

a:hover {
    color: #CF4446;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    font-family: "Jost", sans-serif;
    background-color: #170C3A;
    color: #ffffff;
}

.navbar-nav.navbar-nav-scroll.ms-auto {
    flex-direction: row;
}

/* TOC */
#TOC {
    font-family: "Jost", sans-serif;
    padding-bottom: 0.1em;
    font-weight: 300;
    color: #EE6A24;
    font-size: 1em;
}

#TOC .active {
    font-weight: 400;
}

#TOC #toc-title {
    font-weight: 600;
}

.sidebar nav[role="doc-toc"] > ul li a {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Blog categories */
#quarto-margin-sidebar .quarto-listing-category-title {
    margin-left: 0.5em;
}

#quarto-margin-sidebar .quarto-listing-category {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.1;
    padding-left: 0.6rem;
    margin-left: 0.5em;
    border-left: 1px solid #e9ecef;
}

#quarto-margin-sidebar .quarto-listing-category .category {
    padding-bottom: 0.5rem;
}

#quarto-margin-sidebar .quarto-listing-category .active {
    font-weight: 400;
    color: #EE6A24;
}

#quarto-margin-sidebar .quarto-listing-category .quarto-category-count {
    font-weight: 200;
    font-size: 0.8em;
    color: #868e96;
}

/* Footer */
.nav-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    border: 0 !important;
    min-height: 3em;
    font-family: "Jost", sans-serif;
    background-color: #212529;
    color: #dee2e6;
}

.nav-footer a {
    color: #FB9E07;
}

.nav-footer .faux-block {
    display: block;
    padding-bottom: 0.4em;
}

.nav-footer .fingerprint {
    font-family: monospace;
    font-size: 0.8em;
}

.nav-footer .nav-footer-center {
    text-align: center;
    position: inherit;
    margin-top: 0;
}

@media (max-width: 768px) {
    .nav-footer .nav-footer-center {
        margin-top: 0.5em;
        margin-bottom: 1.5em;
    }
}

.nav-footer .nav-footer-left,
.nav-footer .nav-footer-right,
.nav-footer .nav-footer-center {
    text-align: center;
    width: 100%;
    min-height: 2em;
}

@media (min-width: 768px) {
    .nav-footer .nav-footer-left {
        text-align: left;
    }
    
    .nav-footer .nav-footer-right {
        text-align: right;
    }
    
    .nav-footer .nav-footer-left,
    .nav-footer .nav-footer-right,
    .nav-footer .nav-footer-center {
        flex: 1 1 33%;
    }
}

/* Title block */
#title-block-header .quarto-title-banner {
    font-family: "Jost", sans-serif;
}

#title-block-header .quarto-title-banner .description {
    font-size: 1.1em;
    margin-top: 1em !important;
}

/* Blog styles */
.blog .blog-entry {
    display: flex;
    flex-direction: row;
    font-family: "Jost", sans-serif;
    line-height: 1.3;
    margin-bottom: 1.5em;
    column-gap: 1em;
}

.blog .blog-entry .metadata {
    flex: 0 0 8%;
}

.blog .blog-entry .body {
    flex: 1 1 auto;
}

.blog .blog-entry .thumbnail {
    flex: 0 0 25%;
}

.blog .blog-entry .thumbnail img {
    width: 100%;
    object-fit: cover;
    max-height: 120px;
}

.blog .blog-entry .title {
    font-weight: 500;
    font-size: 1.3em;
    margin-bottom: 0.2em;
    line-height: 1.2;
}

.blog .blog-entry .description {
    font-weight: 300;
    font-size: 1em;
    margin-bottom: 0.3em;
}

.blog .blog-entry .date {
    font-weight: 300;
    font-size: 0.85em;
    margin-top: 0.3em;
    text-align: right;
}

.blog .blog-entry .post-categories {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.4em;
    column-gap: 0.4em;
    margin: 0.5em 0;
}

.blog .blog-entry .post-categories .post-category {
    color: #868e96;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-size: 0.65em;
    padding: 0.15em 0.5em;
    cursor: pointer;
}

.blog .blog-entry .post-doi {
    font-weight: 300;
    font-size: 0.85em;
    margin: 0.5em 0;
    text-align: right;
}

.blog .blog-entry .post-doi .doi-icon {
    width: 1.1em;
    padding-bottom: 1px;
}

.blog .blog-entry .post-doi a {
    color: #868e96;
}

/* Blog post */
.blog-post .quarto-title .quarto-categories {
    margin-top: 1.5em;
}

.blog-post .quarto-title .quarto-categories .quarto-category {
    background-color: #2d1a52;
    border-color: #1a0f30;
    color: #ffffff;
    font-size: 0.65em;
    opacity: 1;
}

.blog-post .quarto-title-author-orcid img {
    margin-bottom: -3px;
}

.blog-post .quarto-title-meta-contents .doi::before {
    content: "";
    background-image: url(files/doi.svg);
    background-size: 1.1em;
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-bottom: -3px;
}

/* Research styles */
.quarto-title-block .haiku {
    text-align: right;
    font-family: "Jost", sans-serif;
    margin: 1.3em 0;
    font-size: 1.6em;
    font-weight: 300;
    font-style: italic;
}

.quarto-title-block .quarto-title .quarto-categories {
    padding-bottom: 0;
    flex-wrap: wrap;
    row-gap: 0.4em;
}

.quarto-title-block .project-details {
    background-color: rgba(207, 68, 70, 0.1);
    padding: 0.75em;
    margin: 1em 0;
}

.quarto-title-block .quarto-title-meta-heading.manual {
    margin-top: 2em !important;
}

.quarto-title-block .project-links {
    padding: 0;
    margin-bottom: 0;
}

.quarto-title-block .project-link {
    display: inline-block;
    white-space: nowrap;
    padding: 0 1em 0 0;
    font-weight: bold;
}

.back-nav {
    margin-bottom: 1.5em;
}

.research .back-nav a {
    color: #65212a;
}

.research .quarto-title .quarto-categories .quarto-category {
    background-color: #521a1c;
    color: #CF4446;
    font-size: 0.65em;
    opacity: 1;
}

.research .project-categories {
    display: flex;
    flex-wrap: wrap;
    margin: 0.35em 0 0.35em;
    padding-top: 0.35em;
    padding-left: 0.5em;
    padding-bottom: 0;
    row-gap: 0.4em;
    column-gap: 0.4em;
    font-family: "Jost", sans-serif;
}

.research .project-categories .project-category {
    padding: 0.25em 0.75em 0.25em 0em;
    font-size: 0.7em;
    text-transform: uppercase;
}

/* Project list */
.project-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}

.project-list ul li.project {
    margin-bottom: 2.5em;
    border-left: 6px solid #f2e6e7;
}

.project-list ul li.project p {
    margin: 0;
}

.project-list .project-content {
    padding-left: 0.5em;
}

.project-list .project-content .status {
    font-size: 1rem;
    font-weight: 250;
    padding: 0.2em;
    margin-right: 0.5em;
}

.project-list .haiku {
    margin: 0.4rem 0 0rem;
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-style: italic;
    text-align: right;
    color: #868e96;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .project-list .haiku {
        font-size: 0.95rem;
    }
}

.project-list ul.project-links {
    margin-bottom: 0;
}

.project-list .project-details-listing {
    margin-top: 0.8em;
    background-color: #f2e6e7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .project-list .project-details-listing {
        font-size: 0.95rem;
    }
}

.project-list .project-details-listing .project-link {
    display: inline-block;
    white-space: nowrap;
    padding: 0.5em 0.5em 0.5em 1em;
}

.project-list .project-details-listing .details {
    background-color: #CF4446;
    padding-right: 1.5em;
}

.project-list .project-details-listing .details a {
    color: #FFFFFF;
}

/* Teaching styles */
.teaching .course-entry {
    display: flex;
    flex-direction: row;
    font-family: "Jost", sans-serif;
    line-height: 1.3;
    margin-bottom: 3em;
    column-gap: 0.7em;
}

.teaching .course-entry .body {
    flex: 1 1 auto;
}

.teaching .course-entry .logo {
    flex: 0 0 140px;
}

.teaching .course-entry .logo img {
    width: 100%;
}

.teaching .course-entry .course-title {
    font-weight: 500;
    font-size: 1.25em;
    margin-bottom: 0.2em;
}

.teaching .course-entry .course-details {
    font-weight: 300;
    font-size: 0.9em;
    margin-bottom: 0.5em;
    color: #373a3c;
}

.teaching .course-entry .course-description {
    font-weight: 300;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.teaching .course-entry .course-role {
    font-weight: 500;
}

.teaching .course-entry ul.course-semesters {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.teaching .course-entry ul.course-semesters li {
    display: inline-block;
    white-space: nowrap;
    background-color: #EE6A24;
    margin: 0 0.2em 0.4em 0;
    padding: 0.2em 0.4em;
    font-size: 0.85em;
    border-radius: 0.25rem;
}

.teaching .course-entry ul.course-semesters li.no-link {
    background-color: #ffffff;
    border: 1px solid #000000;
}

.teaching .course-entry ul.course-semesters li a {
    color: #ffffff;
}

/* Talks styles */
.talks .talk-entry {
    display: flex;
    flex-direction: row;
    font-family: "Jost", sans-serif;
    line-height: 1.3;
    margin-bottom: 1.5em;
    column-gap: 1em;
}

.talks .talk-entry .body {
    flex: 1 0 80%;
}

.talks .talk-entry .metadata {
    flex: 1 0 20%;
}

.talks .talk-entry .title {
    font-weight: 500;
    font-size: 1.2em;
    margin-bottom: 0.2em;
    line-height: 1.2;
}

.talks .talk-entry .description {
    font-weight: 300;
    font-size: 1em;
    margin-bottom: 0.3em;
}

.talks .talk-entry .date {
    font-weight: 300;
    font-size: 0.85em;
    margin-top: 0.3em;
    text-align: right;
}

.talks .talk-entry ul.talk-links {
    padding: 0 0.5em;
    background-color: #fef9f2;
    margin-bottom: 0;
}

.talks .talk-entry ul.talk-links .talk-link {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
    padding: 0.5em 1em 0.5em 0;
    font-size: 0.85em;
}

/* CV download button */
.cv-download {
    font-family: "Jost", sans-serif;
    background-color: #771C6D;
    border-color: #771C6D;
    color: #ffffff;
}

.cv-download:hover {
    background-color: #CF4446;
    border-color: #CF4446;
    color: #ffffff;
}

/* Code tools */
.code-tools-button {
    position: relative;
    left: 5em;
}

@media (max-width: 768px) {
    .code-tools-button {
        left: 0;
    }
}

/* Code copy button */
.btn-code-copy-color-active {
    color: #EE6A24;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Jost", sans-serif;
    font-weight: 600;
}

/* Primary colors for various elements */
.btn-primary {
    background-color: #A52C60;
    border-color: #A52C60;
}

.btn-primary:hover {
    background-color: #8a2451;
    border-color: #8a2451;
}

.text-primary {
    color: #A52C60;
}

.bg-primary {
    background-color: #A52C60;
}

/* Success colors */
.text-success {
    color: #118230;
}

.bg-success {
    background-color: #118230;
}

/* Warning colors */
.text-warning {
    color: #EE6A24;
}

.bg-warning {
    background-color: #EE6A24;
}

/* Danger colors */
.text-danger {
    color: #CF4446;
}

.bg-danger {
    background-color: #CF4446;
}

/* Info colors */
.text-info {
    color: #3093CF;
}

.bg-info {
    background-color: #3093CF;
}

/* ---------------------------------------------------------------- */
/* Chapter landing pages (termodinamika_NN_gaia/index.qmd)           */
/* Added 2026-08-30: the hero navigation buttons were .btn-outline-  */
/* light (white on white, invisible); style them in the site palette */
/* without touching the page markup.                                 */
.hero-banner .btn-outline-light {
    color: #355070;
    border: 2px solid #355070;
    border-radius: 6px;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    padding: 0.55em 1.1em;
    transition: background-color .15s ease, color .15s ease;
}
.hero-banner .btn-outline-light:hover,
.hero-banner .btn-outline-light:focus {
    background-color: #355070;
    border-color: #355070;
    color: #ffffff;
}
/* Current page in the banner breadcrumb was nearly invisible on the
   blue banner; keep every crumb readable. */
.quarto-title-banner .quarto-page-breadcrumbs a,
.quarto-title-banner .quarto-page-breadcrumbs .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}
.quarto-title-banner .quarto-page-breadcrumbs .breadcrumb-item.active,
.quarto-title-banner .quarto-page-breadcrumbs .breadcrumb-item.active a,
.quarto-title-banner .quarto-page-breadcrumbs .breadcrumb-item:last-child a {
    color: #ffffff;
    font-weight: 600;
}

/* ============================================================================
   Zemansky-ariketak — exercises brought over from the lecturer's solved
   collection (kept private; see PORTING_ARIKETAK.md in the project root).

   The page structure is this site's own (panel-tabset + Testuingurua /
   Emaitza / Ebazpena callouts); only the palette comes from the origin:

       deep orange  #d84315  primary        → statement  (Testuingurua)
       teal         #00897b  accent         → result     (Emaitza)
       indigo       #3949ab  working-out    → solution   (Ebazpena)

   The same three colours carry those meanings in the origin's figures
   (estiloa.py: data / mark / fit), so a student meets one colour code.

   Everything is scoped to .zemansky-ariketak: no other page moves. To port
   exercises from another source, copy this block, rename the class and the
   three colours. Added 2026-09-23.
   ========================================================================= */
.zemansky-ariketak {
    --za-primary: #d84315;
    --za-primary-dark: #bf360c;
    --za-accent: #00897b;
    --za-accent-dark: #00695c;
    --za-fit: #3949ab;
    --za-fit-dark: #283593;
}

/* Section banner that separates this block from the rest of the page */
.zemansky-ariketak-header {
    border-left: 5px solid #d84315;
    background: linear-gradient(90deg, rgba(216, 67, 21, 0.10), rgba(216, 67, 21, 0));
    border-radius: 0.25rem;
    margin: 2.5rem 0 1.5rem;
    padding: 0.9rem 1.1rem;
}
.zemansky-ariketak-header h2,
.zemansky-ariketak-header .za-title {
    color: #bf360c;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    margin: 0 0 0.3rem;
    border: none;
    padding: 0;
}
.zemansky-ariketak-header .za-source {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    margin: 0;
}
.zemansky-ariketak-header .za-source a { color: #bf360c; }

/* Callouts: 4px coloured rule + tinted header, as on the origin site */
.zemansky-ariketak div.callout {
    border-left-width: 4px !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0.25rem;
    margin: 1.4rem 0;
}
.zemansky-ariketak div.callout .callout-header {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
}
.zemansky-ariketak div.callout-note {
    border-left-color: var(--za-primary) !important;
}
.zemansky-ariketak div.callout-note .callout-header {
    background-color: rgba(216, 67, 21, 0.10) !important;
    color: var(--za-primary-dark) !important;
}
.zemansky-ariketak div.callout-important {
    border-left-color: var(--za-accent) !important;
}
.zemansky-ariketak div.callout-important .callout-header {
    background-color: rgba(0, 137, 123, 0.10) !important;
    color: var(--za-accent-dark) !important;
}
.zemansky-ariketak div.callout-tip {
    border-left-color: var(--za-fit) !important;
}
.zemansky-ariketak div.callout-tip .callout-header {
    background-color: rgba(57, 73, 171, 0.10) !important;
    color: var(--za-fit-dark) !important;
}

/* Tabs: the active exercise tab in the origin's primary */
.zemansky-ariketak .panel-tabset .nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--za-primary);
    color: var(--za-primary-dark);
    font-weight: 600;
}
.zemansky-ariketak .panel-tabset .nav-tabs .nav-link:hover {
    color: var(--za-primary);
}

/* Rule between exercises, in the section colour rather than the page grey */
.zemansky-ariketak hr {
    border-top: 1px solid rgba(216, 67, 21, 0.25);
    opacity: 1;
}

/* Quarto paints the callout title separately from the header background */
.zemansky-ariketak div.callout-note .callout-title-container { color: var(--za-primary-dark) !important; }
.zemansky-ariketak div.callout-important .callout-title-container { color: var(--za-accent-dark) !important; }
.zemansky-ariketak div.callout-tip .callout-title-container { color: var(--za-fit-dark) !important; }

/* =========================================================================
   IRUZKINAK — commentary blocks appended to individual exercises

   A fourth callout kind, on top of the three of .zemansky-ariketak:

       deep orange  #d84315  → statement  (Testuingurua)
       teal         #00897b  → result     (Emaitza)
       indigo       #3949ab  → solution   (Ebazpena)
       purple       #6a1b9a  → commentary (Iruzkinak)   ← this block

   Iruzkinak carries what is *about* the exercise rather than part of it:
   an assumption the printed solution leaves implicit, an extension, a
   doubt about the data. Purple is the one hue far from the other three,
   so the box reads as a different kind of thing at a glance.

   Scoped to .iruzkinak, which is set as an extra class on the callout
   itself (`::: {.callout-caution .iruzkinak ...}`) — Quarto carries extra
   classes through to the rendered div. That way the block styles the same
   inside .zemansky-ariketak and outside it, on the page's own exercises.
   Added 2026-09-23.
   ========================================================================= */
div.callout.iruzkinak {
    --iz-main: #6a1b9a;
    --iz-dark: #4a148c;
    border-left-width: 4px !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left-color: var(--iz-main) !important;
    border-radius: 0.25rem;
    margin: 1.4rem 0;
}
div.callout.iruzkinak .callout-header {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    background-color: rgba(106, 27, 154, 0.10) !important;
    color: var(--iz-dark) !important;
}
div.callout.iruzkinak .callout-title-container { color: var(--iz-dark) !important; }
