@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  font-family: "Elms Sans", Arial, sans-serif;
  --checkon-page-bg: #EDE7E3;
  --checkon-panel: #d8d4d2;
  --checkon-panel-soft: #f7f3ef;
  --checkon-surface: #ffffff;
  --checkon-surface-muted: #f4f0ed;
  --checkon-text: #1d1e1c;
  --checkon-heading: #0f1115;
  --checkon-muted: rgba(29, 30, 28, 0.68);
  --checkon-soft-text: rgba(29, 30, 28, 0.52);
  --checkon-border: rgba(29, 30, 28, 0.16);
  --checkon-border-strong: rgba(29, 30, 28, 0.24);
  --checkon-radius: 10px;
  --checkon-radius-lg: 14px;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--checkon-page-bg);
  color: var(--checkon-text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Header / Navigation */

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 18px 0;
  background: linear-gradient(
    to bottom,
    var(--checkon-page-bg) 0%,
    rgba(237, 231, 227, 0.96) 76%,
    rgba(237, 231, 227, 0) 100%
  );
}

.siteHeaderInner {
  width: min(1180px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.siteLogo {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
  text-decoration: none;
}

.siteLogo img {
  display: block;
  width: 142px;
  height: auto;
  object-fit: contain;
}

.siteNav {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.siteNav a,
.siteLoginButton {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--checkon-radius);
  color: var(--checkon-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.siteNav a:hover,
.siteNav a.current,
.siteNav a.section {
  background: var(--checkon-surface);
  border-color: var(--checkon-border);
  color: var(--checkon-heading);
}

.siteLoginButton {
  padding: 0 18px;
  background: var(--checkon-heading);
  border-color: var(--checkon-heading);
  color: #ffffff;
}

.siteLoginButton:hover {
  background: var(--checkon-text);
}

/* CMS page area */

.siteMain {
  width: min(1180px, 100%);
  margin: 20px auto;
}

.cmsPage {
  min-height: 520px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--checkon-border);
  border-radius: 24px;
  background: var(--checkon-panel);
}

.cmsPageHeader {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--checkon-border);
}

.cmsPageHeader h1 {
  margin: 0;
  color: var(--checkon-heading);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.cmsContent {
  max-width: 860px;
  color: var(--checkon-text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.cmsContent:empty {
  min-height: 280px;
}

.cmsContent p {
  margin: 0 0 18px;
}

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

.cmsContent h2,
.cmsContent h3,
.cmsContent h4 {
  color: var(--checkon-heading);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cmsContent h2 {
  margin: 34px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
}

.cmsContent h3 {
  margin: 28px 0 10px;
  font-size: 26px;
}

.cmsContent h4 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.cmsContent ul,
.cmsContent ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.cmsContent li {
  margin: 6px 0;
}

.cmsContent a {
  color: var(--checkon-heading);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cmsContent blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--checkon-heading);
  border-radius: var(--checkon-radius);
  background: rgba(255, 255, 255, 0.42);
  color: var(--checkon-muted);
}

.cmsContent img {
  height: auto;
  border-radius: var(--checkon-radius-lg);
}

.cmsContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--checkon-surface);
  border-radius: var(--checkon-radius-lg);
  overflow: hidden;
}

.cmsContent th,
.cmsContent td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--checkon-border);
  text-align: left;
}

.cmsContent th {
  background: var(--checkon-panel-soft);
  color: var(--checkon-muted);
  font-size: 13px;
  font-weight: 900;
}

/* Footer */

.siteFooter {
  padding: 0 18px 24px;
}

.siteFooterInner {
  width: min(1180px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--checkon-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 900px) {
  .siteHeaderInner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .siteNav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .siteNav::-webkit-scrollbar {
    display: none;
  }

  .cmsPage {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .siteHeader {
    padding: 10px 10px 0;
  }

  .siteHeaderInner {
    padding: 10px;
    border-radius: 16px;
  }

  .siteLogo {
    min-width: 0;
  }

  .siteLogo img {
    width: 124px;
  }

  .siteLoginButton {
    min-height: 38px;
    padding: 0 12px;
  }

  .siteMain {
    padding: 16px 10px 34px;
  }

  .cmsPage {
    padding: 22px;
    border-radius: 18px;
  }

  .cmsPageHeader h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .siteFooter {
    padding: 0 10px 16px;
  }

  .siteFooterInner {
    flex-direction: column;
  }
}
