/* Local layout corrections for the v13 light reference. */
.app > .left,
.app > .center,
.app > .right {
  min-width: 0;
}

.left .divide {
  margin: 18px 0 0;
}

.left .telegram-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #d5e4c2;
  border-radius: 6px;
  background: #f0f5e6;
  color: #27331f;
  white-space: normal;
  overflow-wrap: anywhere;
}

.left .telegram-card:hover {
  background: #e7f2d6;
  border-color: #abc982;
}

.telegram-card .tg-eyebrow,
.telegram-card strong,
.telegram-card .tg-copy,
.telegram-card .tg-cta {
  display: block;
  max-width: 100%;
}

.telegram-card .tg-eyebrow {
  margin-bottom: 7px;
  color: #51712e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.telegram-card strong {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.telegram-card .tg-copy {
  color: #53654a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.telegram-card .tg-cta {
  margin-top: 12px;
  color: #3b6b1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.editorial-disclosure{margin-top:26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;color:#4d594a}
.editorial-disclosure summary{cursor:pointer;font-weight:600}
.editorial-disclosure p{margin:12px 0 0}
.sources-disclosure{margin-top:58px;font-size:14px}
.draft-skill-status{margin-top:22px;padding-top:16px;border-top:1px solid #465343;color:#c5d5be;font-size:12px;line-height:1.5}
.skill-label{color:#c5d5be;font-size:12px;font-weight:700;margin:16px 0 8px}
.skill-command{display:block;overflow-wrap:anywhere;background:#182017;border:1px solid #52614e;border-radius:5px;color:#f4f6ee;padding:12px;font-size:12px;line-height:1.5}
.skill-agent{display:block;width:100%;margin:0 0 9px;padding:9px 42px 9px 9px;border:1px solid #687663;border-radius:5px;background:#1d251b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23dce5d8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;color:#fff;font:inherit;font-size:13px;appearance:none;-webkit-appearance:none}
.rtpanel.skill-panel .skill-copy{margin:0 0 10px}
.rtpanel.skill-panel .skill-fine{font-size:11px;line-height:1.5;color:#adb9a7;margin-top:14px}
.rtpanel.skill-panel > p:first-of-type{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rtpanel.skill-panel .skill-install-help{font-size:11px;line-height:1.5;color:#adb9a7;margin:12px 0}

/* Framework-page reference: align the AI panel to the H1 rather than breadcrumbs. */
@media (min-width:1151px){
  .app > .right{margin-top:50px}
}

/* Global header contract: one stable visual treatment for every page template. */
.top .topnav > a:hover,
.site-header .links > a:hover { color:#638f16; }
/* The approved header has no search field; page search stays inside page content. */
.top .search-global,
.top .top-search { display:none !important; }

/* A single hover acknowledgement for all text links, irrespective of template. */
a[href]:not(.logo):hover { color:#638f16; }
.top .header-actions .github-nav:hover,
.site-header .header-actions .github-nav:hover,
.top .header-actions .add:hover,
.site-header .header-actions .add:hover {
  border-color:#a9c76a;
  background:#f2f8e3;
  color:#4d7412;
}
.top .header-actions .add,
.site-header .header-actions .add { background:#fff; border-color:#cfd6ca; color:#242b23; }
.top .header-actions .lang-switch button:hover,
.site-header .header-actions .lang-switch button:hover { background:#f2f8e3; color:#4d7412; }

/* Every text link receives the same green acknowledgement on hover, including sources. */
.source-list a,
.resource-list a,
.rtpanel a { transition:color .16s ease, border-color .16s ease; }
.source-list a:hover,
.resource-list a:hover,
.rtpanel a:not(.skill-secondary):hover { color:#638f16; }
.source-list a:hover { border-color:#9dbc63; }

/* Surface rule: text never touches a coloured or white panel edge. */
.left .telegram-card,
aside.right .sidebar-promo,
.rtpanel.skill-panel { padding:20px; }

/* The sidebar promotion is a self-contained panel, not a two-column line. */
.sidebar-promo {
  display:block;
  margin:24px 0;
}
.sidebar-promo span {
  display:block;
  margin:0 0 16px;
  font-size:14px;
  line-height:1.5;
}
.sidebar-promo a {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  font-size:13px;
  font-weight:600;
}

/* Content inside filled surfaces always keeps a 20 px breathing room. */
.rtpanel:not(.skill-panel), .right .rtpanel:not(.skill-panel) { padding:20px; }
.rtpanel > :first-child { margin-top:0; }
.rtpanel > :last-child { margin-bottom:0; }
.promo,
.method-card,
.quality-card { padding:20px; }
.ranks summary {
  grid-template-columns:minmax(0,1fr) auto 20px;
  column-gap:15px;
  padding:20px;
}
.ranks .factor-body { padding:20px; }
.ranks.scoreless summary { grid-template-columns:minmax(0,1fr) 20px; }
@media (max-width:700px){
  .ranks summary {
    grid-template-columns:minmax(0,1fr) auto 17px;
    column-gap:15px;
    padding:20px;
  }
  .ranks.scoreless summary { grid-template-columns:minmax(0,1fr) 17px; }
}

/* Ranking accordion: a quiet, consistent disclosure affordance. */
.ranks summary .plus{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:20px;
  height:24px;
  color:#536050;
  font:400 20px/1 'Golos Text',Arial,sans-serif;
}
.ranks details:not([open]) summary .plus::before{content:'+'}
.ranks details[open] summary .plus::before{content:'−'}
@media (max-width:700px){
  .ranks summary .plus{width:17px;font-size:18px}
}


/* Shared site header: the same shell is used on every local page. */
.top{height:80px;min-height:80px;border-top:3px solid #20261f;border-bottom:1px solid var(--line);background:#fff}
.top .topin{width:100%;max-width:var(--width);height:77px;margin:0 auto;padding:0 30px;display:flex;align-items:center;gap:26px;flex-wrap:nowrap}
.top .logo{flex:0 0 270px;min-width:270px;color:#171a17;text-decoration:none}
.top .topnav{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:19px;white-space:nowrap}
.top .topnav>a{min-height:40px;display:inline-flex;align-items:center;font-size:13px;font-weight:600}
.top .header-actions{display:inline-flex;align-items:center;gap:6px;margin-left:7px}
.top .header-actions .github-nav,.top .header-actions .add{height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid #cfd6ca;border-radius:6px;background:#fff;color:#242b23;font-size:13px;font-weight:600;transition:border-color .16s ease,background-color .16s ease,color .16s ease}
.top .header-actions .lang-switch{display:grid;grid-template-columns:1fr 1fr;align-items:center;width:86px;height:40px;padding:3px;gap:2px;border:1px solid #cfd6ca;border-radius:6px;background:#fff}
.top .header-actions .lang-switch button{height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:#667063;font:700 11px/1 'Golos Text',Arial,sans-serif}
.top .header-actions .lang-switch button[aria-pressed="true"]{background:#dff39a;color:#233019}

/* The artwork is circular; clipping the transparent/white corners lets it sit on the dark panel cleanly. */
.employee-avatar{
  display:block;
  width:92px;
  height:92px;
  border-radius:50%;
  object-fit:cover;
  background:#1b211a;
}

/* Related framework cards reuse the main catalog component. */
.related-frameworks .related-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:20px}
.related-frameworks .related-heading a{font-size:14px;text-decoration:underline;text-underline-offset:4px}
.related-frameworks .related-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.related-frameworks .fw{min-width:0;min-height:220px;padding:20px}
@media(max-width:1040px){.related-frameworks .related-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.related-frameworks .related-cards{grid-template-columns:1fr}.related-frameworks .related-heading{align-items:flex-start;flex-direction:column;gap:4px}}

/* AI employees: search and category controls follow the shared light UI. */
.employee-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:26px;}
.employee-search{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 13px;border:1px solid #cfd6ca;background:#fff;}
.employee-search span{color:#697464;font-size:17px;line-height:1;}
.employee-search input{min-width:260px;border:0;outline:0;background:transparent;color:#242b23;font:14px 'Golos Text',Arial,sans-serif;}
.employee-search input::placeholder{color:#7a8276;}
.employee-tabs{display:flex;flex-wrap:wrap;gap:6px;}
.employee-tabs button{min-height:40px;padding:0 12px;border:1px solid #d3dbcf;border-radius:4px;background:#fff;color:#43503f;font:600 13px 'Golos Text',Arial,sans-serif;transition:border-color .16s ease,background-color .16s ease,color .16s ease;}
.employee-tabs button:hover,.employee-tabs button[aria-selected="true"]{border-color:#a9c76a;background:#f2f8e3;color:#4d7412;}
@media(max-width:700px){.employee-controls{align-items:stretch;}.employee-search{width:100%;}.employee-search input{min-width:0;width:100%;}.employee-tabs{width:100%;}.employee-tabs button{flex:1 0 auto;}}
@media (max-width:1040px){
  .top{height:auto;min-height:126px}
  .top .topin{height:auto;min-height:123px;padding:10px 18px;flex-wrap:wrap;align-content:center}
  .top .logo{flex:1 1 auto;min-width:170px;font-size:19px}
  .top .topnav{width:auto;margin-left:auto;gap:7px}
  .top .topnav>a{display:none}
  .top .header-actions{margin-left:0}
  .top .header-actions .github-nav,.top .header-actions .add{display:none}
}
