/* ==========================================================================
   /subscription – "Everything a plan includes": the partner dashboard's main features,
   grouped the way partners use them (Teach, Manage, Grow). Uses /css/newstyle.css tokens.
   Each group is one panel; its features are rows of a two-column list (not separate cards),
   and the tag on a row says which plans have it or what it costs.
   ========================================================================== */

.sxf-head { max-width: 780px; margin-bottom: 34px; }

.sxf-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--text-main);
}

.sxf-head h2 em { font-style: italic; font-family: var(--font-serif, Georgia, serif); font-weight: 500; color: var(--brand-blue); }
.sxf-head p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }

/* jump links: one per group */
.sxf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.sxf-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  transition: border-color .2s, color .2s;
}

.sxf-jump a:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.sxf-jump a b { font-weight: 800; color: var(--sxf-accent, var(--brand-blue)); }

.sxf-group {
  --sxf-accent: #1557d6;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  scroll-margin-top: 96px;
}

.sxf-group.g-manage { --sxf-accent: #0e8f9c; }
.sxf-group.g-grow { --sxf-accent: #c2740a; }
[data-theme="dark"] .sxf-group { --sxf-accent: #5b9bff; }
[data-theme="dark"] .sxf-group.g-manage { --sxf-accent: #3cc5d2; }
[data-theme="dark"] .sxf-group.g-grow { --sxf-accent: #f0a63a; }

.sxf-group-name {
  padding: 26px 24px;
  background: color-mix(in srgb, var(--sxf-accent) 7%, var(--bg-surface));
  border-right: 1px solid var(--border-card);
}

.sxf-group-name h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--sxf-accent);
}

.sxf-group-name p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

.sxf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.sxf-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  align-content: start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 110px;
}

.sxf-item:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
.sxf-item:nth-last-child(-n+2) { border-bottom: 0; }
.sxf-item:target { background: color-mix(in srgb, var(--sxf-accent) 7%, transparent); }

.sxf-item > i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--sxf-accent);
  background: color-mix(in srgb, var(--sxf-accent) 11%, transparent);
}

.sxf-item h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.sxf-item h4 a { color: inherit; text-decoration: none; }
.sxf-item h4 a:hover { color: var(--brand-blue); text-decoration: underline; }

.sxf-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
}

.sxf-tag.is-off { color: #0b6b3a; background: #e3f8ec; border-color: #9fdcb9; }
[data-theme="dark"] .sxf-tag.is-off { color: #7be3a8; background: rgba(18, 161, 80, .16); border-color: rgba(18, 161, 80, .45); }

.sxf-item p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.sxf-also {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.sxf-also a { color: var(--brand-blue); font-weight: 700; }

@media (max-width: 980px) {
  .sxf-group { grid-template-columns: 1fr; }
  .sxf-group-name { padding: 20px 22px; border-right: 0; border-bottom: 1px solid var(--border-card); }
  .sxf-group-name h3 { font-size: 26px; }
}

@media (max-width: 640px) {
  .sxf-list { grid-template-columns: 1fr; }
  .sxf-item { padding: 16px 18px; }
  .sxf-item:nth-child(odd) { border-right: 0; }
  .sxf-item:nth-last-child(2) { border-bottom: 1px solid var(--border-subtle); }
}
