/* Clip legacy overflow without creating the scroll container that breaks sticky positioning. */
#content.tn-article-pilot-content { overflow: clip; }
.tn-pilot-sidebar { margin-top: 0; }
.tn-pilot-panel {
  --pilot-ink: #153b39;
  --pilot-green: #20584f;
  color: var(--pilot-ink);
  border: 1px solid #d4e3dc;
  border-top: 4px solid var(--pilot-green);
  border-radius: 9px;
  background: #fcfdfb;
  padding: 18px;
  scroll-margin-top: 120px;
}
.tn-pilot-panel.is-sticky { position: sticky; top: 112px; }
#content .tn-pilot-goal { margin: 0; }
#content .tn-pilot-panel h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; color: var(--pilot-ink); }
.tn-pilot-goal label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.tn-pilot-goal-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.tn-pilot-goal select, .tn-pilot-goal button { font: inherit; font-size: 14px; min-height: 36px; border-radius: 5px; }
.tn-pilot-goal select { width: 100%; min-width: 0; padding: 5px 8px; border: 1px solid #b7ccbf; background: #fff; color: #163d38; }
.tn-pilot-goal button { padding: 5px 10px; border: 1px solid #20584f; background: #20584f; color: #fff; cursor: pointer; }
#content .tn-pilot-goal p { margin: 6px 0 12px; color: #526a65; font-size: 13px; line-height: 1.4; }
.tn-pilot-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 14px; }
.tn-pilot-practice a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 5px; border: 1px solid #a8c8b8; border-radius: 5px; background: #edf5ef; color: #174f40; font-size: 13px; font-weight: 700; text-align: center; }
.tn-pilot-books > h3 { margin: 0; padding: 0 0 8px; font-size: 15px; line-height: 1.4; }
.tn-pilot-book { padding: 10px 0; border-top: 1px solid #dce6df; }
.tn-pilot-book-main { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
.tn-pilot-book img { display: block; width: 56px; height: 74px; object-fit: contain; background: #f1f5ef; border-radius: 3px; }
#content .tn-pilot-book h4 { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.tn-pilot-book h4 a { color: #123e39; }
#content .tn-pilot-book-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 2px; color: #61736d; font-size: 12px; line-height: 1.35; }
.tn-pilot-book-meta strong { color: #173c37; }
.tn-pilot-book-link { color: #165b4d; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 700; line-height: 1.4; }
#content .tn-pilot-reason { color: #59706a; margin: 7px 0 0; font-size: 12px; line-height: 1.4; }
.tn-pilot-disclosure { border-top: 1px solid #dce6df; font-size: 13px; }
.tn-pilot-disclosure summary { cursor: pointer; padding: 9px 0; font-weight: 700; min-height: 36px; }
.tn-pilot-disclosure ul { list-style: none; padding: 0 0 9px; margin: 0; display: grid; gap: 7px; }
.tn-pilot-disclosure a { color: #20584f; text-decoration: underline; text-underline-offset: 3px; }
.tn-pilot-panel :is(a, button, select, summary):focus-visible { outline: 3px solid #c37e00; outline-offset: 3px; }
.tn-pilot-anchor { display: block; scroll-margin-top: 120px; }
@media (max-width: 991px) {
  .tn-pilot-sidebar { margin: 24px 0; padding: 0; width: 100%; max-width: 100%; flex: 0 0 100%; }
  .tn-pilot-panel.is-sticky { position: static; }
  .tn-pilot-panel { padding: 16px; }
  .tn-pilot-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .tn-pilot-books > h3 { grid-column: 1 / -1; }
  .tn-pilot-book-main { grid-template-columns: 48px minmax(0, 1fr); }
  .tn-pilot-book img { width: 48px; height: 64px; }
}
@media (max-width: 600px) { .tn-pilot-books { grid-template-columns: 1fr; } }
