/* cmsms stylesheet: EHBWiskunde modified: Sunday, February 22, 2026 12:45:48 PM */
/* ==========================================================================
   EHB Wiskunde - Responsive styles
   Preserves original design with semantic HTML and mobile-friendly layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Header */
  --header-gradient-start: #974418;
  --header-gradient-end: #dea000;
  --header-text: #fdfaf5;

  /* Navigation */
  --nav-inactive-gradient-top: #ad4d1c;
  --nav-inactive-gradient-bottom: #c18915;
  --nav-inactive-text: #fff;
  --nav-hover-bg: #d39f42;
  --nav-active-bg: #ebeded;
  --nav-active-text: #333333;

  /* Content */
  --content-bg: #ebeded;
  --content-text: #333333;
  --heading-color: #5b2f0a;

  /* Footer */
  --footer-bg: #f9f2ea;
  --footer-text: #444444;

  /* Links */
  --link-color: #1666a3;
  --link-hover: #0b4775;

  /* Layout */
  --content-max-width: 800px;
  --content-padding: 20px;
  --spacing: 15px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--content-text);
  background-color: var(--content-bg);
}

/* --------------------------------------------------------------------------
   Page wrapper
   -------------------------------------------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  flex-shrink: 0;
}

.header-banner {
  background: linear-gradient(to bottom, var(--header-gradient-start), var(--header-gradient-end));
  border-bottom: 1px solid #8d4702;
}

.header-banner-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: normal;
  color: var(--header-text);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: inherit;
}

.header-logo {
  width: auto;
  height: auto;
  max-width: 100px;
  max-height: min(100px, 25vh);
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .header-logo {
    max-width: min(80px, 20vh);
    max-height: min(80px, 20vh);
  }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  background: linear-gradient(to bottom, var(--nav-inactive-gradient-top), var(--nav-inactive-gradient-bottom));
  box-shadow: inset 0 1px 0 0 #dea100;
  width: 100%;
}

.nav-list,
.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: var(--content-max-width);
  margin-inline: auto;
}

/* Style anchors within nav by structure (no nav-link class needed for CMS) */
.site-nav ul a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--nav-inactive-text);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav ul a:hover {
  background-color: var(--nav-hover-bg);
  color: var(--nav-inactive-text);
}

/* Active tab: CMS uses .menuactive on li, static template uses .is-active on a */
.site-nav .menuactive a,
.site-nav .menuactive a:hover,
.site-nav ul a.is-active,
.site-nav ul a.is-active:hover {
  background-color: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--content-bg);
  margin-bottom: -1px;
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */
.site-main {
  flex: 1;
  background-color: var(--content-bg);
  padding: var(--content-padding);
  padding-top: 2.5rem
}

.content-article {
  max-width: calc(var(--content-max-width) - 2.5rem);
  margin: 0 auto;
}

.article-header {
  margin-bottom: var(--spacing);
}

.page-title {
  margin: 0 0 0.5rem 0;
  font-family: Georgia, Palatino, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: normal;
  color: var(--heading-color);
}

.kvk-number {
  margin: 0;
  font-size: 0.95rem;
  color: var(--content-text);
}

.article-body {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

@media (max-width: 680px) {
  .article-body {
    flex-direction: column;
  }

  .article-aside {
    flex: 1 1 100%;
  }
}

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

.article-aside {
  flex: 0 0 290px;
  max-width: 100%;
}

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

.article-content p {
  margin: var(--spacing) 0;
}

.article-content p:first-of-type {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Typography (content area)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: var(--spacing) 0 0.625rem 0;
}

h2 {
  font-size: 1.4rem;
  color: var(--heading-color);
  font-family: Georgia, Palatino, serif;
}

h3 {
  font-size: 1.2rem;
}

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

a:hover {
  color: var(--link-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid #dddddd;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: auto;
  height: 100px;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-text);
}
