/* Native disclosures: copy stays in HTML, and opening needs no JavaScript. */
@layer kft-studio {
  .kft-section-help { min-width: 0; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .kft-section-help > .kft-help-summary {
    display: flex !important; align-items: center; justify-content: flex-start; gap: 12px;
    width: fit-content; max-width: 100%; min-height: 44px; padding: 0 !important;
    list-style: none !important; cursor: pointer; border-radius: 6px;
    background: transparent !important; border: 0 !important; color: var(--kft-floodlight);
  }
  .kft-help-summary::-webkit-details-marker { display: none; }
  .kft-help-summary::marker { content: ''; }
  .kft-help-summary > :is(h1,h2,h3,h4,div) { min-width: 0; margin: 0 !important; }
  .kft-help-summary :is(h1,h2,h3,h4) { margin: 0 !important; }
  .kft-help-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px;
    width: 28px; height: 28px; border: 1px solid #647168; border-radius: 50%;
    font: 600 15px/1 var(--kft-body); color: #c8d4cc; background: #1d2620;
    transition: background-color 160ms ease, border-color 160ms ease;
  }
  .kft-help-summary:hover .kft-help-icon,
  .kft-section-help[open] > .kft-help-summary .kft-help-icon { background: #34453a; color: #f5f7f3; border-color: #9daf9f; }
  .kft-help-summary:focus-visible { outline: 2px solid var(--kft-touchline) !important; outline-offset: 5px; }
  .kft-help-copy {
    max-width: 76ch !important; margin-top: 16px !important; padding: 4px 0 4px 18px !important;
    border-left: 2px solid #556e5c; color: #b8c5bd;
    font: 400 14px/1.8 var(--kft-body) !important; text-align: left;
  }
  .kft-help-copy > p { margin: 0 0 12px !important; font: inherit !important; color: inherit !important; max-width: none !important; }
  .kft-help-copy > :last-child { margin-bottom: 0 !important; }
  .kft-help-copy :is(ul,ol) { padding-left: 22px; margin: 12px 0; }
  .kft-help-copy a { text-underline-offset: 3px; }
  .kft-section-help[open] > .kft-help-copy { animation: kft-help-reveal 180ms ease-out; }
  .section-title .kft-help-summary h2 { font-size: clamp(26px,3vw,38px) !important; line-height: 1.2 !important; color: var(--kft-floodlight) !important; }
  .page-shell .content-card > .kft-section-help { margin-block: 24px; padding-bottom: 20px; border-bottom: 1px solid #313d35 !important; }
  .page-shell .hero-card > .small-note { margin-top: 20px !important; }
  .kft-page-planner :is(.gameweek-intelligence-head,.intelligence-ledger-head) { display: block !important; }
  .kft-section-help .kft-help-copy :is(.rule-list,.notice) { margin-top: 12px; }
  @keyframes kft-help-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
  @media (max-width: 768px) {
    .kft-section-help > .kft-help-summary { gap: 10px; }
    .section-title .kft-help-summary h2 { font-size: 27px !important; }
    .kft-help-copy { padding-left: 14px !important; font-size: 13px !important; }
    #hero .kft-help-summary h1 { max-width: none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .kft-section-help[open] > .kft-help-copy { animation: none !important; }
    .kft-help-icon { transition: none !important; }
  }
  @media print {
    .kft-help-icon { display: none !important; }
    .kft-section-help > .kft-help-copy { display: block !important; animation: none !important; color: #111 !important; }
    .kft-section-help::details-content { content-visibility: visible !important; display: block !important; }
    .kft-help-summary { break-after: avoid; }
  }
}
