/* Studies Pages - Minimal Style (matching main site) */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    background-color: #fdfdfd;
    color: #222;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Navigation */
.study-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #E1E1E1;
}

.study-nav-brand {
    font-size: 14px;
    font-weight: 400;
    color: #222;
    text-decoration: none;
}

.study-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.study-nav-links a {
    font-size: 12px;
    color: #818181;
    text-decoration: none;
    transition: color 0.2s ease;
}

.study-nav-links a:hover {
    color: #222;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    font-size: 12px;
    color: #818181;
    background: none;
    border: none;
    font-family: inherit;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fdfdfd;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    min-width: 280px;
    padding: 0.5rem 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 12px;
    color: #818181;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #222;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.03rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    color: #222;
}

h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem 0;
    color: #222;
    letter-spacing: -0.02rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 2rem 0 0.75rem 0;
    color: #222;
}

p {
    margin: 0 0 1rem 0;
    font-size: 14px;
    line-height: 1.8;
}

a {
    color: #1EAEDB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Article Structure */
.study-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E1E1E1;
}

.study-meta {
    font-size: 12px;
    color: #818181;
    margin-bottom: 1rem;
}

.study-role {
    display: inline-block;
    font-size: 12px;
    background: #f5f5f5;
    color: #222;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin-top: 0.5rem;
}

article {
    margin-bottom: 2rem;
}

/* Lists */
ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Images */
.figure {
    margin: 1.5rem 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #E1E1E1;
}

.figure-caption {
    font-size: 12px;
    color: #818181;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Image zoom container */
.image-container {
    overflow: hidden;
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border-radius: 4px;
    border: 1px solid #E1E1E1;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* Blockquote / Figure wrapper */
blockquote {
    margin: 1.5rem 0;
    padding: 0;
    border: none;
}

figcaption {
    font-size: 12px;
    color: #818181;
    margin-top: 0.75rem;
    text-align: center;
}

figcaption i {
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 14px;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E1E1E1;
}

th {
    font-weight: 400;
    color: #818181;
}

/* Details/Summary (collapsible sections) */
details {
    margin: 1.5rem 0;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    padding: 0;
}

summary {
    padding: 1rem;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    color: #222;
    background: #f9f9f9;
    border-radius: 4px;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "+ ";
    color: #818181;
}

details[open] summary::before {
    content: "- ";
}

details[open] summary {
    border-bottom: 1px solid #E1E1E1;
    border-radius: 4px 4px 0 0;
}

details > *:not(summary) {
    padding: 0 1rem;
}

details > p:first-of-type {
    margin-top: 1rem;
}

/* Footer */
.study-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E1E1E1;
}

.study-footer small {
    font-size: 12px;
    color: #818181;
    line-height: 1.7;
}

.study-footer ul {
    margin-top: 0.5rem;
}

.study-footer li {
    font-size: 12px;
    color: #818181;
}

/* Mark/Highlight */
mark {
    background: #fff3cd;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .study-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Overflow auto for tables with images */
.overflow-auto {
    overflow-x: auto;
}
