:root {
  /* Cynilo palette, from the Cynilo website (setup/11-marketing-and-branding/01-website/04-cynilo-site-3d/css/site.css) */
  --navy-1: #0A1322;
  --navy-2: #13213A;
  --on-dark: #E9EEF5;
  --on-dark-2: #A9B7C9;
  --ink: #0F1B2D;
  --ink-2: #3A4A60;
  --line: #D5DDE7;
  --ground: #EDF0F4;
  --panel-2: #F6F8FB;
  --plum-2: #B04C8C;
  --plum-dark: #5E2450;
  --thread: #D4A24C;
  --signal: #2FB8C2;
  /* names used by the Learn stylesheet, mapped to the Cynilo palette */
  --teal: #8E2C6E;        /* plum: accent, links, buttons */
  --teal-dark: #0A1322;   /* navy: top bar */
  --teal-mid: #B04C8C;    /* plum-2 */
  --teal-light: #F1E2EC;  /* plum tint */
  --teal-pale: #F6F8FB;   /* panel-2 */
  --copper: #A97A2C;      /* deep thread gold */
  --warm: #D4A24C;        /* thread gold */
  --stone: #0F1B2D;       /* ink: body text */
  --muted: #66768C;       /* mute */
  --canvas: #EDF0F4;      /* ground */
  --panel: #FFFFFF;
  --white: #ffffff;
  --red: #B42318;
  --green: #1F7A55;
  --amber: #B7791F;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--stone);
  background: var(--canvas);
}
.topnav {
  background: var(--teal-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.topnav .logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
}
.topnav .logo span {
  color: var(--warm);
}
.topnav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 14px;
}
.topnav a:hover {
  color: var(--white);
}
.topnav .spacer {
  flex: 1;
}
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 52px 32px 44px;
  text-align: center;
}
.hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  font-size: 16px;
  color: var(--teal-light);
  max-width: 660px;
  margin: 0 auto;
}
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 36px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--teal-light);
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(31, 118, 111, 0.12);
  transform: translateY(-2px);
}
.card-header {
  background: var(--teal-dark);
  color: var(--white);
  padding: 16px 18px 12px;
  border-radius: 10px 10px 0 0;
}
.card-header .icon {
  font-size: 24px;
  margin-bottom: 6px;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.card-body {
  padding: 12px 18px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--teal-pale);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--teal-pale);
  color: var(--teal);
}
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 36px 32px 32px;
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--teal-light);
  margin-bottom: 6px;
}
.page-hero .breadcrumb a {
  color: var(--teal-light);
  text-decoration: none;
}
.page-hero h1 {
  font-size: 26px;
  font-weight: 700;
}
.page-hero p {
  color: var(--on-dark-2);
  margin-top: 6px;
  font-size: 15px;
}
article {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 32px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--teal);
}
h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 20px 0 6px;
}
p {
  line-height: 1.75;
  margin-bottom: 12px;
}
ul,
ol {
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.85;
}
li {
  margin-bottom: 3px;
}
.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
}
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(steps);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead {
  background: var(--teal-dark);
  color: var(--white);
}
thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
tbody tr:nth-child(odd) {
  background: var(--white);
}
tbody tr:nth-child(even) {
  background: var(--teal-pale);
}
td,
th {
  padding: 9px 14px;
  border-bottom: 1px solid var(--teal-light);
  vertical-align: top;
}
.callout {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: 13px 17px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 14px;
}
.callout.warn {
  background: #fef3cd;
  border-color: var(--amber);
}
.callout.tip {
  background: #e8f5e9;
  border-color: var(--green);
}
.callout.danger {
  background: #fdedec;
  border-color: var(--red);
}
.faq {
  margin: 12px 0 24px;
}
.faq details {
  border: 1px solid var(--teal-light);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--white);
}
.faq summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--teal-dark);
  font-size: 14px;
}
.faq details[open] summary {
  border-bottom: 1px solid var(--teal-light);
}
.faq details p,
.faq details ul {
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
}
.field-table td:first-child {
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
  width: 20%;
}
.field-table td:nth-child(2) {
  width: 15%;
  color: var(--muted);
  font-size: 13px;
}
.status-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
  align-items: center;
}
.status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status.draft {
  background: #f5f5f5;
  color: var(--muted);
}
.status.active {
  background: var(--teal-pale);
  color: var(--teal);
  border: 1px solid var(--teal-light);
}
.status.warning {
  background: #fef3cd;
  color: #7d6008;
}
.status.danger {
  background: #fdedec;
  color: var(--red);
}
.status.success {
  background: #e8f5e9;
  color: #1a6b2a;
}
.arrow {
  color: var(--muted);
  font-size: 18px;
}
footer {
  background: var(--teal-dark);
  color: var(--on-dark-2);
  text-align: center;
  padding: 22px;
  font-size: 13px;
}
footer a {
  color: var(--warm);
  text-decoration: none;
}
.see-also {
  background: var(--panel);
  border: 1px solid var(--teal-light);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 32px;
}
.see-also h3 {
  color: var(--teal);
  margin: 0 0 8px;
  font-size: 14px;
}
.see-also a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  margin-right: 16px;
  font-size: 14px;
}
.see-also a:hover {
  text-decoration: underline;
}
.help-generated-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.learn-cta {
  margin-top: 36px;
}
.learn-cta .learn-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 8px 0;
}
.learn-cta .learn-btn:hover {
  background: var(--teal-mid);
}
.learn-cta .learn-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Cynilo wordmark, as on www.cynilo.io. Interim until the logo files exist:
   replace the .wm markup in topnav() (build_learn_site.py) with the logo image and rebuild. */
.topnav .logo .wm { display: inline-flex; align-items: baseline; font: 800 20px/1 'Inter', system-ui, sans-serif; letter-spacing: -.045em; color: #fff; }
.topnav .logo .wm b { font-weight: 800; margin-right: .01em; background: linear-gradient(135deg, #D46AAE 0%, #B04C8C 45%, #D4A24C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav .logo .wm-i { position: relative; display: inline-block; color: #fff; }
.topnav .logo .wm-i i { position: absolute; left: 50%; top: -.04em; width: .2em; height: .2em; margin-left: -.1em; border-radius: 50%; background: #D4A24C; box-shadow: 0 0 8px rgba(212,162,76,.8); }

/* Card titles sit on the dark card header: keep them white (the generic h3 rule made them navy on navy). */
.card-header h3 { color: var(--white); margin: 0; }

.topnav .logo img { display: block; height: 24px; width: auto; }

.wn-list { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.wn-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; }
.wn-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wn-summary { color: var(--muted); line-height: 1.55; margin: .35rem 0 .75rem; }
.wn-body { margin: 0; padding-left: 1.15rem; color: var(--stone); line-height: 1.5; }
.wn-body li { margin: .35rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1.25rem; }
.chip { display: inline-block; padding: .4rem .8rem; border-radius: 999px; background: var(--panel, #fff); border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: #B04C8C; color: #8E2C6E; }
.group-label { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 .25rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.section-label a { color: inherit; text-decoration: none; }
.section-label a:hover { color: #8E2C6E; }
.browse-row { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.topnav .reader { color: rgba(255,255,255,.85); font-size: .85rem; margin-right: .75rem; white-space: nowrap; }
.topnav .reader a { color: #fff; text-decoration: underline; }
.search-box { max-width: 720px; margin: 1.75rem auto 1rem; padding: 0 1.25rem; display: flex; gap: .5rem; }
.search-box input { flex: 1; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-box button { font: inherit; font-weight: 600; padding: .7rem 1.1rem; border: 0; border-radius: 10px; background: var(--teal, #0f766e); color: #fff; cursor: pointer; }
#search-status { max-width: 720px; margin: 0 auto 1rem; padding: 0 1.25rem; color: var(--muted); }
@media (max-width: 640px) { .topnav .reader { display: none; } }
