:root{--green:#126b4b;--green2:#0b5039;--mint:#eef7f2;--ink:#16241f;--muted:#68756f;--line:#dde7e1;--bg:#f7faf8;--white:#fff;--shadow:0 12px 30px rgba(18,56,43,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}.app{display:grid;grid-template-columns:285px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:26px 18px;overflow:auto}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 25px;border-bottom:1px solid var(--line);margin-bottom:16px}.mark{width:42px;height:42px;border-radius:12px;background:var(--green);display:grid;place-items:center;color:#fff;font-weight:900}.brand strong{font-size:20px}.brand small{display:block;color:var(--muted);margin-top:2px}.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#87938d;margin:20px 12px 8px}.nav a,.nav summary{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;font-size:14px;cursor:pointer;list-style:none}.nav a:hover,.nav summary:hover,.nav a.active{background:var(--mint);color:var(--green2)}.nav details a{padding-left:34px;font-size:13px;color:#52615a}.nav summary::-webkit-details-marker{display:none}.chev{margin-left:auto;transition:.2s}.nav details[open] .chev{transform:rotate(90deg)}main{padding:34px 42px 70px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.search{width:min(520px,100%);position:relative}.search input{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px 16px 13px 42px;font-size:14px;outline:none}.search span{position:absolute;left:15px;top:11px;color:var(--muted)}.hero{background:linear-gradient(120deg,#e6f4ed,#f7fbf9);border:1px solid #dbe9e1;border-radius:20px;padding:42px;margin-bottom:34px;position:relative;overflow:hidden}.hero:after{content:"K";position:absolute;right:45px;top:-38px;font:800 210px/1 Georgia,serif;color:rgba(18,107,75,.06)}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-weight:800}.hero h1{font-size:44px;line-height:1.05;margin:10px 0 14px;max-width:700px}.hero p{max-width:620px;color:var(--muted);font-size:17px;line-height:1.6}.section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 16px}.section-head h2{margin:0;font-size:24px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;min-height:145px;box-shadow:0 1px 0 rgba(0,0,0,.02);transition:.18s}.card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#c9ddd2}.icon{width:38px;height:38px;border-radius:10px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-weight:800;margin-bottom:22px}.card h3{margin:0 0 7px;font-size:17px}.card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.count{margin-top:18px;color:var(--green);font-size:12px;font-weight:700}.article-list{display:grid;gap:12px}.article-row{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px}.article-row h3{margin:0 0 6px;font-size:17px}.meta,.tags{font-size:12px;color:var(--muted)}.tag{display:inline-block;background:var(--mint);color:var(--green2);padding:4px 8px;border-radius:999px;margin:8px 5px 0 0}.content{max-width:860px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:42px;line-height:1.75}.content h1,.content h2,.content h3{line-height:1.25}.content img{max-width:100%;height:auto;border-radius:12px}.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:16px}.mobile{display:none}.empty{padding:34px;border:1px dashed #cbd9d1;border-radius:14px;text-align:center;color:var(--muted)}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}.app{grid-template-columns:240px 1fr}main{padding:28px}}@media(max-width:760px){.app{display:block}.sidebar{position:fixed;z-index:20;left:-290px;width:280px;transition:.2s}.sidebar.open{left:0}.mobile{display:inline-flex;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}.topbar{align-items:center}.grid{grid-template-columns:1fr}.hero{padding:28px}.hero h1{font-size:34px}main{padding:20px}.content{padding:24px}.hero:after{display:none}}

/* Individual note pages */

.article-main{
  max-width:none;
  margin:0;
  padding:28px 34px 70px;
}

/* Keeps a little breathing room on both sides */
.article-page-container{
  width:100%;
  max-width:1600px;
  margin:0 auto;
}

.article-topbar{
  max-width:1600px;
  margin:0 auto 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line);
}

.article-brand{
  display:flex;
  align-items:center;
  gap:11px;
  flex:0 0 auto;
}

.article-brand .mark{
  width:38px;
  height:38px;
  border-radius:10px;
}

.article-brand strong{
  display:block;
  font-size:18px;
}

.article-brand small{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:1px;
}

.article-topbar .search{
  max-width:440px;
}

.article-breadcrumb{
  margin:0 0 18px;
}

/* Main note + right categories */
.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
}

/* The actual note card */
.article-content{
  max-width:none;
  width:100%;
  margin:0;
  min-width:0;

  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;

  padding:38px 42px 50px;

  box-shadow:0 2px 8px rgba(18,56,43,.025);
}

/* Main note title */
.note-title{
  font-size:clamp(36px,3.5vw,54px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em;
  margin:10px 0 10px!important;
  max-width:1100px;
  overflow-wrap:anywhere;
}

/* Tags directly below title */
.title-tags{
  margin:0 0 34px;
}

.title-tags .tag{
  margin-top:8px;
  border:1px solid var(--line);
  background:var(--mint);
  padding:6px 10px;
}

/* Notes */
.note-body{
  font-size:17px;
  line-height:1.8;
  overflow-wrap:anywhere;
  word-break:normal;
}

.note-body h1{
  font-size:32px;
  margin:42px 0 14px;
}

.note-body h2{
  font-size:27px;
  margin:38px 0 12px;
}

.note-body h3{
  font-size:22px;
  margin:32px 0 10px;
}

.note-body p,
.note-body li{
  overflow-wrap:anywhere;
}

.note-body img{
  display:block;
  max-width:100%;
  height:auto;
  margin:26px auto;
  border-radius:12px;
}

/* Right-side category card */
.article-sidebar{
  position:sticky;
  top:28px;

  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;

  padding:18px;

  max-height:calc(100vh - 56px);
  overflow:auto;

  box-shadow:0 2px 8px rgba(18,56,43,.025);
}

.article-sidebar-title{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  color:var(--green);

  padding:3px 10px 12px;
  border-bottom:1px solid var(--line);
  margin-bottom:8px;
}

.article-sidebar .nav-label{
  display:none;
}


/* Tablet */
@media(max-width:900px){

  .article-main{
    padding:22px 24px 55px;
  }

  .article-layout{
    grid-template-columns:1fr;
    gap:24px;
  }

  .article-content{
    padding:32px;
  }

  .article-sidebar{
    position:static;
    max-height:none;
    order:2;
  }

  .note-title{
    font-size:clamp(32px,7vw,46px)!important;
  }

  .article-topbar{
    align-items:flex-start;
  }

  .article-topbar .search{
    max-width:360px;
  }
}


/* Mobile */
@media(max-width:600px){

  .article-main{
    padding:18px 14px 44px;
  }

  .article-topbar{
    display:block;
  }

  .article-topbar .search{
    margin-top:16px;
    max-width:none;
  }

  .article-content{
    padding:24px 20px 32px;
    border-radius:14px;
  }

  .note-title{
    font-size:32px!important;
  }

  .note-body{
    font-size:16px;
  }

  .note-body h1{
    font-size:27px;
  }

  .note-body h2{
    font-size:24px;
  }

  .note-body h3{
    font-size:20px;
  }
}

/* Site-wide search */

.search{
  position:relative !important;
  z-index:100;
}

.site-search-results{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  min-width:420px;

  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;

  box-shadow:0 16px 40px rgba(18,56,43,.14);

  max-height:440px;
  overflow-y:auto;

  z-index:9999;
}

.site-search-results.open{
  display:block;
}

.site-search-results .search-result{
  display:block;
  padding:13px 16px;
  background:#fff;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}

.site-search-results .search-result:first-child{
  border-radius:14px 14px 0 0;
}

.site-search-results .search-result:last-child{
  border-bottom:0;
  border-radius:0 0 14px 14px;
}

.site-search-results .search-result:hover{
  background:var(--mint);
}

.site-search-results .search-result-title{
  display:block;
  margin:0;
  padding:0;

  font-size:14px;
  line-height:1.4;
  font-weight:700;

  color:var(--ink);
}

.site-search-results .search-result-meta{
  display:block;
  margin-top:4px;

  font-size:11px;
  line-height:1.4;

  color:var(--muted);
}

.site-search-results .search-result-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;

  margin-top:7px;
}

.site-search-results .search-result-tags span{
  display:inline-block;

  padding:3px 7px;

  background:var(--mint);
  color:var(--green2);

  border-radius:999px;

  font-size:10px;
  line-height:1.3;
}

.site-search-results .search-empty{
  padding:16px;

  background:#fff;
  border-radius:14px;

  font-size:13px;
  color:var(--muted);
}

@media(max-width:600px){

  .site-search-results{
    min-width:0;
    width:100%;
    max-height:380px;
  }

}

/* Rich note content */

/* Tables */

.table-wrap{
  width:100%;
  overflow-x:auto;
  margin:26px 0 32px;
  border:1px solid var(--line);
  border-radius:12px;
}

.note-body table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:15px;
}

.note-body th{
  background:var(--mint);
  color:var(--green2);
  font-weight:700;
  text-align:left;
}

.note-body th,
.note-body td{
  padding:12px 15px;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
  vertical-align:top;
}

.note-body th:last-child,
.note-body td:last-child{
  border-right:0;
}

.note-body tbody tr:last-child td{
  border-bottom:0;
}


/* Quotes */

.note-body blockquote{
  margin:26px 0;
  padding:16px 20px;

  background:var(--mint);
  border-left:4px solid var(--green);
  border-radius:0 10px 10px 0;

  color:#40534a;
  font-size:16px;
  line-height:1.7;
}

.note-body blockquote p{
  margin:0;
}


/* Images */

.note-body img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;

  margin:28px auto;

  border-radius:12px;
  border:1px solid var(--line);
}


/* Links inside notes */

.note-body a{
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:2px;
}


/* Horizontal divider */

.note-body hr{
  border:0;
  border-top:1px solid var(--line);
  margin:38px 0;
}


/* Lists */

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

.note-body li{
  margin:7px 0;
}

/* Site footer */

.site-footer{
  margin-top:60px;
  padding:28px 0 10px;
  border-top:1px solid var(--line);
  text-align:center;
}

.footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 22px;
  margin-bottom:12px;
}

.footer-links a{
  color:var(--green2);
  font-size:13px;
  font-weight:600;
}

.footer-links a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.site-footer p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

@media(max-width:600px){
  .site-footer{
    margin-top:42px;
    padding-top:22px;
  }

  .footer-links{
    gap:9px 16px;
  }
}
