:root {
  --ks-primary: #1fb5ae;
  --ks-footer: #0b6b62;
  --ks-footer-2: #0f8f86;
  --ks-soft: #8fcfca;
  --ks-surface: #ffffff;
  --ks-subtle: #f9f9f9;
  --ks-border: #e5e5e5;
  --ks-heading: #010101;
  --ks-text: #373636;
  --ks-copy: #312f2f;
}

* { box-sizing: border-box; }
html { background: var(--ks-surface); }
body {
  margin: 0;
  color: var(--ks-text);
  background: var(--ks-surface);
  font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
.top-rule { height: 6px; background: var(--ks-primary); }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #d9d9d9;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
  overflow-x: auto;
  white-space: nowrap;
}
.site-heading {
  color: var(--ks-heading);
  font-size: 17px;
  font-weight: 400;
  text-transform: none;
}
.site-nav-list { display: flex; align-items: center; gap: 2px; }
.site-nav .pure-menu-link {
  color: var(--ks-heading);
  font-size: 17px;
  padding: 20px 14px;
  transition: color .18s ease, background .18s ease;
}
.site-nav .pure-menu-link:hover,
.site-nav .pure-menu-link:focus {
  color: var(--ks-footer-2);
  background: #fff;
}
.has-dropdown { position: relative; }
.site-dropdown {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ks-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.has-dropdown:hover .site-dropdown,
.has-dropdown:focus-within .site-dropdown { display: block; }
.site-dropdown a {
  display: block;
  padding: 9px 14px;
  color: var(--ks-heading);
  text-decoration: none;
}
.site-dropdown a:hover { color: var(--ks-footer-2); background: var(--ks-subtle); }
.home-hero {
  min-height: 180px;
  background-size: cover;
  background-position: center 38%;
}
.hero-title-band {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  text-align: center;
  background: rgba(211, 247, 252, .76);
}
.hero-title-band h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ks-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
}
.home-section {
  max-width: 1100px;
  margin: 760px auto 72px;
  padding: 0 20px;
  border-bottom: 1px dashed var(--ks-border);
}
.home-feature-grid { margin-left: -18px; margin-right: -18px; }
.home-feature-grid > [class*="pure-u"] { padding: 0 18px 36px; }
.home-feature-card {
  min-height: 510px;
  background: #fff;
  border: 1px solid var(--ks-border);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.home-feature-card h2,
.home-feature-card h3 {
  margin: 0;
  padding: 30px 18px 24px;
  color: var(--ks-heading);
  font-size: 24px;
  font-weight: 400;
}
.home-feature-card h2 a,
.home-feature-card h3 a { color: inherit; text-decoration: none; }
.home-feature-card figure { margin: 0; }
.home-feature-card figure:first-of-type img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.home-feature-card figure:nth-of-type(2) {
  width: 128px;
  height: 128px;
  margin: -64px auto 24px;
  border: 6px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ks-border);
}
.home-feature-card figure:nth-of-type(2) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-feature-card p {
  max-width: 260px;
  margin: 0 auto;
  padding: 0 10px 28px;
  color: var(--ks-copy);
  font-size: 16px;
  line-height: 1.45;
}
.page-heading {
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px 20px 18px;
}
.page-heading.compact { padding-top: 36px; }
.page-heading h1 {
  margin: 16px 0 0;
  color: var(--ks-heading);
  font-size: 34px;
  font-weight: 400;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: #999; }
.breadcrumbs li:last-child::after { content: ""; margin: 0; }
.breadcrumbs a {
  color: var(--ks-footer-2);
  text-decoration: none;
}
.content-shell {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 38px;
}
.content-shell.narrow { max-width: 980px; }
.site-prose {
  color: var(--ks-copy);
  font-size: 16px;
  line-height: 1.65;
}
.site-prose h1,
.site-prose h2,
.site-prose h3 {
  color: var(--ks-heading);
  font-weight: 400;
  line-height: 1.25;
}
.site-prose h2 { font-size: 27px; margin: 26px 0 14px; }
.site-prose h3 { font-size: 22px; margin: 22px 0 10px; }
.site-prose p { margin: 0 0 18px; }
.site-prose a,
.site-block--paragraph a,
.content-category a {
  color: var(--ks-footer-2);
  text-decoration: underline;
  text-decoration-color: rgba(15,143,134,.35);
}
.site-prose a:hover,
.content-category a:hover { color: var(--ks-primary); text-decoration-color: currentColor; }
.site-image { margin: 22px 0; }
.site-image img {
  display: block;
  border: 1px solid var(--ks-border);
  background: var(--ks-subtle);
}
figcaption {
  margin-top: 7px;
  color: #666;
  font-size: 14px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--ks-border);
}
.media-prose .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.media-prose .site-image img { max-height: 440px; object-fit: contain; }
.site-sidebar {
  border-left: 1px solid var(--ks-border);
  padding-left: 22px;
}
.sidebar-menu .pure-menu-link {
  color: var(--ks-footer-2);
  white-space: normal;
  padding: 7px 0;
}
.table-wrap { overflow-x: auto; margin: 20px 0; }
blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--ks-primary);
  background: var(--ks-subtle);
}
pre {
  overflow-x: auto;
  padding: 16px;
  background: #f4f4f4;
}
.list-card,
.category-card {
  border: 1px solid var(--ks-border);
  border-radius: 4px;
  padding: 18px;
  background: #fff;
}
.content-article,
.content-category {
  max-width: 900px;
  margin: 48px auto 80px;
  padding: 0 20px;
}
.article-main-image {
  float: right;
  width: min(33%, 280px);
  margin: 0 0 18px 24px;
  border: 1px solid var(--ks-border);
}
.article-summary,
.category-description {
  font-size: 18px;
  color: var(--ks-text);
}
.article-toc {
  margin: 18px 0 28px;
  padding: 14px 18px;
  background: var(--ks-subtle);
  border: 1px solid var(--ks-border);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.category-grid-1 { grid-template-columns: 1fr; }
.category-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin: -18px -18px 14px;
  max-width: calc(100% + 36px);
}
.category-card.horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}
.category-card.horizontal img {
  margin: 0;
  width: 180px;
  height: 140px;
}
.site-footer {
  margin-top: 80px;
  color: #fff;
  background: var(--ks-footer);
}
.footer-top {
  padding: 28px 0;
  background: var(--ks-footer);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-social a {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 12px;
  place-items: center;
}
.footer-social img { width: 24px; height: 24px; opacity: .85; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-band {
  height: 76px;
  background: var(--ks-footer-2);
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.footer-bottom {
  padding: 28px 0;
  background: var(--ks-footer);
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
@media (max-width: 900px) {
  .site-nav { justify-content: flex-start; }
  .home-section { margin-top: 180px; }
  .content-shell { grid-template-columns: 1fr; }
  .site-sidebar { border-left: 0; border-top: 1px solid var(--ks-border); padding: 20px 0 0; }
  .footer-links { justify-content: flex-start; margin-top: 18px; }
  .category-grid-2,
  .category-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title-band h1 { font-size: 30px; }
  .home-section { margin-top: 80px; }
  .home-feature-card { min-height: 0; }
  .article-main-image { float: none; width: 100%; margin: 0 0 18px; }
  .category-card.horizontal { grid-template-columns: 1fr; }
}
@media print {
  .site-header,
  .site-footer,
  .site-sidebar { display: none; }
  .content-shell,
  .content-article,
  .content-category { max-width: none; margin: 0; padding: 0; display: block; }
}
