* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Gudea', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #303030;
    background: #e8e8e8;
}

a { color: #c9302c; text-decoration: none; }
a:hover { color: #9e2420; text-decoration: underline; }

/* Header */
.site-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding { display: flex; align-items: center; gap: 15px; }
.site-branding img { height: 90px; width: auto; }
.site-title { font-size: 28px; font-weight: 700; color: #303030; }
.site-title a { color: #303030; }
.site-title a:hover { text-decoration: none; }
.site-description { font-size: 14px; color: #888; margin-top: 2px; }

/* Navigation */
.main-nav {
    background: #333;
}
.main-nav ul {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}
.main-nav a:hover { background: #c9302c; text-decoration: none; }

/* Content wrapper */
.content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
}
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* Featured post */
.featured-post {
    background: #fff;
    padding: 35px 35px 35px;
    margin-bottom: 10px;
}
.featured-post h1 { font-size: 28px; margin-bottom: 10px; color: #303030; font-weight: 700; }
.featured-post h2 { font-size: 28px; margin-bottom: 10px; }
.featured-post h2 a { color: #303030; }
.featured-post h2 a:hover { color: #c9302c; }
.featured-post .subtitle { color: #888; font-size: 16px; margin-bottom: 25px; }
.home-static .subtitle { margin-top: 0; }

/* Icon boxes */
.icon-boxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.icon-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 30px;
    text-align: center;
    background: #fff;
    flex: 1;
    min-width: 140px;
}
.icon-box img { width: 80px; height: auto; margin-bottom: 8px; }
.icon-box span { display: block; font-weight: 700; font-size: 15px; color: #303030; }
.icon-box:hover { border-color: #c9302c; }

/* Description section */
.description {
    padding: 25px 0 0;
    line-height: 1.8;
}
.featured-post .description { padding-top: 35px; }

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.post-card {
    background: #fff;
    padding: 25px;
}
.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.post-meta span + span::before { content: ' / '; }
.post-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.4; }
.post-card h3 a { color: #303030; }
.post-card h3 a:hover { color: #c9302c; }
.post-card p { color: #666; margin-bottom: 15px; }
.btn-read {
    display: inline-block;
    background: #c9302c;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
}
.btn-read:hover { background: #9e2420; color: #fff; text-decoration: none; }

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
}
.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9302c;
}
.sidebar-widget ul { list-style: disc; padding-left: 20px; }
.sidebar-widget li { margin-bottom: 8px; font-size: 14px; }
.sidebar-widget p { font-size: 14px; color: #666; }
.sidebar-widget img { max-width: 100%; height: auto; }

/* Sub-pages */
.page-content {
    background: #fff;
    padding: 35px;
    margin-bottom: 10px;
}
.page-content h1 { font-size: 28px; margin-bottom: 20px; }
.page-content h2 { font-size: 22px; margin-top: 25px; margin-bottom: 10px; }
.page-content p { margin-bottom: 15px; line-height: 1.8; }
.page-content ul { padding-left: 25px; margin-bottom: 15px; }
.page-content li { margin-bottom: 6px; }
.page-content table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.page-content th, .page-content td { padding: 8px 12px; border: 1px solid #ddd; text-align: left; }
.page-content th { background: #f5f5f5; font-weight: 700; }

/* Dataset catalog */
.dataset-regen-note {
    font-size: 14px;
    color: #666;
    border-left: 3px solid #ddd;
    padding-left: 12px;
    margin-bottom: 20px;
}
.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.dataset-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px;
    background: #fafafa;
}
.dataset-card h3 {
    font-size: 15px;
    margin: 10px 0 8px;
    line-height: 1.35;
    word-break: break-word;
}
.dataset-card h3 a { color: #303030; }
.dataset-card h3 a:hover { color: #c9302c; }
.dataset-meta { font-size: 14px; color: #444; margin-bottom: 8px; }
.dataset-note { font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.5; }
.dataset-thumb {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.dataset-thumb img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    display: block;
}

/* Footer */
.site-footer {
    background: #333;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 0;
}
.site-footer a { color: #ddd; }

/* Responsive */
@media (max-width: 768px) {
    .content-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
    .post-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-direction: column; }
}
