/* V SIMELP — light redesign (palette from SimpleCorp light-orange) */
:root {
  --accent: #cb5234;
  --accent-dark: #c04129;
  --border: #d8d5cd;
  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --text: #303031;
  --muted: #5c5a55;
  --footer-bg: #3f3f3f;
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(180deg, #faf8f4 0%, var(--bg) 180px),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo img {
  display: block;
  width: 72px;
  height: auto;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-slogan {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.4;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.partner-logos img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* Layout */
.site-main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 12px;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* Side nav */
.nav-toggle {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.side-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}

.side-nav .menu li {
  border-bottom: 1px solid var(--border);
}

.side-nav .menu li:last-child {
  border-bottom: none;
}

.side-nav .menu a {
  display: block;
  padding: 9px 12px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.side-nav .menu a:hover,
.side-nav .menu a.active,
.side-nav .menu li.active > a {
  color: var(--accent);
  background: var(--bg-soft);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* Content */
.page-header {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

.featured-notice {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff8f5, var(--bg-soft));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.featured-notice p {
  margin: 0 0 8px;
}

.featured-notice p:last-child {
  margin-bottom: 0;
}

.page-body {
  font-size: 1rem;
}

.page-body p {
  margin: 0 0 12px;
}

.page-body h2,
.page-body h3,
.page-body h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 1.4em 0 0.5em;
  color: var(--text);
}

.page-body ul,
.page-body ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.page-body li {
  margin-bottom: 4px;
}

.page-body img {
  display: block;
  margin: 0 0 14px;
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.92rem;
}

.page-body th,
.page-body td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.page-body th {
  background: var(--bg-soft);
}

.page-body .item-list > ul {
  list-style: none;
  padding: 0;
}

.page-body .item-list > ul > li {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.page-body .views-label {
  font-weight: 600;
  color: var(--muted);
}

.field-name-field-image {
  margin-bottom: 14px;
}

/* Blog list */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card {
  border: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--bg);
}

.blog-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.blog-preview {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-preview p {
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: #e8e6e1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f0a78f;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0 0 10px;
}

/* romlidata from showLinks */
.romlidata {
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .nav-toggle {
    display: block;
  }

  .side-nav .menu {
    display: none;
  }

  .side-nav .menu.is-open {
    display: block;
  }

  .partner-logos img {
    height: 34px;
  }

  .site-slogan {
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo img {
    width: 56px;
  }

  .header-inner {
    padding: 14px 14px 12px;
  }

  .site-main {
    padding: 16px 14px 36px;
  }
}
