/* Plain document presentation for the original SIRITH thesis. */
:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
    color: #181818;
    background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: 1.0625rem; line-height: 1.7; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 1rem; padding: 0.5rem 1rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1rem clamp(1.25rem, 5vw, 5rem); }
.site-header { border-bottom: 1px solid #ddd; }
.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; text-decoration: none; }
.brand img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.brand span { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-nav a, .footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; border-bottom: 1px solid transparent; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"], .footer-nav a:hover { border-bottom-color: currentColor; }
.site-footer { border-top: 1px solid #ddd; padding-top: 2rem; padding-bottom: 2rem; }
.site-footer p { margin: 0; color: #555; font-size: 0.75rem; }
.site-footer p + p { margin-top: 0.4rem; }

.thesis-document { width: min(100% - 3rem, 74ch); margin: 0 auto; padding: 3.5rem 0 5rem; overflow-wrap: break-word; }
.thesis-title { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #ddd; }
.thesis-home-link { display: flex; align-items: center; gap: inherit; text-decoration: none; }
.thesis-title img { width: clamp(3.5rem, 10vw, 5.5rem); height: auto; flex-shrink: 0; border-radius: 0.5rem; }
.thesis-title h1 { margin: 0; color: #101923; font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; }
.thesis-title h1 span { font-weight: 400; }
.thesis-title + h2 { margin-top: 0; }
.thesis-document h2 { margin: 2.5rem 0 1rem; font-size: 1.35rem; line-height: 1.4; }
.thesis-document h3 { margin: 2rem 0 1rem; font-size: 1.1rem; line-height: 1.5; }
.thesis-document p { margin: 0 0 1.25rem; }
.thesis-document sup { font-size: 0.7em; line-height: 0; }
.thesis-table { margin: 1.5rem 0; }
.thesis-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.thesis-table th, .thesis-table td { width: 50%; border: 1px solid #999; padding: 0.35rem 0.6rem; text-align: left; font-weight: 400; vertical-align: top; }
.thesis-table thead th { font-weight: 600; }
.thesis-costs { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.thesis-costs li { margin: 0 0 0.5rem; }

.thesis-questions { margin: 1.5rem 0 0; }
.thesis-questions details { border-top: 1px solid #ccc; }
.thesis-questions details:last-child { border-bottom: 1px solid #ccc; }
.thesis-questions summary { padding: 1.25rem 0; cursor: pointer; font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.thesis-questions details > div { padding-bottom: 0.5rem; }
.thesis-references { margin-top: 3rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.thesis-references p { scroll-margin-top: 1.5rem; }

@media (max-width: 600px) {
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .site-nav { gap: 0.25rem 1rem; }
    .thesis-document { width: calc(100% - 2.5rem); padding: 2rem 0 3rem; }
    .thesis-table table { font-size: 0.8rem; }
    .thesis-table th, .thesis-table td { padding: 0.35rem 0.4rem; }
}

@media print {
    .site-header, .site-footer, .skip-link { display: none; }
    .thesis-document { width: 100%; max-width: none; padding: 0; font-size: 11pt; }
    .thesis-document h2, .thesis-document h3, .thesis-questions summary { break-after: avoid; }
    .thesis-table { break-inside: avoid; }
    .thesis-questions details::details-content { content-visibility: visible; }
    .thesis-questions details > div { display: block !important; }
}
